Skip to contentSkip to conversation

ixgbe: Fix module_param allow_unsupported_sfp type

PATCH In review Jeff Daly 2 participants 2 messages Apr 14, 2022 – May 2, 2022

Subsystems (3)
lore
Share & tools
lore

Jeff Daly

author
#0 lore raw

PATCH 1/1 ixgbe: Fix module_param allow_unsupported_sfp type

The module_param allow_unsupported_sfp should be a boolean to match the type in the ixgbe_hw struct.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2 -2
index c4a4954aa317..e5732a058bec 100644
@@ -151,8 +151,8 @@ MODULE_PARM_DESC(max_vfs,
 		 "Maximum number of virtual functions to allocate per physical function - default is zero and maximum value is 63. (Deprecated)");
 #endif /* CONFIG_PCI_IOV */
 
-static unsigned int allow_unsupported_sfp;
-module_param(allow_unsupported_sfp, uint, 0);
+static bool allow_unsupported_sfp;
+module_param(allow_unsupported_sfp, bool, 0);
 MODULE_PARM_DESC(allow_unsupported_sfp,
 		 "Allow unsupported and untested SFP+ modules on 82599-based adapters");
 
Signature · 1 line
2.25.1
Tested-by on v1 1/1
#1 lore raw
Quoted 14 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Jeff Daly
Sent: Friday, April 15, 2022 1:51 AM
To: intel-wired-lan at osuosl.org
Cc: open list:NETWORKING DRIVERS <[email protected]>; open list <[email protected]>; moderated list:INTEL ETHERNET DRIVERS <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; David S. Miller <[email protected]>
Subject: [Intel-wired-lan] [PATCH] ixgbe: Fix module_param allow_unsupported_sfp type

Quoted 8 lines

The module_param allow_unsupported_sfp should be a boolean to match the type in the ixgbe_hw struct.

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)