module_param: make bool parameters really bool (net & drivers/net)
module_param(bool) used to counter-intuitively take an int. In
fddd5201
(mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
(Thanks to Joe Perches for suggesting coccinelle for 0/1 -> true/false).
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3db1cd5c05
commit
eb93992207
@@ -35,6 +35,7 @@
|
||||
#define DRV_VERSION "1.5.0"
|
||||
#define DRV_RELDATE "2010-10-09"
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* A few user-configurable values.
|
||||
These may be modified when a driver module is loaded. */
|
||||
@@ -55,7 +56,7 @@ static int rx_copybreak;
|
||||
|
||||
/* Work-around for broken BIOSes: they are unable to get the chip back out of
|
||||
power state D3 so PXE booting fails. bootparam(7): via-rhine.avoid_D3=1 */
|
||||
static int avoid_D3;
|
||||
static bool avoid_D3;
|
||||
|
||||
/*
|
||||
* In case you are looking for 'options[]' or 'full_duplex[]', they
|
||||
@@ -2322,7 +2323,7 @@ static int __init rhine_init(void)
|
||||
#endif
|
||||
if (dmi_check_system(rhine_dmi_table)) {
|
||||
/* these BIOSes fail at PXE boot if chip is in D3 */
|
||||
avoid_D3 = 1;
|
||||
avoid_D3 = true;
|
||||
pr_warn("Broken BIOS detected, avoid_D3 enabled\n");
|
||||
}
|
||||
else if (avoid_D3)
|
||||
|
Reference in New Issue
Block a user