diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:18 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:18 -0500 |
commit | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (patch) | |
tree | 054f322e639affab256cf7849f59f1dcdf117094 /arch | |
parent | 2329abfa344a9a824bc4c71f2415528777265510 (diff) |
module_param: make bool parameters really bool (arch)
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.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/hp/common/aml_nfw.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apm_32.c | 16 | ||||
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 | ||||
-rw-r--r-- | arch/x86/kvm/vmx.c | 18 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 4 | ||||
-rw-r--r-- | arch/x86/mm/mmio-mod.c | 4 | ||||
-rw-r--r-- | arch/x86/platform/geode/alix.c | 2 | ||||
-rw-r--r-- | arch/x86/platform/iris/iris.c | 2 |
8 files changed, 25 insertions, 25 deletions
diff --git a/arch/ia64/hp/common/aml_nfw.c b/arch/ia64/hp/common/aml_nfw.c index 22078486d35d..6192f7188654 100644 --- a/arch/ia64/hp/common/aml_nfw.c +++ b/arch/ia64/hp/common/aml_nfw.c | |||
@@ -31,7 +31,7 @@ MODULE_AUTHOR("Bjorn Helgaas <bjorn.helgaas@hp.com>"); | |||
31 | MODULE_LICENSE("GPL"); | 31 | MODULE_LICENSE("GPL"); |
32 | MODULE_DESCRIPTION("ACPI opregion handler for native firmware calls"); | 32 | MODULE_DESCRIPTION("ACPI opregion handler for native firmware calls"); |
33 | 33 | ||
34 | static int force_register; | 34 | static bool force_register; |
35 | module_param_named(force, force_register, bool, 0); | 35 | module_param_named(force, force_register, bool, 0); |
36 | MODULE_PARM_DESC(force, "Install opregion handler even without HPQ5001 device"); | 36 | MODULE_PARM_DESC(force, "Install opregion handler even without HPQ5001 device"); |
37 | 37 | ||
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index a46bd383953c..f76623cbe263 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c | |||
@@ -383,21 +383,21 @@ static int ignore_sys_suspend; | |||
383 | static int ignore_normal_resume; | 383 | static int ignore_normal_resume; |
384 | static int bounce_interval __read_mostly = DEFAULT_BOUNCE_INTERVAL; | 384 | static int bounce_interval __read_mostly = DEFAULT_BOUNCE_INTERVAL; |
385 | 385 | ||
386 | static int debug __read_mostly; | 386 | static bool debug __read_mostly; |
387 | static int smp __read_mostly; | 387 | static bool smp __read_mostly; |
388 | static int apm_disabled = -1; | 388 | static int apm_disabled = -1; |
389 | #ifdef CONFIG_SMP | 389 | #ifdef CONFIG_SMP |
390 | static int power_off; | 390 | static bool power_off; |
391 | #else | 391 | #else |
392 | static int power_off = 1; | 392 | static bool power_off = 1; |
393 | #endif | 393 | #endif |
394 | static int realmode_power_off; | 394 | static bool realmode_power_off; |
395 | #ifdef CONFIG_APM_ALLOW_INTS | 395 | #ifdef CONFIG_APM_ALLOW_INTS |
396 | static int allow_ints = 1; | 396 | static bool allow_ints = 1; |
397 | #else | 397 | #else |
398 | static int allow_ints; | 398 | static bool allow_ints; |
399 | #endif | 399 | #endif |
400 | static int broken_psr; | 400 | static bool broken_psr; |
401 | 401 | ||
402 | static DECLARE_WAIT_QUEUE_HEAD(apm_waitqueue); | 402 | static DECLARE_WAIT_QUEUE_HEAD(apm_waitqueue); |
403 | static DECLARE_WAIT_QUEUE_HEAD(apm_suspend_waitqueue); | 403 | static DECLARE_WAIT_QUEUE_HEAD(apm_suspend_waitqueue); |
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 2a2a9b40db19..224b02c3cda9 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -74,7 +74,7 @@ enum { | |||
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #ifdef MMU_DEBUG | 76 | #ifdef MMU_DEBUG |
77 | static int dbg = 0; | 77 | static bool dbg = 0; |
78 | module_param(dbg, bool, 0644); | 78 | module_param(dbg, bool, 0644); |
79 | #endif | 79 | #endif |
80 | 80 | ||
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 906a7e84200f..d29216c462b3 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -51,29 +51,29 @@ | |||
51 | MODULE_AUTHOR("Qumranet"); | 51 | MODULE_AUTHOR("Qumranet"); |
52 | MODULE_LICENSE("GPL"); | 52 | MODULE_LICENSE("GPL"); |
53 | 53 | ||
54 | static int __read_mostly enable_vpid = 1; | 54 | static bool __read_mostly enable_vpid = 1; |
55 | module_param_named(vpid, enable_vpid, bool, 0444); | 55 | module_param_named(vpid, enable_vpid, bool, 0444); |
56 | 56 | ||
57 | static int __read_mostly flexpriority_enabled = 1; | 57 | static bool __read_mostly flexpriority_enabled = 1; |
58 | module_param_named(flexpriority, flexpriority_enabled, bool, S_IRUGO); | 58 | module_param_named(flexpriority, flexpriority_enabled, bool, S_IRUGO); |
59 | 59 | ||
60 | static int __read_mostly enable_ept = 1; | 60 | static bool __read_mostly enable_ept = 1; |
61 | module_param_named(ept, enable_ept, bool, S_IRUGO); | 61 | module_param_named(ept, enable_ept, bool, S_IRUGO); |
62 | 62 | ||
63 | static int __read_mostly enable_unrestricted_guest = 1; | 63 | static bool __read_mostly enable_unrestricted_guest = 1; |
64 | module_param_named(unrestricted_guest, | 64 | module_param_named(unrestricted_guest, |
65 | enable_unrestricted_guest, bool, S_IRUGO); | 65 | enable_unrestricted_guest, bool, S_IRUGO); |
66 | 66 | ||
67 | static int __read_mostly emulate_invalid_guest_state = 0; | 67 | static bool __read_mostly emulate_invalid_guest_state = 0; |
68 | module_param(emulate_invalid_guest_state, bool, S_IRUGO); | 68 | module_param(emulate_invalid_guest_state, bool, S_IRUGO); |
69 | 69 | ||
70 | static int __read_mostly vmm_exclusive = 1; | 70 | static bool __read_mostly vmm_exclusive = 1; |
71 | module_param(vmm_exclusive, bool, S_IRUGO); | 71 | module_param(vmm_exclusive, bool, S_IRUGO); |
72 | 72 | ||
73 | static int __read_mostly yield_on_hlt = 1; | 73 | static bool __read_mostly yield_on_hlt = 1; |
74 | module_param(yield_on_hlt, bool, S_IRUGO); | 74 | module_param(yield_on_hlt, bool, S_IRUGO); |
75 | 75 | ||
76 | static int __read_mostly fasteoi = 1; | 76 | static bool __read_mostly fasteoi = 1; |
77 | module_param(fasteoi, bool, S_IRUGO); | 77 | module_param(fasteoi, bool, S_IRUGO); |
78 | 78 | ||
79 | /* | 79 | /* |
@@ -81,7 +81,7 @@ module_param(fasteoi, bool, S_IRUGO); | |||
81 | * VMX and be a hypervisor for its own guests. If nested=0, guests may not | 81 | * VMX and be a hypervisor for its own guests. If nested=0, guests may not |
82 | * use VMX instructions. | 82 | * use VMX instructions. |
83 | */ | 83 | */ |
84 | static int __read_mostly nested = 0; | 84 | static bool __read_mostly nested = 0; |
85 | module_param(nested, bool, S_IRUGO); | 85 | module_param(nested, bool, S_IRUGO); |
86 | 86 | ||
87 | #define KVM_GUEST_CR0_MASK_UNRESTRICTED_GUEST \ | 87 | #define KVM_GUEST_CR0_MASK_UNRESTRICTED_GUEST \ |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1171def5f96b..14d6cadc4ba6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -88,8 +88,8 @@ static void process_nmi(struct kvm_vcpu *vcpu); | |||
88 | struct kvm_x86_ops *kvm_x86_ops; | 88 | struct kvm_x86_ops *kvm_x86_ops; |
89 | EXPORT_SYMBOL_GPL(kvm_x86_ops); | 89 | EXPORT_SYMBOL_GPL(kvm_x86_ops); |
90 | 90 | ||
91 | int ignore_msrs = 0; | 91 | static bool ignore_msrs = 0; |
92 | module_param_named(ignore_msrs, ignore_msrs, bool, S_IRUGO | S_IWUSR); | 92 | module_param(ignore_msrs, bool, S_IRUGO | S_IWUSR); |
93 | 93 | ||
94 | bool kvm_has_tsc_control; | 94 | bool kvm_has_tsc_control; |
95 | EXPORT_SYMBOL_GPL(kvm_has_tsc_control); | 95 | EXPORT_SYMBOL_GPL(kvm_has_tsc_control); |
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c index de54b9b278a7..dc0b727742f4 100644 --- a/arch/x86/mm/mmio-mod.c +++ b/arch/x86/mm/mmio-mod.c | |||
@@ -75,8 +75,8 @@ static LIST_HEAD(trace_list); /* struct remap_trace */ | |||
75 | 75 | ||
76 | /* module parameters */ | 76 | /* module parameters */ |
77 | static unsigned long filter_offset; | 77 | static unsigned long filter_offset; |
78 | static int nommiotrace; | 78 | static bool nommiotrace; |
79 | static int trace_pc; | 79 | static bool trace_pc; |
80 | 80 | ||
81 | module_param(filter_offset, ulong, 0); | 81 | module_param(filter_offset, ulong, 0); |
82 | module_param(nommiotrace, bool, 0); | 82 | module_param(nommiotrace, bool, 0); |
diff --git a/arch/x86/platform/geode/alix.c b/arch/x86/platform/geode/alix.c index ca1973699d3d..dc5f1d32aced 100644 --- a/arch/x86/platform/geode/alix.c +++ b/arch/x86/platform/geode/alix.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <asm/geode.h> | 28 | #include <asm/geode.h> |
29 | 29 | ||
30 | static int force = 0; | 30 | static bool force = 0; |
31 | module_param(force, bool, 0444); | 31 | module_param(force, bool, 0444); |
32 | /* FIXME: Award bios is not automatically detected as Alix platform */ | 32 | /* FIXME: Award bios is not automatically detected as Alix platform */ |
33 | MODULE_PARM_DESC(force, "Force detection as ALIX.2/ALIX.3 platform"); | 33 | MODULE_PARM_DESC(force, "Force detection as ALIX.2/ALIX.3 platform"); |
diff --git a/arch/x86/platform/iris/iris.c b/arch/x86/platform/iris/iris.c index 1ba7f5ed8c9b..5917eb56b313 100644 --- a/arch/x86/platform/iris/iris.c +++ b/arch/x86/platform/iris/iris.c | |||
@@ -42,7 +42,7 @@ MODULE_AUTHOR("Sébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>"); | |||
42 | MODULE_DESCRIPTION("A power_off handler for Iris devices from EuroBraille"); | 42 | MODULE_DESCRIPTION("A power_off handler for Iris devices from EuroBraille"); |
43 | MODULE_SUPPORTED_DEVICE("Eurobraille/Iris"); | 43 | MODULE_SUPPORTED_DEVICE("Eurobraille/Iris"); |
44 | 44 | ||
45 | static int force; | 45 | static bool force; |
46 | 46 | ||
47 | module_param(force, bool, 0); | 47 | module_param(force, bool, 0); |
48 | MODULE_PARM_DESC(force, "Set to one to force poweroff handler installation."); | 48 | MODULE_PARM_DESC(force, "Set to one to force poweroff handler installation."); |