Patchwork [1/1] qlcnic: fix build error

login
register
mail settings
Submitter Sony Chacko
Date Jan. 3, 2013, 9:10 a.m.
Message ID <1357204215-17607-2-git-send-email-sony.chacko@qlogic.com>
Download mbox | patch
Permalink /patch/209198/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sony Chacko - Jan. 3, 2013, 9:10 a.m.
From: Sony Chacko <sony.chacko@qlogic.com>

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>
---
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
David Miller - Jan. 3, 2013, 9:51 a.m.
From: Sony Chacko <sony.chacko@qlogic.com>
Date: Thu,  3 Jan 2013 04:10:15 -0500

> From: Sony Chacko <sony.chacko@qlogic.com>
> 
> 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>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index e1a3625..7d13aec 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
@@ -3299,8 +3299,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 = {