]> git.karo-electronics.de Git - linux-beck.git/commitdiff
qlcnic: fix build error
authorSony Chacko <sony.chacko@qlogic.com>
Wed, 2 Jan 2013 23:10:15 +0000 (23:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jan 2013 09:50:39 +0000 (01:50 -0800)
Fix the following error reported by kbuild test robot.
static declaration of 'qlcnic_restore_indev_addr' follows
non-static declaration.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c

index 3bdb1beaedd87d876574e07a47ca14067669a2d9..137ca13710afe6d73ac14a38b2f9e15b6c23e64b 100644 (file)
@@ -3281,8 +3281,7 @@ static struct notifier_block qlcnic_inetaddr_cb = {
        .notifier_call = qlcnic_inetaddr_event,
 };
 #else
-static void
-qlcnic_restore_indev_addr(struct net_device *dev, unsigned long event)
+void qlcnic_restore_indev_addr(struct net_device *dev, unsigned long event)
 { }
 #endif
 static struct pci_error_handlers qlcnic_err_handler = {