From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] drivers/net/sfc: fix sparse warnings: Should it be static? Date: Wed, 18 Feb 2009 17:49:58 -0800 (PST) Message-ID: <20090218.174958.248510917.davem@davemloft.net> References: <154e089b0902160138n255616a0xb963dfd990d912b@mail.gmail.com> <20090216095351.391.49056.stgit@vmbox.hanneseder.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, bhutchings@solarflare.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org To: hannes@hanneseder.net Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:41250 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751891AbZBSBuO (ORCPT ); Wed, 18 Feb 2009 20:50:14 -0500 In-Reply-To: <20090216095351.391.49056.stgit@vmbox.hanneseder.net> Sender: netdev-owner@vger.kernel.org List-ID: From: Hannes Eder Date: Mon, 16 Feb 2009 10:54:38 +0100 > Impact: Include the header file. If CONFIG_SFC_MTD is not defined > then the functions 'efx_mtd_remove' and 'efx_mtd_rename' are defined > 'static inline' with an empty function body in the header file, but > the the whole file mtd.c is not built in this case. > > Fix this sparse warnings: > drivers/net/sfc/mtd.c:204:6: warning: symbol 'efx_mtd_remove' was not declared. Should it be static? > drivers/net/sfc/mtd.c:221:6: warning: symbol 'efx_mtd_rename' was not declared. Should it be static? > drivers/net/sfc/mtd.c:230:5: warning: symbol 'efx_mtd_probe' was not declared. Should it be static? > > Signed-off-by: Hannes Eder Applied to net-next-2.6, thanks.