From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 1E7861B342 for ; Mon, 29 Jan 2018 23:37:59 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9FB1E2088E; Mon, 29 Jan 2018 17:37:58 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 29 Jan 2018 17:37:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=W4prNilMSUbT5AN946SOd+lPu/nKXXfHXy9f9z H9Eko=; b=XSkm9SmAhR2kBxzZLErSCJZ3XjrZuL6MGDvtLBXo9zpIcOWlE0ooT/ o79Wp0Zzl7d5aVb8Z3KG7iAWgFDkiF+BvcOtqTDaTHLhrT2u8JCcPc2YTI2FRBGU MNtNiHQavvuTMPfqIU0JO16dCyQdyVYI4uNTRQqQq7j/PWu0yS9Hw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=W4prNilMSUbT5AN94 6SOd+lPu/nKXXfHXy9f9zH9Eko=; b=gldt+HjnzDQR6m5pf7vbglmHhne1kTD5H auDovo8oXq2yJgdwL2ANbq+t1T5c2hpWTlroha2c7O+Udf7Lfp0znEjomPPkCTHA Ci9KZ4JUqROWRZmV7ehLHPxpp+Mda1i6v1j5kwC1nLC5akKO+FfLaWhrRuU3dC6N qHZUONkZwTL1nn2nC8ecEvRb2j6k9pBaETxwNQLb0W7RqU8YnPghph9DzSqRGWg9 DD5iPZkdDWpU/yRPJ6Ybdg1K1Ocq/7BJBFN8U7+nm37STtLDeNFVNmfX1fRWuTLN A5PECiyaj/WYN/qDfKdbmIq0yXWBo3x5ONa6lC1dnOJmvv4lU+fJg== X-ME-Sender: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 034DE24235; Mon, 29 Jan 2018 17:37:57 -0500 (EST) From: Thomas Monjalon To: hemant.agrawal@nxp.com Cc: dev@dpdk.org Date: Mon, 29 Jan 2018 23:36:50 +0100 Message-Id: <20180129223650.16777-1-thomas@monjalon.net> X-Mailer: git-send-email 2.15.1 Subject: [dpdk-dev] [PATCH] crypto/dpaa2_sec: fix build with GCC 7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 22:37:59 -0000 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 --- drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h b/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h index dae4bdfa1..c4febcb2f 100644 --- a/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h +++ b/drivers/crypto/dpaa2_sec/hw/rta/operation_cmd.h @@ -8,6 +8,8 @@ #ifndef __RTA_OPERATION_CMD_H__ #define __RTA_OPERATION_CMD_H__ +#pragma GCC diagnostic ignored "-Wimplicit-fallthrough" + extern enum rta_sec_era rta_sec_era; static inline int -- 2.15.1