diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
| commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
| tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /include | |
| parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) | |
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: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/acpixf.h | 2 | ||||
| -rw-r--r-- | include/acpi/apei.h | 4 | ||||
| -rw-r--r-- | include/linux/console.h | 2 | ||||
| -rw-r--r-- | include/linux/lockd/lockd.h | 2 | ||||
| -rw-r--r-- | include/linux/mmc/host.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index f554a9313b43..7762bc2d8404 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
| @@ -66,7 +66,7 @@ extern u8 acpi_gbl_create_osi_method; | |||
| 66 | extern u8 acpi_gbl_use_default_register_widths; | 66 | extern u8 acpi_gbl_use_default_register_widths; |
| 67 | extern acpi_name acpi_gbl_trace_method_name; | 67 | extern acpi_name acpi_gbl_trace_method_name; |
| 68 | extern u32 acpi_gbl_trace_flags; | 68 | extern u32 acpi_gbl_trace_flags; |
| 69 | extern u32 acpi_gbl_enable_aml_debug_object; | 69 | extern bool acpi_gbl_enable_aml_debug_object; |
| 70 | extern u8 acpi_gbl_copy_dsdt_locally; | 70 | extern u8 acpi_gbl_copy_dsdt_locally; |
| 71 | extern u8 acpi_gbl_truncate_io_addresses; | 71 | extern u8 acpi_gbl_truncate_io_addresses; |
| 72 | extern u8 acpi_gbl_disable_auto_repair; | 72 | extern u8 acpi_gbl_disable_auto_repair; |
diff --git a/include/acpi/apei.h b/include/acpi/apei.h index 51a527d24a8a..04f349d8da73 100644 --- a/include/acpi/apei.h +++ b/include/acpi/apei.h | |||
| @@ -16,10 +16,10 @@ | |||
| 16 | 16 | ||
| 17 | #ifdef __KERNEL__ | 17 | #ifdef __KERNEL__ |
| 18 | 18 | ||
| 19 | extern int hest_disable; | 19 | extern bool hest_disable; |
| 20 | extern int erst_disable; | 20 | extern int erst_disable; |
| 21 | #ifdef CONFIG_ACPI_APEI_GHES | 21 | #ifdef CONFIG_ACPI_APEI_GHES |
| 22 | extern int ghes_disable; | 22 | extern bool ghes_disable; |
| 23 | #else | 23 | #else |
| 24 | #define ghes_disable 1 | 24 | #define ghes_disable 1 |
| 25 | #endif | 25 | #endif |
diff --git a/include/linux/console.h b/include/linux/console.h index 7453cfd593c8..7201ce4280ca 100644 --- a/include/linux/console.h +++ b/include/linux/console.h | |||
| @@ -152,7 +152,7 @@ extern int braille_register_console(struct console *, int index, | |||
| 152 | char *console_options, char *braille_options); | 152 | char *console_options, char *braille_options); |
| 153 | extern int braille_unregister_console(struct console *); | 153 | extern int braille_unregister_console(struct console *); |
| 154 | extern void console_sysfs_notify(void); | 154 | extern void console_sysfs_notify(void); |
| 155 | extern int console_suspend_enabled; | 155 | extern bool console_suspend_enabled; |
| 156 | 156 | ||
| 157 | /* Suspend and resume console messages over PM events */ | 157 | /* Suspend and resume console messages over PM events */ |
| 158 | extern void suspend_console(void); | 158 | extern void suspend_console(void); |
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 90b0656a869e..88a114fce477 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
| @@ -195,7 +195,7 @@ extern struct svc_procedure nlmsvc_procedures4[]; | |||
| 195 | #endif | 195 | #endif |
| 196 | extern int nlmsvc_grace_period; | 196 | extern int nlmsvc_grace_period; |
| 197 | extern unsigned long nlmsvc_timeout; | 197 | extern unsigned long nlmsvc_timeout; |
| 198 | extern int nsm_use_hostnames; | 198 | extern bool nsm_use_hostnames; |
| 199 | extern u32 nsm_local_state; | 199 | extern u32 nsm_local_state; |
| 200 | 200 | ||
| 201 | /* | 201 | /* |
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index a3ac9c48e5de..8ef7894a48d0 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -396,7 +396,7 @@ static inline void mmc_set_disable_delay(struct mmc_host *host, | |||
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | /* Module parameter */ | 398 | /* Module parameter */ |
| 399 | extern int mmc_assume_removable; | 399 | extern bool mmc_assume_removable; |
| 400 | 400 | ||
| 401 | static inline int mmc_card_is_removable(struct mmc_host *host) | 401 | static inline int mmc_card_is_removable(struct mmc_host *host) |
| 402 | { | 402 | { |
