From: Carolyn Wyborny Date: Thu, 14 Feb 2013 03:28:19 +0000 (+0000) Subject: igb: Refix sparse warning in igb_get_i2c_client X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c7d7724bc5b12a8bc038880d2dfe8ea496c618d;p=linux-beck.git igb: Refix sparse warning in igb_get_i2c_client This patch correctly resolves the sparse warnings found with this function. Signed-off-by: Carolyn Wyborny Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index c19a35c556f9..bf559721248c 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -7727,7 +7727,7 @@ static DEFINE_SPINLOCK(i2c_clients_lock); * @adapter: adapter struct * @dev_addr: device address of i2c needed. */ -struct i2c_client * +static struct i2c_client * igb_get_i2c_client(struct igb_adapter *adapter, u8 dev_addr) { ulong flags;