Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90ab5ee9 authored by Rusty Russell's avatar Rusty Russell
Browse files

module_param: make bool parameters really bool (drivers & misc)



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.

Acked-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 476bc001
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ MODULE_LICENSE("GPL");
 */

/* Emit various sounds */
static int sound;
static bool sound;
module_param(sound, bool, 0);
MODULE_PARM_DESC(sound, "emit sounds");

+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
/*
 * Optionally enable output from the AML Debug Object.
 */
u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);

/*
 * Optionally copy the entire DSDT to local memory (instead of simply
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ struct ghes_estatus_cache {
	struct rcu_head rcu;
};

int ghes_disable;
bool ghes_disable;
module_param_named(disable, ghes_disable, bool, 0);

static int ghes_panic_timeout	__read_mostly = 30;
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@

#define HEST_PFX "HEST: "

int hest_disable;
bool hest_disable;
EXPORT_SYMBOL_GPL(hest_disable);

/* HEST table parsing */
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ MODULE_AUTHOR("Kristen Carlson Accardi");
MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION);
MODULE_LICENSE("GPL");

static int immediate_undock = 1;
static bool immediate_undock = 1;
module_param(immediate_undock, bool, 0644);
MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to "
	"undock immediately when the undock button is pressed, 0 will cause"
Loading