From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967570AbdAKPvk (ORCPT ); Wed, 11 Jan 2017 10:51:40 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:51602 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdAKPvi (ORCPT ); Wed, 11 Jan 2017 10:51:38 -0500 Date: Wed, 11 Jan 2017 10:51:35 -0500 (EST) Message-Id: <20170111.105135.364136279090482156.davem@davemloft.net> To: arnd@arndb.de Cc: michael.chan@broadcom.com, prashant.sreedharan@broadcom.com, sbaddipa@broadcom.com, aduyck@mirantis.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bnxt_en: hide unused bnxt_get_max_func_{vnics,rss_ctxs} functions From: David Miller In-Reply-To: <20170111143619.502495-1-arnd@arndb.de> References: <20170111143619.502495-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 11 Jan 2017 06:52:28 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Wed, 11 Jan 2017 15:36:09 +0100 > There are lots of #ifdefs in this file, and a recent patch got one > of them wrong, leading to a harmless warning in some randconfig > builds: > > ethernet/broadcom/bnxt/bnxt.c:4956:21: error: 'bnxt_get_max_func_vnics' defined but not used [-Werror=unused-function] > ethernet/broadcom/bnxt/bnxt.c:4947:21: error: 'bnxt_get_max_func_rss_ctxs' defined but not used [-Werror=unused-function] > > Ideally we'd just remove all of them and use 'if (IS_ENABLED())' > checks instead, which don't have this problem, but for now, I'm > adding one more #ifdef to shut up the new warning. > > Fixes: 8079e8f107bf ("bnxt_en: Refactor code that determines RFS capability.") > Signed-off-by: Arnd Bergmann Michael Chan has a fix for this coming my way.