From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] crypto/dpaa2_sec: fix build with GCC 7 Date: Tue, 30 Jan 2018 00:18:32 +0100 Message-ID: <2865203.hAOOJGMPPG@xps> References: <20180129223650.16777-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: hemant.agrawal@nxp.com Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id BBC801B327 for ; Tue, 30 Jan 2018 00:19:18 +0100 (CET) In-Reply-To: <20180129223650.16777-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 29/01/2018 23:36, Thomas Monjalon: > Seen with GCC 7.2.0, a switch fall through is detected and > cannot be fixed with a fall-through comment or attribute: > > drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h:89:6: error: > this statement may fall through [-Werror=implicit-fallthrough=] > if (rta_sec_era < RTA_SEC_ERA_2) > ^ > > The check is disabled in dpaa2_sec Makefile but not in dpaa_sec Makefile > which uses source code shared by dpaa2_sec. > > The workaround is to disable the check at the beginning of the file. > > Signed-off-by: Thomas Monjalon Applied