From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6933A2BA8 for ; Wed, 29 Jun 2016 12:43:59 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 29 Jun 2016 03:43:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,546,1459839600"; d="scan'208";a="1011926894" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.81]) by fmsmga002.fm.intel.com with SMTP; 29 Jun 2016 03:43:51 -0700 Received: by (sSMTP sendmail emulation); Wed, 29 Jun 2016 11:43:49 +0025 Date: Wed, 29 Jun 2016 11:43:49 +0100 From: Bruce Richardson To: Ferruh Yigit Cc: Jerin Jacob , dev@dpdk.org, thomas.monjalon@6wind.com Message-ID: <20160629104349.GJ4720@bricha3-MOBL3> References: <1467044166-31912-1-git-send-email-jerin.jacob@caviumnetworks.com> <1467044166-31912-2-git-send-email-jerin.jacob@caviumnetworks.com> <57723BA2.6000002@intel.com> <20160629103951.GH4720@bricha3-MOBL3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160629103951.GH4720@bricha3-MOBL3> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [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: Wed, 29 Jun 2016 10:43:59 -0000 On Wed, Jun 29, 2016 at 11:39:51AM +0100, Bruce Richardson wrote: > On Tue, Jun 28, 2016 at 09:56:02AM +0100, Ferruh Yigit wrote: > > On 6/27/2016 5:16 PM, Jerin Jacob wrote: > > > 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 > > > > ... > > > > > -static inline const char * > > > +static inline const char * __attribute__((unused)) > > it is possible to use __rte_unused macro here, although not required, > > and moving it before return type can prevent checkpatch error > > > > > > > nicvf_mbox_msg_str(int msg) > > > { > > > assert(msg >= 0 && msg < NIC_MBOX_MSG_MAX); > > > > > > > Checkpatch gives following error: > > ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" > > #39: FILE: drivers/net/thunderx/base/nicvf_mbox.c:67: > > +static inline const char * __attribute__((unused)) > > > > > > check-git-log gives following errors: > > Wrong headline format: > > net/thunderx: fix unused function nicvf_mbox_msg_str error > > Thanks for flagging these Ferruh. I'll fix them on apply, no need for V2, unless > you particularly want to do one, Jerin. :-) > > /Bruce Applied to dpdk-next-net/rel_16_07 with the check-git-log.sh issue fixed. Checkpatch issue is ok to ignore. /Bruce