From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0076.outbound.protection.outlook.com [207.46.100.76]) by dpdk.org (Postfix) with ESMTP id D24155A30 for ; Mon, 27 Jun 2016 18:16:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=tkw99rXAeqNMvCwo7kyalqTUGFxDJkCW4CTdNPI0m90=; b=CXMn2IkW5X2qNsAXCw++8Fm8n7Hsvk8jwm5xGoyqxwACyTih55snEhqsbJw1KPtNffyB/uIqSRKyrwIlpPeIHSOUHuiCo0wwdn+m5xUDiRrO/BhvcKVfBWLPLZrHaanfTbLvYfSArxowli4dxDo9BKE+f7wEGO9xKBt+rSc+X/E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.com (111.93.218.67) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (TLS) id 15.1.528.16; Mon, 27 Jun 2016 16:16:54 +0000 From: Jerin Jacob To: CC: , , , Jerin Jacob Date: Mon, 27 Jun 2016 21:46:06 +0530 Message-ID: <1467044166-31912-2-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1467044166-31912-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1467044166-31912-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0009.INDPRD01.PROD.OUTLOOK.COM (10.164.137.16) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: f900166e-7cc6-49c9-27df-08d39ea6761d X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 2:vVz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pzw8kN+mzmjA/LvGn3W8sSR0ekc/XmG5qqxV1zsQ1Y4DfcOQr3Urn6oKJUZh6n08dun+L7/YV1H6+Nx7s7kjQma7tlfU7v1L2vqQztxR6Pf/Fh3 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:DY1PZm/GHmWgmRZ3+/0aY1+FTPAXIkQrxvHrKOj1OkvQG7bKPqRwMO8KkEwYg9PfE9syqg3mmzPiycLNZr6nhqbpA6dNMOX4Xa0UI5IpVsoOhYRbS85pnrl15DLpH0c1Cwnm66KVxK5i5+/SIIvnYUe1b935E/rlh16yI5bq1GR6+5BikuJATDN3uYJjtyfhcrxrf4InkAbCnDlCWovmLg==; 20:UHbGG7IRVBkewyh1DY7qbqc0+CelSz5T7RcVPgiwQfrNaIbZFUeSHvFteEtzzOYmbN21BBnd/pVROGMC5wS9QiZZuwiFgU7K2sVyG7GIsmCLJcG32WdzCu43D8Xvh4dscC7xlOVKo6PkxH4VHOKlQEABIMaIWkj+LTlbTGaszV48MAtjqDuMZmybHgZFgYutADMqN8gto3ifgM7PhoOAvyUWmWn/tpre9lFo5gg6PbQBVn60Y4HeM9ZSQTLmnEN1xOv8Np+91LQKPN72o/XSP2LsPl8+FuY4DyAFd7fuL6F7BBj4vu+pgh+Xhey/hdgjlvJErFm71mXVrliigBPkZVbQOp9aGs6Z/qtCqsPZOAHtD/f5F0vuZ0esXwo9MyQXoRbktFb+qMqCFn1FiSHhG8DGrzkaS8FjHMG6cwgl3eZEt8UIn2MSmcYqLwxKNVt2RKDnPOzgCpTKxrO1KXkozVyfDqec65bmjLX4tkojNJYc7voSWhBdWE4cTIg0b9Q/qtO2XVCZOombCG5HiaHkhU/F3xRMzKirXXhpGt3EhjtU9Rj71n7RYxocJhyyXhRHsKPrZPIqytzBnI1fe3ey37Po+1/MdLd/mQpDFrJd/4I= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:b5YBso1za4SKaHQshI2We3M5a1QRSFno/feiyfMP6e/orC5CrzZ1m/WQraKDopY2Q+YVLCJEsYh5NwV4meX8UYYbNUaHVot6JRxt3FmzruYWmYI16B3370h6SAanO8o3BGPJSFgFRoh38PeR6BDKdM4k1BwaGAbFEvrUOpi57CmfI+weCUpCLNI8uhjwlXi2Oli1povvSkO8BGwhveM+nCxMlNmkzu8VKA0vMaic2qWQbVPKf77r7nFnNzmmeDHlDVKxfoq5j98LPvG2XDzGDSnBD//YtKSSqDCkYiC0Tq6F0Dpc4AHT/mfycVXEV9rw4VEMwk92X7eKZ6b1uz6z4bFexWnGGwYYTzo2Q7yb2MutZWfArk4TeLE5MiklN9lJ9Yc9bUuunBRg4O71br+X1cRnn2rYn1yg49r9UhLSBkk= X-Forefront-PRVS: 09860C2161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(36756003)(77096005)(19580395003)(19580405001)(92566002)(69596002)(2950100001)(305945005)(8676002)(229853001)(68736007)(7736002)(2351001)(81156014)(189998001)(81166006)(6116002)(47776003)(2906002)(4326007)(66066001)(7846002)(33646002)(53416004)(76176999)(105586002)(5009440100003)(97736004)(4001430100002)(50226002)(50466002)(50986999)(42186005)(106356001)(101416001)(5003940100001)(110136002)(107886002)(48376002)(3846002)(586003)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:RtfPaSH6rsZyb/8I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u2Re4MCOS+QWHjvAvIe0SfINtZyxNubA6n3PikERizoYswXCJkvsl7Nf1K9OvffQV2RnQv/OK5vEyKU8oVhQE0pPuCbuL3Csv82HXje2apeZMteK5x7RQ0pkQbgnD37ckp9LeWhAXd4rAw8H0LPFz2eD6e/4j+EySSdtlpSu5b7QzVwVJ2RclxXNnKGubiN6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2016 16:16:54.5321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: [dpdk-dev] [PATCH 2/2] net/thunderx: fix unused function nicvf_mbox_msg_str error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 16:16:59 -0000 Fix the following error with clang error: unused function 'nicvf_mbox_msg_str' The nicvf_mbox_msg_str() maybe unused, based on DEBUG compilation option selected. Mark __attribute__((unused)) on this function, to inform compiler that this function may be unused Fixes: e93592f1 ("net/thunderx/base: add mbox APIs for PF/VF communication") Signed-off-by: Jerin Jacob Reported-by: Ferruh Yigit --- drivers/net/thunderx/base/nicvf_mbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/thunderx/base/nicvf_mbox.c b/drivers/net/thunderx/base/nicvf_mbox.c index 3067331..9c5cd83 100644 --- a/drivers/net/thunderx/base/nicvf_mbox.c +++ b/drivers/net/thunderx/base/nicvf_mbox.c @@ -64,7 +64,7 @@ static const char *mbox_message[NIC_MBOX_MSG_MAX] = { [NIC_MBOX_MSG_SHUTDOWN] = "NIC_MBOX_MSG_SHUTDOWN", }; -static inline const char * +static inline const char * __attribute__((unused)) nicvf_mbox_msg_str(int msg) { assert(msg >= 0 && msg < NIC_MBOX_MSG_MAX); -- 2.5.5