]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbevf: fix sparse warnings
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Jan 2012 22:13:33 +0000 (22:13 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:56:50 +0000 (23:56 +0800)
Fixes sparse warnings:
drivers/net/ixgbevf/vf.c:418:21: warning: symbol 'ixgbevf_82599_vf_info' was not declared. Should it be static?
drivers/net/ixgbevf/vf.c:423:21: warning: symbol 'ixgbevf_X540_vf_info' was not declared. Should it be static?
drivers/net/ixgbevf/mbx.c:331:29: warning: symbol 'ixgbevf_mbx_ops' was not declared. Should it be static?

(cherry picked from commit b5417bf8e8952401bca69ded67c30ead484af823)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbevf/ixgbevf.h
drivers/net/ixgbevf/mbx.c
drivers/net/ixgbevf/vf.c

index 8857df4dd3b9a4e0dc5dc141690cd0ae08a5023c..224c8de7b5afc14c250faf126d186c92b2bf0b5e 100644 (file)
@@ -279,7 +279,7 @@ enum ixgbevf_boards {
 
 extern struct ixgbevf_info ixgbevf_82599_vf_info;
 extern struct ixgbevf_info ixgbevf_X540_vf_info;
-extern struct ixgbe_mbx_operations ixgbevf_mbx_ops;
+extern const struct ixgbe_mbx_operations ixgbevf_mbx_ops;
 
 /* needed by ethtool.c */
 extern char ixgbevf_driver_name[];
index 7a88331257707ebae6eca3a8fb5ad8ddea936557..12d03410286d839f06af68ed07c3dd0a96e5c83b 100644 (file)
@@ -26,6 +26,7 @@
 *******************************************************************************/
 
 #include "mbx.h"
+#include "ixgbevf.h"
 
 /**
  *  ixgbevf_poll_for_msg - Wait for message notification
@@ -328,7 +329,7 @@ static s32 ixgbevf_init_mbx_params_vf(struct ixgbe_hw *hw)
        return 0;
 }
 
-struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
+const struct ixgbe_mbx_operations ixgbevf_mbx_ops = {
        .init_params   = ixgbevf_init_mbx_params_vf,
        .read          = ixgbevf_read_mbx_vf,
        .write         = ixgbevf_write_mbx_vf,
index 21533e300367f78dd4058ee2df7ba31c7df1122c..5c8c23f8346ff77fa3b220abcfb3964f7c175907 100644 (file)
@@ -26,6 +26,7 @@
 *******************************************************************************/
 
 #include "vf.h"
+#include "ixgbevf.h"
 
 /**
  *  ixgbevf_start_hw_vf - Prepare hardware for Tx/Rx