Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'for-linus' of git://github.com/rustyrussell/linux

Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1

* tag 'for-linus' of git://github.com/rustyrussell/linux:
module_param: check that bool parameters really are bool.
intelfbdrv.c: bailearly is an int module_param
paride/pcd: fix bool verbose module parameter.
module_param: make bool parameters really bool (drivers & misc)
module_param: make bool parameters really bool (arch)
module_param: make bool parameters really bool (core code)
kernel/async: remove redundant declaration.
printk: fix unnecessary module_param_name.
lirc_parallel: fix module parameter description.
module_param: avoid bool abuse, add bint for special cases.
module_param: check type correctness for module_param_array
modpost: use linker section to generate table.
modpost: use a table rather than a giant if/else statement.
modules: sysfs - export: taint, coresize, initsize
kernel/params: replace DEBUGP with pr_debug
module: replace DEBUGP with pr_debug
module: struct module_ref should contains long fields
module: Fix performance regression on modules with large symbol tables
module: Add comments describing how the "strmap" logic works

Fix up conflicts in scripts/mod/file2alias.c due to the new linker-
generated table approach to adding __mod_*_device_table entries. The
ARM sa11x0 mcp bus needed to be converted to that too.

+794 -759
+16
Documentation/ABI/testing/sysfs-module
··· 33 33 Beware, non-standard modes are usually not thoroughly tested by 34 34 hardware designers, and the hardware can malfunction when this 35 35 setting differ from default 100. 36 + 37 + What: /sys/module/*/{coresize,initsize} 38 + Date: Jan 2012 39 + KernelVersion:»·3.3 40 + Contact: Kay Sievers <kay.sievers@vrfy.org> 41 + Description: Module size in bytes. 42 + 43 + What: /sys/module/*/taint 44 + Date: Jan 2012 45 + KernelVersion:»·3.3 46 + Contact: Kay Sievers <kay.sievers@vrfy.org> 47 + Description: Module taint flags: 48 + P - proprietary module 49 + O - out-of-tree module 50 + F - force-loaded module 51 + C - staging driver module
+1 -1
arch/ia64/hp/common/aml_nfw.c
··· 31 31 MODULE_LICENSE("GPL"); 32 32 MODULE_DESCRIPTION("ACPI opregion handler for native firmware calls"); 33 33 34 - static int force_register; 34 + static bool force_register; 35 35 module_param_named(force, force_register, bool, 0); 36 36 MODULE_PARM_DESC(force, "Install opregion handler even without HPQ5001 device"); 37 37
+8 -8
arch/x86/kernel/apm_32.c
··· 383 383 static int ignore_normal_resume; 384 384 static int bounce_interval __read_mostly = DEFAULT_BOUNCE_INTERVAL; 385 385 386 - static int debug __read_mostly; 387 - static int smp __read_mostly; 386 + static bool debug __read_mostly; 387 + static bool smp __read_mostly; 388 388 static int apm_disabled = -1; 389 389 #ifdef CONFIG_SMP 390 - static int power_off; 390 + static bool power_off; 391 391 #else 392 - static int power_off = 1; 392 + static bool power_off = 1; 393 393 #endif 394 - static int realmode_power_off; 394 + static bool realmode_power_off; 395 395 #ifdef CONFIG_APM_ALLOW_INTS 396 - static int allow_ints = 1; 396 + static bool allow_ints = 1; 397 397 #else 398 - static int allow_ints; 398 + static bool allow_ints; 399 399 #endif 400 - static int broken_psr; 400 + static bool broken_psr; 401 401 402 402 static DECLARE_WAIT_QUEUE_HEAD(apm_waitqueue); 403 403 static DECLARE_WAIT_QUEUE_HEAD(apm_suspend_waitqueue);
+1 -1
arch/x86/kvm/mmu.c
··· 74 74 #endif 75 75 76 76 #ifdef MMU_DEBUG 77 - static int dbg = 0; 77 + static bool dbg = 0; 78 78 module_param(dbg, bool, 0644); 79 79 #endif 80 80
+9 -9
arch/x86/kvm/vmx.c
··· 51 51 MODULE_AUTHOR("Qumranet"); 52 52 MODULE_LICENSE("GPL"); 53 53 54 - static int __read_mostly enable_vpid = 1; 54 + static bool __read_mostly enable_vpid = 1; 55 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 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 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 64 module_param_named(unrestricted_guest, 65 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 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 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 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 77 module_param(fasteoi, bool, S_IRUGO); 78 78 79 79 /* ··· 81 81 * VMX and be a hypervisor for its own guests. If nested=0, guests may not 82 82 * use VMX instructions. 83 83 */ 84 - static int __read_mostly nested = 0; 84 + static bool __read_mostly nested = 0; 85 85 module_param(nested, bool, S_IRUGO); 86 86 87 87 #define KVM_GUEST_CR0_MASK_UNRESTRICTED_GUEST \
+2 -2
arch/x86/kvm/x86.c
··· 88 88 struct kvm_x86_ops *kvm_x86_ops; 89 89 EXPORT_SYMBOL_GPL(kvm_x86_ops); 90 90 91 - int ignore_msrs = 0; 92 - module_param_named(ignore_msrs, ignore_msrs, bool, S_IRUGO | S_IWUSR); 91 + static bool ignore_msrs = 0; 92 + module_param(ignore_msrs, bool, S_IRUGO | S_IWUSR); 93 93 94 94 bool kvm_has_tsc_control; 95 95 EXPORT_SYMBOL_GPL(kvm_has_tsc_control);
+2 -2
arch/x86/mm/mmio-mod.c
··· 75 75 76 76 /* module parameters */ 77 77 static unsigned long filter_offset; 78 - static int nommiotrace; 79 - static int trace_pc; 78 + static bool nommiotrace; 79 + static bool trace_pc; 80 80 81 81 module_param(filter_offset, ulong, 0); 82 82 module_param(nommiotrace, bool, 0);
+1 -1
arch/x86/platform/geode/alix.c
··· 27 27 28 28 #include <asm/geode.h> 29 29 30 - static int force = 0; 30 + static bool force = 0; 31 31 module_param(force, bool, 0444); 32 32 /* FIXME: Award bios is not automatically detected as Alix platform */ 33 33 MODULE_PARM_DESC(force, "Force detection as ALIX.2/ALIX.3 platform");
+1 -1
arch/x86/platform/iris/iris.c
··· 42 42 MODULE_DESCRIPTION("A power_off handler for Iris devices from EuroBraille"); 43 43 MODULE_SUPPORTED_DEVICE("Eurobraille/Iris"); 44 44 45 - static int force; 45 + static bool force; 46 46 47 47 module_param(force, bool, 0); 48 48 MODULE_PARM_DESC(force, "Set to one to force poweroff handler installation.");
+1 -1
drivers/accessibility/braille/braille_console.c
··· 44 44 */ 45 45 46 46 /* Emit various sounds */ 47 - static int sound; 47 + static bool sound; 48 48 module_param(sound, bool, 0); 49 49 MODULE_PARM_DESC(sound, "emit sounds"); 50 50
+1 -1
drivers/acpi/acpica/acglobal.h
··· 108 108 /* 109 109 * Optionally enable output from the AML Debug Object. 110 110 */ 111 - u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); 111 + bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE); 112 112 113 113 /* 114 114 * Optionally copy the entire DSDT to local memory (instead of simply
+1 -1
drivers/acpi/apei/ghes.c
··· 118 118 struct rcu_head rcu; 119 119 }; 120 120 121 - int ghes_disable; 121 + bool ghes_disable; 122 122 module_param_named(disable, ghes_disable, bool, 0); 123 123 124 124 static int ghes_panic_timeout __read_mostly = 30;
+1 -1
drivers/acpi/apei/hest.c
··· 41 41 42 42 #define HEST_PFX "HEST: " 43 43 44 - int hest_disable; 44 + bool hest_disable; 45 45 EXPORT_SYMBOL_GPL(hest_disable); 46 46 47 47 /* HEST table parsing */
+1 -1
drivers/acpi/dock.c
··· 43 43 MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION); 44 44 MODULE_LICENSE("GPL"); 45 45 46 - static int immediate_undock = 1; 46 + static bool immediate_undock = 1; 47 47 module_param(immediate_undock, bool, 0644); 48 48 MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to " 49 49 "undock immediately when the undock button is pressed, 0 will cause"
+1 -1
drivers/acpi/pci_slot.c
··· 34 34 #include <acpi/acpi_drivers.h> 35 35 #include <linux/dmi.h> 36 36 37 - static int debug; 37 + static bool debug; 38 38 static int check_sta_before_sun; 39 39 40 40 #define DRIVER_VERSION "0.1"
+3 -3
drivers/acpi/video.c
··· 69 69 MODULE_DESCRIPTION("ACPI Video Driver"); 70 70 MODULE_LICENSE("GPL"); 71 71 72 - static int brightness_switch_enabled = 1; 72 + static bool brightness_switch_enabled = 1; 73 73 module_param(brightness_switch_enabled, bool, 0644); 74 74 75 75 /* 76 76 * By default, we don't allow duplicate ACPI video bus devices 77 77 * under the same VGA controller 78 78 */ 79 - static int allow_duplicates; 79 + static bool allow_duplicates; 80 80 module_param(allow_duplicates, bool, 0644); 81 81 82 82 /* 83 83 * Some BIOSes claim they use minimum backlight at boot, 84 84 * and this may bring dimming screen after boot 85 85 */ 86 - static int use_bios_initial_backlight = 1; 86 + static bool use_bios_initial_backlight = 1; 87 87 module_param(use_bios_initial_backlight, bool, 0644); 88 88 89 89 static int register_count = 0;
+3 -3
drivers/ata/sata_nv.c
··· 599 599 MODULE_DEVICE_TABLE(pci, nv_pci_tbl); 600 600 MODULE_VERSION(DRV_VERSION); 601 601 602 - static int adma_enabled; 603 - static int swncq_enabled = 1; 604 - static int msi_enabled; 602 + static bool adma_enabled; 603 + static bool swncq_enabled = 1; 604 + static bool msi_enabled; 605 605 606 606 static void nv_adma_register_mode(struct ata_port *ap) 607 607 {
+1 -1
drivers/ata/sata_sil24.c
··· 417 417 #endif 418 418 }; 419 419 420 - static int sata_sil24_msi; /* Disable MSI */ 420 + static bool sata_sil24_msi; /* Disable MSI */ 421 421 module_param_named(msi, sata_sil24_msi, bool, S_IRUGO); 422 422 MODULE_PARM_DESC(msi, "Enable MSI (Default: false)"); 423 423
+3 -3
drivers/atm/he.c
··· 112 112 /* globals */ 113 113 114 114 static struct he_dev *he_devs; 115 - static int disable64; 115 + static bool disable64; 116 116 static short nvpibits = -1; 117 117 static short nvcibits = -1; 118 118 static short rx_skb_reserve = 16; 119 - static int irq_coalesce = 1; 120 - static int sdh = 0; 119 + static bool irq_coalesce = 1; 120 + static bool sdh = 0; 121 121 122 122 /* Read from EEPROM = 0000 0011b */ 123 123 static unsigned int readtab[] = {
+2 -2
drivers/block/drbd/drbd_int.h
··· 59 59 60 60 /* module parameter, defined in drbd_main.c */ 61 61 extern unsigned int minor_count; 62 - extern int disable_sendpage; 63 - extern int allow_oos; 62 + extern bool disable_sendpage; 63 + extern bool allow_oos; 64 64 extern unsigned int cn_idx; 65 65 66 66 #ifdef CONFIG_DRBD_FAULT_INJECTION
+2 -2
drivers/block/drbd/drbd_main.c
··· 117 117 118 118 /* module parameter, defined */ 119 119 unsigned int minor_count = DRBD_MINOR_COUNT_DEF; 120 - int disable_sendpage; 121 - int allow_oos; 120 + bool disable_sendpage; 121 + bool allow_oos; 122 122 unsigned int cn_idx = CN_IDX_DRBD; 123 123 int proc_details; /* Detail level in proc drbd*/ 124 124
+2 -3
drivers/block/paride/bpck6.c
··· 20 20 */ 21 21 22 22 23 - /* PARAMETERS */ 24 - static int verbose; /* set this to 1 to see debugging messages and whatnot */ 25 - 26 23 #define BACKPACK_VERSION "2.0.2" 27 24 28 25 #include <linux/module.h> ··· 33 36 #include "ppc6lnx.c" 34 37 #include "paride.h" 35 38 39 + /* PARAMETERS */ 40 + static bool verbose; /* set this to 1 to see debugging messages and whatnot */ 36 41 37 42 38 43 #define PPCSTRUCT(pi) ((Interface *)(pi->private))
+1 -1
drivers/block/paride/pcd.c
··· 144 144 static DEFINE_MUTEX(pcd_mutex); 145 145 static DEFINE_SPINLOCK(pcd_lock); 146 146 147 - module_param(verbose, bool, 0644); 147 + module_param(verbose, int, 0644); 148 148 module_param(major, int, 0); 149 149 module_param(name, charp, 0); 150 150 module_param(nice, int, 0);
+2 -1
drivers/block/paride/pd.c
··· 124 124 by default. 125 125 126 126 */ 127 + #include <linux/types.h> 127 128 128 - static int verbose = 0; 129 + static bool verbose = 0; 129 130 static int major = PD_MAJOR; 130 131 static char *name = PD_NAME; 131 132 static int cluster = 64;
+3 -1
drivers/block/paride/pf.c
··· 118 118 #define PF_NAME "pf" 119 119 #define PF_UNITS 4 120 120 121 + #include <linux/types.h> 122 + 121 123 /* Here are things one can override from the insmod command. 122 124 Most are autoprobed by paride unless set here. Verbose is off 123 125 by default. 124 126 125 127 */ 126 128 127 - static int verbose = 0; 129 + static bool verbose = 0; 128 130 static int major = PF_MAJOR; 129 131 static char *name = PF_NAME; 130 132 static int cluster = 64;
+2 -1
drivers/block/paride/pg.c
··· 130 130 #define PI_PG 4 131 131 #endif 132 132 133 + #include <linux/types.h> 133 134 /* Here are things one can override from the insmod command. 134 135 Most are autoprobed by paride unless set here. Verbose is 0 135 136 by default. 136 137 137 138 */ 138 139 139 - static int verbose = 0; 140 + static bool verbose = 0; 140 141 static int major = PG_MAJOR; 141 142 static char *name = PG_NAME; 142 143 static int disable = 0;
+3 -1
drivers/block/paride/pt.c
··· 109 109 #define PT_NAME "pt" 110 110 #define PT_UNITS 4 111 111 112 + #include <linux/types.h> 113 + 112 114 /* Here are things one can override from the insmod command. 113 115 Most are autoprobed by paride unless set here. Verbose is on 114 116 by default. 115 117 116 118 */ 117 119 118 - static int verbose = 0; 120 + static bool verbose = 0; 119 121 static int major = PT_MAJOR; 120 122 static char *name = PT_NAME; 121 123 static int disable = 0;
+1 -1
drivers/block/xd.c
··· 148 148 static struct timer_list xd_watchdog_int; 149 149 150 150 static volatile u_char xd_error; 151 - static int nodma = XD_DONT_USE_DMA; 151 + static bool nodma = XD_DONT_USE_DMA; 152 152 153 153 static struct request_queue *xd_queue; 154 154
+6 -6
drivers/bluetooth/btusb.c
··· 37 37 38 38 #define VERSION "0.6" 39 39 40 - static int ignore_dga; 41 - static int ignore_csr; 42 - static int ignore_sniffer; 43 - static int disable_scofix; 44 - static int force_scofix; 40 + static bool ignore_dga; 41 + static bool ignore_csr; 42 + static bool ignore_sniffer; 43 + static bool disable_scofix; 44 + static bool force_scofix; 45 45 46 - static int reset = 1; 46 + static bool reset = 1; 47 47 48 48 static struct usb_driver btusb_driver; 49 49
+2 -2
drivers/bluetooth/hci_bcsp.c
··· 49 49 50 50 #define VERSION "0.3" 51 51 52 - static int txcrc = 1; 53 - static int hciextn = 1; 52 + static bool txcrc = 1; 53 + static bool hciextn = 1; 54 54 55 55 #define BCSP_TXWINSIZE 4 56 56
+1 -1
drivers/bluetooth/hci_ldisc.c
··· 48 48 49 49 #define VERSION "2.2" 50 50 51 - static int reset = 0; 51 + static bool reset = 0; 52 52 53 53 static struct hci_uart_proto *hup[HCI_UART_MAX_PROTO]; 54 54
+6 -6
drivers/cdrom/cdrom.c
··· 285 285 #include <asm/uaccess.h> 286 286 287 287 /* used to tell the module to turn on full debugging messages */ 288 - static int debug; 288 + static bool debug; 289 289 /* used to keep tray locked at all times */ 290 290 static int keeplocked; 291 291 /* default compatibility mode */ 292 - static int autoclose=1; 293 - static int autoeject; 294 - static int lockdoor = 1; 292 + static bool autoclose=1; 293 + static bool autoeject; 294 + static bool lockdoor = 1; 295 295 /* will we ever get to use this... sigh. */ 296 - static int check_media_type; 296 + static bool check_media_type; 297 297 /* automatically restart mrw format */ 298 - static int mrw_format_restart = 1; 298 + static bool mrw_format_restart = 1; 299 299 module_param(debug, bool, 0); 300 300 module_param(autoclose, bool, 0); 301 301 module_param(autoeject, bool, 0);
+1 -1
drivers/char/agp/amd64-agp.c
··· 33 33 #define ULI_X86_64_ENU_SCR_REG 0x54 34 34 35 35 static struct resource *aperture_resource; 36 - static int __initdata agp_try_unsupported = 1; 36 + static bool __initdata agp_try_unsupported = 1; 37 37 static int agp_bridges_found; 38 38 39 39 static void amd64_tlbflush(struct agp_memory *temp)
+1 -1
drivers/char/agp/sis-agp.c
··· 17 17 #define PCI_DEVICE_ID_SI_662 0x0662 18 18 #define PCI_DEVICE_ID_SI_671 0x0671 19 19 20 - static int __devinitdata agp_sis_force_delay = 0; 20 + static bool __devinitdata agp_sis_force_delay = 0; 21 21 static int __devinitdata agp_sis_agp_spec = -1; 22 22 23 23 static int sis_fetch_size(void)
+4 -4
drivers/char/i8k.c
··· 69 69 MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops"); 70 70 MODULE_LICENSE("GPL"); 71 71 72 - static int force; 72 + static bool force; 73 73 module_param(force, bool, 0); 74 74 MODULE_PARM_DESC(force, "Force loading without checking for supported models"); 75 75 76 - static int ignore_dmi; 76 + static bool ignore_dmi; 77 77 module_param(ignore_dmi, bool, 0); 78 78 MODULE_PARM_DESC(ignore_dmi, "Continue probing hardware even if DMI data does not match"); 79 79 80 - static int restricted; 80 + static bool restricted; 81 81 module_param(restricted, bool, 0); 82 82 MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set"); 83 83 84 - static int power_status; 84 + static bool power_status; 85 85 module_param(power_status, bool, 0600); 86 86 MODULE_PARM_DESC(power_status, "Report power status in /proc/i8k"); 87 87
+1 -1
drivers/char/ipmi/ipmi_si_intf.c
··· 1227 1227 #define DEFAULT_REGSPACING 1 1228 1228 #define DEFAULT_REGSIZE 1 1229 1229 1230 - static int si_trydefaults = 1; 1230 + static bool si_trydefaults = 1; 1231 1231 static char *si_type[SI_MAX_PARMS]; 1232 1232 #define MAX_SI_TYPE_STR 30 1233 1233 static char si_type_str[MAX_SI_TYPE_STR];
+1 -1
drivers/char/lp.c
··· 829 829 830 830 static int parport_nr[LP_NO] = { [0 ... LP_NO-1] = LP_PARPORT_UNSPEC }; 831 831 static char *parport[LP_NO]; 832 - static int reset; 832 + static bool reset; 833 833 834 834 module_param_array(parport, charp, NULL, 0); 835 835 module_param(reset, bool, 0);
+1 -1
drivers/char/nwflash.c
··· 51 51 #define KFLASH_ID 0x89A6 //Intel flash 52 52 #define KFLASH_ID4 0xB0D4 //Intel flash 4Meg 53 53 54 - static int flashdebug; //if set - we will display progress msgs 54 + static bool flashdebug; //if set - we will display progress msgs 55 55 56 56 static int gbWriteEnable; 57 57 static int gbWriteBase64Enable;
+1 -1
drivers/char/random.c
··· 387 387 static struct fasync_struct *fasync; 388 388 389 389 #if 0 390 - static int debug; 390 + static bool debug; 391 391 module_param(debug, bool, 0644); 392 392 #define DEBUG_ENT(fmt, arg...) do { \ 393 393 if (debug) \
+3 -3
drivers/char/tpm/tpm_tis.c
··· 255 255 return size; 256 256 } 257 257 258 - static int itpm; 258 + static bool itpm; 259 259 module_param(itpm, bool, 0444); 260 260 MODULE_PARM_DESC(itpm, "Force iTPM workarounds (found on some Lenovo laptops)"); 261 261 ··· 500 500 return IRQ_HANDLED; 501 501 } 502 502 503 - static int interrupts = 1; 503 + static bool interrupts = 1; 504 504 module_param(interrupts, bool, 0444); 505 505 MODULE_PARM_DESC(interrupts, "Enable interrupts"); 506 506 ··· 828 828 829 829 static struct platform_device *pdev; 830 830 831 - static int force; 831 + static bool force; 832 832 module_param(force, bool, 0444); 833 833 MODULE_PARM_DESC(force, "Force device probe rather than using ACPI entry"); 834 834 static int __init init_tis(void)
+1 -1
drivers/edac/r82600_edac.c
··· 131 131 u32 eapr; 132 132 }; 133 133 134 - static unsigned int disable_hardware_scrub; 134 + static bool disable_hardware_scrub; 135 135 136 136 static struct edac_pci_ctl_info *r82600_pci; 137 137
+1 -1
drivers/firewire/sbp2.c
··· 66 66 * 67 67 * Concurrent logins are useful together with cluster filesystems. 68 68 */ 69 - static int sbp2_param_exclusive_login = 1; 69 + static bool sbp2_param_exclusive_login = 1; 70 70 module_param_named(exclusive_login, sbp2_param_exclusive_login, bool, 0644); 71 71 MODULE_PARM_DESC(exclusive_login, "Exclusive login to sbp2 device " 72 72 "(default = Y, use N for concurrent initiators)");
+1 -1
drivers/hid/hid-prodikeys.c
··· 90 90 91 91 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 92 92 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 93 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 93 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 94 94 95 95 module_param_array(index, int, NULL, 0444); 96 96 module_param_array(id, charp, NULL, 0444);
+1 -1
drivers/hwmon/abituguru.c
··· 145 145 146 146 147 147 /* Insmod parameters */ 148 - static int force; 148 + static bool force; 149 149 module_param(force, bool, 0); 150 150 MODULE_PARM_DESC(force, "Set to one to force detection."); 151 151 static int bank1_types[ABIT_UGURU_MAX_BANK1_SENSORS] = { -1, -1, -1, -1, -1,
+2 -2
drivers/hwmon/abituguru3.c
··· 603 603 604 604 605 605 /* Insmod parameters */ 606 - static int force; 606 + static bool force; 607 607 module_param(force, bool, 0); 608 608 MODULE_PARM_DESC(force, "Set to one to force detection."); 609 609 /* Default verbose is 1, since this driver is still in the testing phase */ 610 - static int verbose = 1; 610 + static bool verbose = 1; 611 611 module_param(verbose, bool, 0644); 612 612 MODULE_PARM_DESC(verbose, "Enable/disable verbose error reporting"); 613 613
+1 -1
drivers/hwmon/acpi_power_meter.c
··· 58 58 #define POWER_ALARM_NAME "power1_alarm" 59 59 60 60 static int cap_in_hardware; 61 - static int force_cap_on; 61 + static bool force_cap_on; 62 62 63 63 static int can_cap_in_hardware(void) 64 64 {
+1 -1
drivers/hwmon/adm1021.c
··· 103 103 static struct adm1021_data *adm1021_update_device(struct device *dev); 104 104 105 105 /* (amalysh) read only mode, otherwise any limit's writing confuse BIOS */ 106 - static int read_only; 106 + static bool read_only; 107 107 108 108 109 109 static const struct i2c_device_id adm1021_id[] = {
+2 -2
drivers/hwmon/ads7828.c
··· 48 48 I2C_CLIENT_END }; 49 49 50 50 /* Module parameters */ 51 - static int se_input = 1; /* Default is SE, 0 == diff */ 52 - static int int_vref = 1; /* Default is internal ref ON */ 51 + static bool se_input = 1; /* Default is SE, 0 == diff */ 52 + static bool int_vref = 1; /* Default is internal ref ON */ 53 53 static int vref_mv = ADS7828_INT_VREF_MV; /* set if vref != 2.5V */ 54 54 module_param(se_input, bool, S_IRUGO); 55 55 module_param(int_vref, bool, S_IRUGO);
+2 -2
drivers/hwmon/dme1737.c
··· 45 45 static struct platform_device *pdev; 46 46 47 47 /* Module load parameters */ 48 - static int force_start; 48 + static bool force_start; 49 49 module_param(force_start, bool, 0); 50 50 MODULE_PARM_DESC(force_start, "Force the chip to start monitoring inputs"); 51 51 ··· 53 53 module_param(force_id, ushort, 0); 54 54 MODULE_PARM_DESC(force_id, "Override the detected device ID"); 55 55 56 - static int probe_all_addr; 56 + static bool probe_all_addr; 57 57 module_param(probe_all_addr, bool, 0); 58 58 MODULE_PARM_DESC(probe_all_addr, "Include probing of non-standard LPC " 59 59 "addresses");
+1 -1
drivers/hwmon/emc2103.c
··· 55 55 * it. Default is to leave the device in the state it's already in (-1). 56 56 * This parameter allows APD mode to be optionally forced on or off */ 57 57 static int apd = -1; 58 - module_param(apd, bool, 0); 58 + module_param(apd, bint, 0); 59 59 MODULE_PARM_DESC(init, "Set to zero to disable anti-parallel diode mode"); 60 60 61 61 struct temperature {
+2 -2
drivers/hwmon/it87.c
··· 146 146 #define IT87_SIO_BEEP_PIN_REG 0xf6 /* Beep pin mapping */ 147 147 148 148 /* Update battery voltage after every reading if true */ 149 - static int update_vbat; 149 + static bool update_vbat; 150 150 151 151 /* Not all BIOSes properly configure the PWM registers */ 152 - static int fix_pwm_polarity; 152 + static bool fix_pwm_polarity; 153 153 154 154 /* Many IT87 constants specified below */ 155 155
+2 -2
drivers/hwmon/lm93.c
··· 151 151 152 152 /* Insmod parameters */ 153 153 154 - static int disable_block; 154 + static bool disable_block; 155 155 module_param(disable_block, bool, 0); 156 156 MODULE_PARM_DESC(disable_block, 157 157 "Set to non-zero to disable SMBus block data transactions."); 158 158 159 - static int init; 159 + static bool init; 160 160 module_param(init, bool, 0); 161 161 MODULE_PARM_DESC(init, "Set to non-zero to force chip initialization."); 162 162
+1 -1
drivers/hwmon/max1668.c
··· 59 59 #define DEV_ID_MAX1989 0xb 60 60 61 61 /* read only mode module parameter */ 62 - static int read_only; 62 + static bool read_only; 63 63 module_param(read_only, bool, 0); 64 64 MODULE_PARM_DESC(read_only, "Don't set any values, read only mode"); 65 65
+1 -1
drivers/hwmon/w83627hf.c
··· 71 71 MODULE_PARM_DESC(force_i2c, 72 72 "Initialize the i2c address of the sensors"); 73 73 74 - static int init = 1; 74 + static bool init = 1; 75 75 module_param(init, bool, 0); 76 76 MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); 77 77
+2 -2
drivers/hwmon/w83781d.c
··· 67 67 MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 68 68 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 69 69 70 - static int reset; 70 + static bool reset; 71 71 module_param(reset, bool, 0); 72 72 MODULE_PARM_DESC(reset, "Set to one to reset chip on load"); 73 73 74 - static int init = 1; 74 + static bool init = 1; 75 75 module_param(init, bool, 0); 76 76 MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization"); 77 77
+2 -2
drivers/hwmon/w83791d.c
··· 58 58 MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 59 59 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 60 60 61 - static int reset; 61 + static bool reset; 62 62 module_param(reset, bool, 0); 63 63 MODULE_PARM_DESC(reset, "Set to one to force a hardware chip reset"); 64 64 65 - static int init; 65 + static bool init; 66 66 module_param(init, bool, 0); 67 67 MODULE_PARM_DESC(init, "Set to one to force extra software initialization"); 68 68
+1 -1
drivers/hwmon/w83792d.c
··· 56 56 MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 57 57 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 58 58 59 - static int init; 59 + static bool init; 60 60 module_param(init, bool, 0); 61 61 MODULE_PARM_DESC(init, "Set to one to force chip initialization"); 62 62
+1 -1
drivers/hwmon/w83793.c
··· 61 61 MODULE_PARM_DESC(force_subclients, "List of subclient addresses: " 62 62 "{bus, clientaddr, subclientaddr1, subclientaddr2}"); 63 63 64 - static int reset; 64 + static bool reset; 65 65 module_param(reset, bool, 0); 66 66 MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 67 67
+1 -1
drivers/hwmon/w83795.c
··· 42 42 }; 43 43 44 44 45 - static int reset; 45 + static bool reset; 46 46 module_param(reset, bool, 0); 47 47 MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 48 48
+1 -1
drivers/hwmon/w83l786ng.c
··· 39 39 40 40 /* Insmod parameters */ 41 41 42 - static int reset; 42 + static bool reset; 43 43 module_param(reset, bool, 0); 44 44 MODULE_PARM_DESC(reset, "Set to 1 to reset chip, not recommended"); 45 45
+1 -1
drivers/i2c/busses/i2c-highlander.c
··· 52 52 size_t buf_len; 53 53 }; 54 54 55 - static int iic_force_poll, iic_force_normal; 55 + static bool iic_force_poll, iic_force_normal; 56 56 static int iic_timeout = 1000, iic_read_delay; 57 57 58 58 static inline void highlander_i2c_irq_enable(struct highlander_i2c_dev *dev)
+2 -2
drivers/i2c/busses/i2c-ibm_iic.c
··· 51 51 MODULE_DESCRIPTION("IBM IIC driver v" DRIVER_VERSION); 52 52 MODULE_LICENSE("GPL"); 53 53 54 - static int iic_force_poll; 54 + static bool iic_force_poll; 55 55 module_param(iic_force_poll, bool, 0); 56 56 MODULE_PARM_DESC(iic_force_poll, "Force polling mode"); 57 57 58 - static int iic_force_fast; 58 + static bool iic_force_fast; 59 59 module_param(iic_force_fast, bool, 0); 60 60 MODULE_PARM_DESC(iic_force_fast, "Force fast mode (400 kHz)"); 61 61
+2 -2
drivers/i2c/busses/i2c-sis630.c
··· 93 93 static struct pci_driver sis630_driver; 94 94 95 95 /* insmod parameters */ 96 - static int high_clock; 97 - static int force; 96 + static bool high_clock; 97 + static bool force; 98 98 module_param(high_clock, bool, 0); 99 99 MODULE_PARM_DESC(high_clock, "Set Host Master Clock to 56KHz (default 14KHz)."); 100 100 module_param(force, bool, 0);
+1 -1
drivers/i2c/busses/i2c-viapro.c
··· 91 91 92 92 /* If force is set to anything different from 0, we forcibly enable the 93 93 VT596. DANGEROUS! */ 94 - static int force; 94 + static bool force; 95 95 module_param(force, bool, 0); 96 96 MODULE_PARM_DESC(force, "Forcibly enable the SMBus. DANGEROUS!"); 97 97
+1 -1
drivers/ide/ali14xx.c
··· 221 221 return ide_legacy_device_add(&ali14xx_port_info, 0); 222 222 } 223 223 224 - static int probe_ali14xx; 224 + static bool probe_ali14xx; 225 225 226 226 module_param_named(probe, probe_ali14xx, bool, 0); 227 227 MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets");
+1 -1
drivers/ide/cmd640.c
··· 111 111 112 112 #define DRV_NAME "cmd640" 113 113 114 - static int cmd640_vlb; 114 + static bool cmd640_vlb; 115 115 116 116 /* 117 117 * CMD640 specific registers definition.
+1 -1
drivers/ide/dtc2278.c
··· 130 130 return ide_legacy_device_add(&dtc2278_port_info, 0); 131 131 } 132 132 133 - static int probe_dtc2278; 133 + static bool probe_dtc2278; 134 134 135 135 module_param_named(probe, probe_dtc2278, bool, 0); 136 136 MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets");
+1 -1
drivers/ide/gayle.c
··· 50 50 GAYLE_NUM_HWIFS-1) 51 51 #define GAYLE_HAS_CONTROL_REG (!ide_doubler) 52 52 53 - static int ide_doubler; 53 + static bool ide_doubler; 54 54 module_param_named(doubler, ide_doubler, bool, 0); 55 55 MODULE_PARM_DESC(doubler, "enable support for IDE doublers"); 56 56
+1 -1
drivers/ide/ht6560b.c
··· 317 317 ide_set_drivedata(drive, (void *)t); 318 318 } 319 319 320 - static int probe_ht6560b; 320 + static bool probe_ht6560b; 321 321 322 322 module_param_named(probe, probe_ht6560b, bool, 0); 323 323 MODULE_PARM_DESC(probe, "probe for HT6560B chipset");
+1 -1
drivers/ide/ide-4drives.c
··· 6 6 7 7 #define DRV_NAME "ide-4drives" 8 8 9 - static int probe_4drives; 9 + static bool probe_4drives; 10 10 11 11 module_param_named(probe, probe_4drives, bool, 0); 12 12 MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port");
+3 -3
drivers/ide/ide-acpi.c
··· 53 53 #define DEBPRINT(fmt, args...) do {} while (0) 54 54 #endif /* DEBUGGING */ 55 55 56 - static int ide_noacpi; 56 + static bool ide_noacpi; 57 57 module_param_named(noacpi, ide_noacpi, bool, 0); 58 58 MODULE_PARM_DESC(noacpi, "disable IDE ACPI support"); 59 59 60 - static int ide_acpigtf; 60 + static bool ide_acpigtf; 61 61 module_param_named(acpigtf, ide_acpigtf, bool, 0); 62 62 MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support"); 63 63 64 - static int ide_acpionboot; 64 + static bool ide_acpionboot; 65 65 module_param_named(acpionboot, ide_acpionboot, bool, 0); 66 66 MODULE_PARM_DESC(acpionboot, "call IDE ACPI methods on boot"); 67 67
+1 -1
drivers/ide/ide-pci-generic.c
··· 28 28 29 29 #define DRV_NAME "ide_pci_generic" 30 30 31 - static int ide_generic_all; /* Set to claim all devices */ 31 + static bool ide_generic_all; /* Set to claim all devices */ 32 32 33 33 module_param_named(all_generic_ide, ide_generic_all, bool, 0444); 34 34 MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers.");
+1 -1
drivers/ide/qd65xx.c
··· 417 417 return rc; 418 418 } 419 419 420 - static int probe_qd65xx; 420 + static bool probe_qd65xx; 421 421 422 422 module_param_named(probe, probe_qd65xx, bool, 0); 423 423 MODULE_PARM_DESC(probe, "probe for QD65xx chipsets");
+1 -1
drivers/ide/umc8672.c
··· 160 160 return ide_legacy_device_add(&umc8672_port_info, 0); 161 161 } 162 162 163 - static int probe_umc8672; 163 + static bool probe_umc8672; 164 164 165 165 module_param_named(probe, probe_umc8672, bool, 0); 166 166 MODULE_PARM_DESC(probe, "probe for UMC8672 chipset");
+2 -2
drivers/infiniband/hw/ehca/ehca_classes.h
··· 379 379 380 380 extern int ehca_static_rate; 381 381 extern int ehca_port_act_time; 382 - extern int ehca_use_hp_mr; 383 - extern int ehca_scaling_code; 382 + extern bool ehca_use_hp_mr; 383 + extern bool ehca_scaling_code; 384 384 extern int ehca_lock_hcalls; 385 385 extern int ehca_nr_ports; 386 386 extern int ehca_max_cq;
+5 -5
drivers/infiniband/hw/ehca/ehca_main.c
··· 59 59 MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver"); 60 60 MODULE_VERSION(HCAD_VERSION); 61 61 62 - static int ehca_open_aqp1 = 0; 62 + static bool ehca_open_aqp1 = 0; 63 63 static int ehca_hw_level = 0; 64 - static int ehca_poll_all_eqs = 1; 64 + static bool ehca_poll_all_eqs = 1; 65 65 66 66 int ehca_debug_level = 0; 67 67 int ehca_nr_ports = -1; 68 - int ehca_use_hp_mr = 0; 68 + bool ehca_use_hp_mr = 0; 69 69 int ehca_port_act_time = 30; 70 70 int ehca_static_rate = -1; 71 - int ehca_scaling_code = 0; 71 + bool ehca_scaling_code = 0; 72 72 int ehca_lock_hcalls = -1; 73 73 int ehca_max_cq = -1; 74 74 int ehca_max_qp = -1; ··· 82 82 module_param_named(poll_all_eqs, ehca_poll_all_eqs, bool, S_IRUGO); 83 83 module_param_named(static_rate, ehca_static_rate, int, S_IRUGO); 84 84 module_param_named(scaling_code, ehca_scaling_code, bool, S_IRUGO); 85 - module_param_named(lock_hcalls, ehca_lock_hcalls, bool, S_IRUGO); 85 + module_param_named(lock_hcalls, ehca_lock_hcalls, bint, S_IRUGO); 86 86 module_param_named(number_of_cqs, ehca_max_cq, int, S_IRUGO); 87 87 module_param_named(number_of_qps, ehca_max_qp, int, S_IRUGO); 88 88
+1 -1
drivers/infiniband/hw/nes/nes.c
··· 96 96 module_param(wqm_quanta, int, 0644); 97 97 MODULE_PARM_DESC(wqm_quanta, "WQM quanta"); 98 98 99 - static unsigned int limit_maxrdreqsz; 99 + static bool limit_maxrdreqsz; 100 100 module_param(limit_maxrdreqsz, bool, 0644); 101 101 MODULE_PARM_DESC(limit_maxrdreqsz, "Limit max read request size to 256 Bytes"); 102 102
+3 -3
drivers/input/joystick/xpad.c
··· 98 98 #define XTYPE_XBOX360W 2 99 99 #define XTYPE_UNKNOWN 3 100 100 101 - static int dpad_to_buttons; 101 + static bool dpad_to_buttons; 102 102 module_param(dpad_to_buttons, bool, S_IRUGO); 103 103 MODULE_PARM_DESC(dpad_to_buttons, "Map D-PAD to buttons rather than axes for unknown pads"); 104 104 105 - static int triggers_to_buttons; 105 + static bool triggers_to_buttons; 106 106 module_param(triggers_to_buttons, bool, S_IRUGO); 107 107 MODULE_PARM_DESC(triggers_to_buttons, "Map triggers to buttons rather than axes for unknown pads"); 108 108 109 - static int sticks_to_null; 109 + static bool sticks_to_null; 110 110 module_param(sticks_to_null, bool, S_IRUGO); 111 111 MODULE_PARM_DESC(sticks_to_null, "Do not map sticks at all for unknown pads"); 112 112
+1 -1
drivers/input/misc/wistron_btns.c
··· 48 48 MODULE_LICENSE("GPL v2"); 49 49 MODULE_VERSION("0.3"); 50 50 51 - static int force; /* = 0; */ 51 + static bool force; /* = 0; */ 52 52 module_param(force, bool, 0); 53 53 MODULE_PARM_DESC(force, "Load even if computer is not in database"); 54 54
+1 -1
drivers/input/mouse/psmouse-base.c
··· 60 60 module_param_named(rate, psmouse_rate, uint, 0644); 61 61 MODULE_PARM_DESC(rate, "Report rate, in reports per second."); 62 62 63 - static unsigned int psmouse_smartscroll = 1; 63 + static bool psmouse_smartscroll = 1; 64 64 module_param_named(smartscroll, psmouse_smartscroll, bool, 0644); 65 65 MODULE_PARM_DESC(smartscroll, "Logitech Smartscroll autorepeat, 1 = enabled (default), 0 = disabled."); 66 66
+3 -3
drivers/input/mouse/synaptics_i2c.c
··· 185 185 #define NO_DATA_SLEEP_MSECS (MSEC_PER_SEC / 4) 186 186 187 187 /* Control touchpad's No Deceleration option */ 188 - static int no_decel = 1; 188 + static bool no_decel = 1; 189 189 module_param(no_decel, bool, 0644); 190 190 MODULE_PARM_DESC(no_decel, "No Deceleration. Default = 1 (on)"); 191 191 192 192 /* Control touchpad's Reduced Reporting option */ 193 - static int reduce_report; 193 + static bool reduce_report; 194 194 module_param(reduce_report, bool, 0644); 195 195 MODULE_PARM_DESC(reduce_report, "Reduced Reporting. Default = 0 (off)"); 196 196 197 197 /* Control touchpad's No Filter option */ 198 - static int no_filter; 198 + static bool no_filter; 199 199 module_param(no_filter, bool, 0644); 200 200 MODULE_PARM_DESC(no_filter, "No Filter. Default = 0 (off)"); 201 201
+1 -1
drivers/input/serio/hp_sdc.c
··· 105 105 EXPORT_SYMBOL(hp_sdc_enqueue_transaction); 106 106 EXPORT_SYMBOL(hp_sdc_dequeue_transaction); 107 107 108 - static unsigned int hp_sdc_disabled; 108 + static bool hp_sdc_disabled; 109 109 module_param_named(no_hpsdc, hp_sdc_disabled, bool, 0); 110 110 MODULE_PARM_DESC(no_hpsdc, "Do not enable HP SDC driver."); 111 111
+2 -2
drivers/input/touchscreen/eeti_ts.c
··· 35 35 #include <linux/input/eeti_ts.h> 36 36 #include <linux/slab.h> 37 37 38 - static int flip_x; 38 + static bool flip_x; 39 39 module_param(flip_x, bool, 0644); 40 40 MODULE_PARM_DESC(flip_x, "flip x coordinate"); 41 41 42 - static int flip_y; 42 + static bool flip_y; 43 43 module_param(flip_y, bool, 0644); 44 44 MODULE_PARM_DESC(flip_y, "flip y coordinate"); 45 45
+2 -2
drivers/input/touchscreen/htcpen.c
··· 40 40 #define X_AXIS_MAX 2040 41 41 #define Y_AXIS_MAX 2040 42 42 43 - static int invert_x; 43 + static bool invert_x; 44 44 module_param(invert_x, bool, 0644); 45 45 MODULE_PARM_DESC(invert_x, "If set, X axis is inverted"); 46 - static int invert_y; 46 + static bool invert_y; 47 47 module_param(invert_y, bool, 0644); 48 48 MODULE_PARM_DESC(invert_y, "If set, Y axis is inverted"); 49 49
+1 -1
drivers/input/touchscreen/ucb1400_ts.c
··· 30 30 31 31 #define UCB1400_TS_POLL_PERIOD 10 /* ms */ 32 32 33 - static int adcsync; 33 + static bool adcsync; 34 34 static int ts_delay = 55; /* us */ 35 35 static int ts_delay_pressure; /* us */ 36 36
+2 -2
drivers/input/touchscreen/usbtouchscreen.c
··· 60 60 #define DRIVER_AUTHOR "Daniel Ritz <daniel.ritz@gmx.ch>" 61 61 #define DRIVER_DESC "USB Touchscreen Driver" 62 62 63 - static int swap_xy; 63 + static bool swap_xy; 64 64 module_param(swap_xy, bool, 0644); 65 65 MODULE_PARM_DESC(swap_xy, "If set X and Y axes are swapped."); 66 66 67 - static int hwcalib_xy; 67 + static bool hwcalib_xy; 68 68 module_param(hwcalib_xy, bool, 0644); 69 69 MODULE_PARM_DESC(hwcalib_xy, "If set hw-calibrated X/Y are used if available"); 70 70
+1 -1
drivers/isdn/hardware/avm/b1dma.c
··· 40 40 MODULE_AUTHOR("Carsten Paeth"); 41 41 MODULE_LICENSE("GPL"); 42 42 43 - static int suppress_pollack = 0; 43 + static bool suppress_pollack = 0; 44 44 module_param(suppress_pollack, bool, 0); 45 45 46 46 /* ------------------------------------------------------------- */
+1 -1
drivers/isdn/hardware/avm/c4.c
··· 40 40 41 41 /* ------------------------------------------------------------- */ 42 42 43 - static int suppress_pollack; 43 + static bool suppress_pollack; 44 44 45 45 static struct pci_device_id c4_pci_tbl[] = { 46 46 { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21285, PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_C4, 0, 0, (unsigned long)4 },
+1 -1
drivers/isdn/sc/init.c
··· 30 30 static unsigned int io[] = {0,0,0,0}; 31 31 static unsigned char irq[] = {0,0,0,0}; 32 32 static unsigned long ram[] = {0,0,0,0}; 33 - static int do_reset = 0; 33 + static bool do_reset = 0; 34 34 35 35 module_param_array(io, int, NULL, 0); 36 36 module_param_array(irq, int, NULL, 0);
+1 -1
drivers/leds/leds-clevo-mail.c
··· 18 18 MODULE_DESCRIPTION("Clevo mail LED driver"); 19 19 MODULE_LICENSE("GPL"); 20 20 21 - static unsigned int __initdata nodetect; 21 + static bool __initdata nodetect; 22 22 module_param_named(nodetect, nodetect, bool, 0); 23 23 MODULE_PARM_DESC(nodetect, "Skip DMI hardware detection"); 24 24
+1 -1
drivers/leds/leds-ss4200.c
··· 79 79 return 1; 80 80 } 81 81 82 - static unsigned int __initdata nodetect; 82 + static bool __initdata nodetect; 83 83 module_param_named(nodetect, nodetect, bool, 0); 84 84 MODULE_PARM_DESC(nodetect, "Skip DMI-based hardware detection"); 85 85
+1 -1
drivers/macintosh/ams/ams-core.c
··· 31 31 /* There is only one motion sensor per machine */ 32 32 struct ams ams_info; 33 33 34 - static unsigned int verbose; 34 + static bool verbose; 35 35 module_param(verbose, bool, 0644); 36 36 MODULE_PARM_DESC(verbose, "Show free falls and shocks in kernel output"); 37 37
+2 -2
drivers/macintosh/ams/ams-input.c
··· 19 19 20 20 #include "ams.h" 21 21 22 - static unsigned int joystick; 22 + static bool joystick; 23 23 module_param(joystick, bool, S_IRUGO); 24 24 MODULE_PARM_DESC(joystick, "Enable the input class device on module load"); 25 25 26 - static unsigned int invert; 26 + static bool invert; 27 27 module_param(invert, bool, S_IWUSR | S_IRUGO); 28 28 MODULE_PARM_DESC(invert, "Invert input data on X and Y axis"); 29 29
+1 -1
drivers/macintosh/therm_adt746x.c
··· 52 52 53 53 static int limit_adjust; 54 54 static int fan_speed = -1; 55 - static int verbose; 55 + static bool verbose; 56 56 57 57 MODULE_AUTHOR("Colin Leroy <colin@colino.net>"); 58 58 MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
+1 -1
drivers/media/dvb/dvb-usb/af9005.c
··· 30 30 "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))." 31 31 DVB_USB_DEBUG_STATUS); 32 32 /* enable obnoxious led */ 33 - int dvb_usb_af9005_led = 1; 33 + bool dvb_usb_af9005_led = 1; 34 34 module_param_named(led, dvb_usb_af9005_led, bool, 0644); 35 35 MODULE_PARM_DESC(led, "enable led (default: 1)."); 36 36
+1 -1
drivers/media/dvb/dvb-usb/af9005.h
··· 35 35 #define deb_i2c(args...) dprintk(dvb_usb_af9005_debug,0x10,args) 36 36 #define deb_fw(args...) dprintk(dvb_usb_af9005_debug,0x20,args) 37 37 38 - extern int dvb_usb_af9005_led; 38 + extern bool dvb_usb_af9005_led; 39 39 40 40 /* firmware */ 41 41 #define FW_BULKOUT_SIZE 250
+5 -5
drivers/media/radio/radio-gemtek.c
··· 47 47 #endif 48 48 49 49 static int io = CONFIG_RADIO_GEMTEK_PORT; 50 - static int probe = CONFIG_RADIO_GEMTEK_PROBE; 51 - static int hardmute; 52 - static int shutdown = 1; 53 - static int keepmuted = 1; 54 - static int initmute = 1; 50 + static bool probe = CONFIG_RADIO_GEMTEK_PROBE; 51 + static bool hardmute; 52 + static bool shutdown = 1; 53 + static bool keepmuted = 1; 54 + static bool initmute = 1; 55 55 static int radio_nr = -1; 56 56 57 57 module_param(io, int, 0444);
+1 -1
drivers/media/radio/radio-miropcm20.c
··· 23 23 module_param(radio_nr, int, 0); 24 24 MODULE_PARM_DESC(radio_nr, "Set radio device number (/dev/radioX). Default: -1 (autodetect)"); 25 25 26 - static int mono; 26 + static bool mono; 27 27 module_param(mono, bool, 0); 28 28 MODULE_PARM_DESC(mono, "Force tuner into mono mode."); 29 29
+1 -1
drivers/media/rc/lirc_dev.c
··· 38 38 #include <media/lirc.h> 39 39 #include <media/lirc_dev.h> 40 40 41 - static int debug; 41 + static bool debug; 42 42 43 43 #define IRCTL_DEV_NAME "BaseRemoteCtl" 44 44 #define NOPLUG -1
+2 -2
drivers/media/rc/mceusb.c
··· 156 156 157 157 /* module parameters */ 158 158 #ifdef CONFIG_USB_DEBUG 159 - static int debug = 1; 159 + static bool debug = 1; 160 160 #else 161 - static int debug; 161 + static bool debug; 162 162 #endif 163 163 164 164 #define mce_dbg(dev, fmt, ...) \
+2 -2
drivers/media/rc/streamzap.c
··· 43 43 #define DRIVER_DESC "Streamzap Remote Control driver" 44 44 45 45 #ifdef CONFIG_USB_DEBUG 46 - static int debug = 1; 46 + static bool debug = 1; 47 47 #else 48 - static int debug; 48 + static bool debug; 49 49 #endif 50 50 51 51 #define USB_STREAMZAP_VENDOR_ID 0x0e9c
+2 -2
drivers/media/rc/winbond-cir.c
··· 226 226 MODULE_PARM_DESC(protocol, "IR protocol to use for the power-on command " 227 227 "(0 = RC5, 1 = NEC, 2 = RC6A, default)"); 228 228 229 - static int invert; /* default = 0 */ 229 + static bool invert; /* default = 0 */ 230 230 module_param(invert, bool, 0444); 231 231 MODULE_PARM_DESC(invert, "Invert the signal from the IR receiver"); 232 232 233 - static int txandrx; /* default = 0 */ 233 + static bool txandrx; /* default = 0 */ 234 234 module_param(txandrx, bool, 0444); 235 235 MODULE_PARM_DESC(invert, "Allow simultaneous TX and RX"); 236 236
+1 -1
drivers/media/video/c-qcam.c
··· 72 72 73 73 static int parport[MAX_CAMS] = { [1 ... MAX_CAMS-1] = -1 }; 74 74 static int probe = 2; 75 - static int force_rgb; 75 + static bool force_rgb; 76 76 static int video_nr = -1; 77 77 78 78 /* FIXME: parport=auto would never have worked, surely? --RR */
+1 -1
drivers/media/video/cs5345.c
··· 31 31 MODULE_AUTHOR("Hans Verkuil"); 32 32 MODULE_LICENSE("GPL"); 33 33 34 - static int debug; 34 + static bool debug; 35 35 36 36 module_param(debug, bool, 0644); 37 37
+1 -1
drivers/media/video/cs53l32a.c
··· 35 35 MODULE_AUTHOR("Martin Vaughan"); 36 36 MODULE_LICENSE("GPL"); 37 37 38 - static int debug; 38 + static bool debug; 39 39 40 40 module_param(debug, bool, 0644); 41 41
+1 -1
drivers/media/video/cx18/cx18-driver.c
··· 75 75 -1, -1, -1, -1, -1, -1, -1, -1 }; 76 76 static unsigned cardtype_c = 1; 77 77 static unsigned tuner_c = 1; 78 - static unsigned radio_c = 1; 78 + static bool radio_c = 1; 79 79 static char pal[] = "--"; 80 80 static char secam[] = "--"; 81 81 static char ntsc[] = "-";
+1 -1
drivers/media/video/cx25821/cx25821-alsa.c
··· 102 102 103 103 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 104 104 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 105 - static int enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; 105 + static bool enable[SNDRV_CARDS] = { 1, [1 ... (SNDRV_CARDS - 1)] = 1 }; 106 106 107 107 module_param_array(enable, bool, NULL, 0444); 108 108 MODULE_PARM_DESC(enable, "Enable cx25821 soundcard. default enabled.");
+1 -1
drivers/media/video/cx88/cx88-alsa.c
··· 96 96 97 97 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 98 98 static const char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 99 - static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; 99 + static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; 100 100 101 101 module_param_array(enable, bool, NULL, 0444); 102 102 MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled.");
+2 -2
drivers/media/video/et61x251/et61x251_core.c
··· 76 76 "\none and for every other camera." 77 77 "\n"); 78 78 79 - static short force_munmap[] = {[0 ... ET61X251_MAX_DEVICES-1] = 80 - ET61X251_FORCE_MUNMAP}; 79 + static bool force_munmap[] = {[0 ... ET61X251_MAX_DEVICES-1] = 80 + ET61X251_FORCE_MUNMAP}; 81 81 module_param_array(force_munmap, bool, NULL, 0444); 82 82 MODULE_PARM_DESC(force_munmap, 83 83 "\n<0|1[,...]> Force the application to unmap previously"
+2 -2
drivers/media/video/gspca/m5602/m5602_core.c
··· 27 27 28 28 /* Kernel module parameters */ 29 29 int force_sensor; 30 - static int dump_bridge; 31 - int dump_sensor; 30 + static bool dump_bridge; 31 + bool dump_sensor; 32 32 33 33 static const struct usb_device_id m5602_table[] = { 34 34 {USB_DEVICE(0x0402, 0x5602)},
+1 -1
drivers/media/video/gspca/m5602/m5602_mt9m111.h
··· 106 106 107 107 /* Kernel module parameters */ 108 108 extern int force_sensor; 109 - extern int dump_sensor; 109 + extern bool dump_sensor; 110 110 111 111 int mt9m111_probe(struct sd *sd); 112 112 int mt9m111_init(struct sd *sd);
+1 -1
drivers/media/video/gspca/m5602/m5602_ov7660.h
··· 86 86 87 87 /* Kernel module parameters */ 88 88 extern int force_sensor; 89 - extern int dump_sensor; 89 + extern bool dump_sensor; 90 90 91 91 int ov7660_probe(struct sd *sd); 92 92 int ov7660_init(struct sd *sd);
+1 -1
drivers/media/video/gspca/m5602/m5602_ov9650.h
··· 135 135 136 136 /* Kernel module parameters */ 137 137 extern int force_sensor; 138 - extern int dump_sensor; 138 + extern bool dump_sensor; 139 139 140 140 int ov9650_probe(struct sd *sd); 141 141 int ov9650_init(struct sd *sd);
+1 -1
drivers/media/video/gspca/m5602/m5602_po1030.h
··· 147 147 148 148 /* Kernel module parameters */ 149 149 extern int force_sensor; 150 - extern int dump_sensor; 150 + extern bool dump_sensor; 151 151 152 152 int po1030_probe(struct sd *sd); 153 153 int po1030_init(struct sd *sd);
+1 -1
drivers/media/video/gspca/m5602/m5602_s5k4aa.h
··· 65 65 66 66 /* Kernel module parameters */ 67 67 extern int force_sensor; 68 - extern int dump_sensor; 68 + extern bool dump_sensor; 69 69 70 70 int s5k4aa_probe(struct sd *sd); 71 71 int s5k4aa_init(struct sd *sd);
+1 -1
drivers/media/video/gspca/m5602/m5602_s5k83a.h
··· 41 41 42 42 /* Kernel module parameters */ 43 43 extern int force_sensor; 44 - extern int dump_sensor; 44 + extern bool dump_sensor; 45 45 46 46 int s5k83a_probe(struct sd *sd); 47 47 int s5k83a_init(struct sd *sd);
+2 -2
drivers/media/video/gspca/stv06xx/stv06xx.c
··· 36 36 MODULE_DESCRIPTION("STV06XX USB Camera Driver"); 37 37 MODULE_LICENSE("GPL"); 38 38 39 - static int dump_bridge; 40 - static int dump_sensor; 39 + static bool dump_bridge; 40 + static bool dump_sensor; 41 41 42 42 int stv06xx_write_bridge(struct sd *sd, u16 address, u16 i2c_data) 43 43 {
+1 -1
drivers/media/video/hdpvr/hdpvr-core.c
··· 49 49 MODULE_PARM_DESC(default_audio_input, "default audio input: 0=RCA back / " 50 50 "1=RCA front / 2=S/PDIF"); 51 51 52 - static int boost_audio; 52 + static bool boost_audio; 53 53 module_param(boost_audio, bool, S_IRUGO|S_IWUSR); 54 54 MODULE_PARM_DESC(boost_audio, "boost the audio signal"); 55 55
+1 -1
drivers/media/video/ivtv/ivtv-driver.c
··· 99 99 100 100 static unsigned int cardtype_c = 1; 101 101 static unsigned int tuner_c = 1; 102 - static unsigned int radio_c = 1; 102 + static bool radio_c = 1; 103 103 static unsigned int i2c_clock_period_c = 1; 104 104 static char pal[] = "---"; 105 105 static char secam[] = "--";
+1 -1
drivers/media/video/ivtv/ivtvfb.c
··· 58 58 /* card parameters */ 59 59 static int ivtvfb_card_id = -1; 60 60 static int ivtvfb_debug = 0; 61 - static int osd_laced; 61 + static bool osd_laced; 62 62 static int osd_depth; 63 63 static int osd_upper; 64 64 static int osd_left;
+3 -3
drivers/media/video/marvell-ccic/mcam-core.c
··· 51 51 * sense. 52 52 */ 53 53 54 - static int alloc_bufs_at_read; 54 + static bool alloc_bufs_at_read; 55 55 module_param(alloc_bufs_at_read, bool, 0444); 56 56 MODULE_PARM_DESC(alloc_bufs_at_read, 57 57 "Non-zero value causes DMA buffers to be allocated when the " ··· 73 73 "parameters require larger buffers, an attempt to reallocate " 74 74 "will be made."); 75 75 #else /* MCAM_MODE_VMALLOC */ 76 - static const int alloc_bufs_at_read = 0; 76 + static const bool alloc_bufs_at_read = 0; 77 77 static const int n_dma_bufs = 3; /* Used by S/G_PARM */ 78 78 #endif /* MCAM_MODE_VMALLOC */ 79 79 80 - static int flip; 80 + static bool flip; 81 81 module_param(flip, bool, 0444); 82 82 MODULE_PARM_DESC(flip, 83 83 "If set, the sensor will be instructed to flip the image "
+3 -3
drivers/media/video/msp3400-driver.c
··· 69 69 /* module parameters */ 70 70 static int opmode = OPMODE_AUTO; 71 71 int msp_debug; /* msp_debug output */ 72 - int msp_once; /* no continuous stereo monitoring */ 73 - int msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), 72 + bool msp_once; /* no continuous stereo monitoring */ 73 + bool msp_amsound; /* hard-wire AM sound at 6.5 Hz (france), 74 74 the autoscan seems work well only with FM... */ 75 75 int msp_standard = 1; /* Override auto detect of audio msp_standard, 76 76 if needed. */ 77 - int msp_dolby; 77 + bool msp_dolby; 78 78 79 79 int msp_stereo_thresh = 0x190; /* a2 threshold for stereo/bilingual 80 80 (msp34xxg only) 0x00a0-0x03c0 */
+3 -3
drivers/media/video/msp3400-driver.h
··· 44 44 45 45 /* module parameters */ 46 46 extern int msp_debug; 47 - extern int msp_once; 48 - extern int msp_amsound; 47 + extern bool msp_once; 48 + extern bool msp_amsound; 49 49 extern int msp_standard; 50 - extern int msp_dolby; 50 + extern bool msp_dolby; 51 51 extern int msp_stereo_thresh; 52 52 53 53 struct msp_state {
+3 -3
drivers/media/video/omap/omap_vout.c
··· 70 70 static u32 video2_numbuffers = 3; 71 71 static u32 video1_bufsize = OMAP_VOUT_MAX_BUF_SIZE; 72 72 static u32 video2_bufsize = OMAP_VOUT_MAX_BUF_SIZE; 73 - static u32 vid1_static_vrfb_alloc; 74 - static u32 vid2_static_vrfb_alloc; 75 - static int debug; 73 + static bool vid1_static_vrfb_alloc; 74 + static bool vid2_static_vrfb_alloc; 75 + static bool debug; 76 76 77 77 /* Module parameters */ 78 78 module_param(video1_numbuffers, uint, S_IRUGO);
+1 -1
drivers/media/video/omap/omap_vout_vrfb.c
··· 84 84 } 85 85 86 86 int omap_vout_setup_vrfb_bufs(struct platform_device *pdev, int vid_num, 87 - u32 static_vrfb_allocation) 87 + bool static_vrfb_allocation) 88 88 { 89 89 int ret = 0, i, j; 90 90 struct omap_vout_device *vout;
+1 -1
drivers/media/video/ov7670.c
··· 25 25 MODULE_DESCRIPTION("A low-level driver for OmniVision ov7670 sensors"); 26 26 MODULE_LICENSE("GPL"); 27 27 28 - static int debug; 28 + static bool debug; 29 29 module_param(debug, bool, 0644); 30 30 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 31 31
+1 -1
drivers/media/video/saa7115.c
··· 57 57 "Hans Verkuil, Mauro Carvalho Chehab"); 58 58 MODULE_LICENSE("GPL"); 59 59 60 - static int debug; 60 + static bool debug; 61 61 module_param(debug, bool, 0644); 62 62 63 63 MODULE_PARM_DESC(debug, "Debug level (0-1)");
+2 -2
drivers/media/video/sn9c102/sn9c102_core.c
··· 75 75 "\none and for every other camera." 76 76 "\n"); 77 77 78 - static short force_munmap[] = {[0 ... SN9C102_MAX_DEVICES-1] = 79 - SN9C102_FORCE_MUNMAP}; 78 + static bool force_munmap[] = {[0 ... SN9C102_MAX_DEVICES-1] = 79 + SN9C102_FORCE_MUNMAP}; 80 80 module_param_array(force_munmap, bool, NULL, 0444); 81 81 MODULE_PARM_DESC(force_munmap, 82 82 " <0|1[,...]>"
+2 -2
drivers/media/video/stk-webcam.c
··· 38 38 #include "stk-webcam.h" 39 39 40 40 41 - static int hflip = 1; 41 + static bool hflip = 1; 42 42 module_param(hflip, bool, 0444); 43 43 MODULE_PARM_DESC(hflip, "Horizontal image flip (mirror). Defaults to 1"); 44 44 45 - static int vflip = 1; 45 + static bool vflip = 1; 46 46 module_param(vflip, bool, 0444); 47 47 MODULE_PARM_DESC(vflip, "Vertical image flip. Defaults to 1"); 48 48
+1 -1
drivers/media/video/tm6000/tm6000-alsa.c
··· 42 42 43 43 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 44 44 45 - static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; 45 + static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; 46 46 47 47 module_param_array(enable, bool, NULL, 0444); 48 48 MODULE_PARM_DESC(enable, "Enable tm6000x soundcard. default enabled.");
+1 -1
drivers/media/video/tvp514x.c
··· 52 52 #define LOCK_RETRY_DELAY (200) 53 53 54 54 /* Debug functions */ 55 - static int debug; 55 + static bool debug; 56 56 module_param(debug, bool, 0644); 57 57 MODULE_PARM_DESC(debug, "Debug level (0-1)"); 58 58
+1 -1
drivers/media/video/tvp7002.c
··· 63 63 #define TVP7002_CL_MASK 0x0f 64 64 65 65 /* Debug functions */ 66 - static int debug; 66 + static bool debug; 67 67 module_param(debug, bool, 0644); 68 68 MODULE_PARM_DESC(debug, "Debug level (0-2)"); 69 69
+1 -1
drivers/media/video/upd64083.c
··· 34 34 MODULE_AUTHOR("T. Adachi, Takeru KOMORIYA, Hans Verkuil"); 35 35 MODULE_LICENSE("GPL"); 36 36 37 - static int debug; 37 + static bool debug; 38 38 module_param(debug, bool, 0644); 39 39 40 40 MODULE_PARM_DESC(debug, "Debug level (0-1)");
+2 -2
drivers/media/video/via-camera.c
··· 34 34 MODULE_DESCRIPTION("VIA framebuffer-based camera controller driver"); 35 35 MODULE_LICENSE("GPL"); 36 36 37 - static int flip_image; 37 + static bool flip_image; 38 38 module_param(flip_image, bool, 0444); 39 39 MODULE_PARM_DESC(flip_image, 40 40 "If set, the sensor will be instructed to flip the image " 41 41 "vertically."); 42 42 43 - static int override_serial; 43 + static bool override_serial; 44 44 module_param(override_serial, bool, 0444); 45 45 MODULE_PARM_DESC(override_serial, 46 46 "The camera driver will normally refuse to load if "
+1 -1
drivers/media/video/zoran/zoran_device.c
··· 57 57 ZR36057_ISR_GIRQ1 | \ 58 58 ZR36057_ISR_JPEGRepIRQ ) 59 59 60 - static int lml33dpath; /* default = 0 60 + static bool lml33dpath; /* default = 0 61 61 * 1 will use digital path in capture 62 62 * mode instead of analog. It can be 63 63 * used for picture adjustments using
+1 -1
drivers/media/video/zoran/zr36060.c
··· 50 50 /* amount of chips attached via this driver */ 51 51 static int zr36060_codecs; 52 52 53 - static int low_bitrate; 53 + static bool low_bitrate; 54 54 module_param(low_bitrate, bool, 0); 55 55 MODULE_PARM_DESC(low_bitrate, "Buz compatibility option, halves bitrate"); 56 56
+1 -1
drivers/memstick/host/jmb38x_ms.c
··· 21 21 22 22 #define DRIVER_NAME "jmb38x_ms" 23 23 24 - static int no_dma; 24 + static bool no_dma; 25 25 module_param(no_dma, bool, 0644); 26 26 27 27 enum {
+1 -1
drivers/memstick/host/r592.c
··· 23 23 #include <linux/swab.h> 24 24 #include "r592.h" 25 25 26 - static int r592_enable_dma = 1; 26 + static bool r592_enable_dma = 1; 27 27 static int debug; 28 28 29 29 static const char *tpc_names[] = {
+1 -1
drivers/memstick/host/tifm_ms.c
··· 22 22 23 23 #define DRIVER_NAME "tifm_ms" 24 24 25 - static int no_dma; 25 + static bool no_dma; 26 26 module_param(no_dma, bool, 0644); 27 27 28 28 /*
+1 -1
drivers/mfd/janz-cmodio.c
··· 33 33 34 34 /* Module Parameters */ 35 35 static unsigned int num_modules = CMODIO_MAX_MODULES; 36 - static unsigned char *modules[CMODIO_MAX_MODULES] = { 36 + static char *modules[CMODIO_MAX_MODULES] = { 37 37 "empty", "empty", "empty", "empty", 38 38 }; 39 39
+6 -6
drivers/misc/iwmc3200top/main.c
··· 376 376 module_param(blocks, int, 0604); 377 377 MODULE_PARM_DESC(blocks, "max_blocks_to_send"); 378 378 379 - static int dump; 379 + static bool dump; 380 380 module_param(dump, bool, 0604); 381 381 MODULE_PARM_DESC(dump, "dump_hex_content"); 382 382 383 - static int jump = 1; 383 + static bool jump = 1; 384 384 module_param(jump, bool, 0604); 385 385 386 - static int direct = 1; 386 + static bool direct = 1; 387 387 module_param(direct, bool, 0604); 388 388 389 - static int checksum = 1; 389 + static bool checksum = 1; 390 390 module_param(checksum, bool, 0604); 391 391 392 - static int fw_download = 1; 392 + static bool fw_download = 1; 393 393 module_param(fw_download, bool, 0604); 394 394 395 395 static int block_size = IWMC_SDIO_BLK_SIZE; ··· 398 398 static int download_trans_blks = IWMC_DEFAULT_TR_BLK; 399 399 module_param(download_trans_blks, int, 0604); 400 400 401 - static int rubbish_barker; 401 + static bool rubbish_barker; 402 402 module_param(rubbish_barker, bool, 0604); 403 403 404 404 #ifdef CONFIG_IWMC3200TOP_DEBUG
+2
drivers/misc/lis3lv02d/lis3lv02d.c
··· 111 111 .get = param_get_int, 112 112 }; 113 113 114 + #define param_check_axis(name, p) param_check_int(name, p) 115 + 114 116 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644); 115 117 MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions"); 116 118
+3 -3
drivers/mmc/core/core.c
··· 48 48 * performance cost, and for other reasons may not always be desired. 49 49 * So we allow it it to be disabled. 50 50 */ 51 - int use_spi_crc = 1; 51 + bool use_spi_crc = 1; 52 52 module_param(use_spi_crc, bool, 0); 53 53 54 54 /* ··· 58 58 * overridden if necessary. 59 59 */ 60 60 #ifdef CONFIG_MMC_UNSAFE_RESUME 61 - int mmc_assume_removable; 61 + bool mmc_assume_removable; 62 62 #else 63 - int mmc_assume_removable = 1; 63 + bool mmc_assume_removable = 1; 64 64 #endif 65 65 EXPORT_SYMBOL(mmc_assume_removable); 66 66 module_param_named(removable, mmc_assume_removable, bool, 0644);
+1 -1
drivers/mmc/core/core.h
··· 67 67 int mmc_attach_sdio(struct mmc_host *host); 68 68 69 69 /* Module parameters */ 70 - extern int use_spi_crc; 70 + extern bool use_spi_crc; 71 71 72 72 /* Debugfs information for hosts and cards */ 73 73 void mmc_add_host_debugfs(struct mmc_host *host);
+2 -2
drivers/mmc/host/tifm_sd.c
··· 22 22 #define DRIVER_NAME "tifm_sd" 23 23 #define DRIVER_VERSION "0.8" 24 24 25 - static int no_dma = 0; 26 - static int fixed_timeout = 0; 25 + static bool no_dma = 0; 26 + static bool fixed_timeout = 0; 27 27 module_param(no_dma, bool, 0644); 28 28 module_param(fixed_timeout, bool, 0644); 29 29
+5 -5
drivers/mmc/host/vub300.c
··· 223 223 #define FUN(c) (0x000007 & (c->arg>>28)) 224 224 #define REG(c) (0x01FFFF & (c->arg>>9)) 225 225 226 - static int limit_speed_to_24_MHz; 226 + static bool limit_speed_to_24_MHz; 227 227 module_param(limit_speed_to_24_MHz, bool, 0644); 228 228 MODULE_PARM_DESC(limit_speed_to_24_MHz, "Limit Max SDIO Clock Speed to 24 MHz"); 229 229 230 - static int pad_input_to_usb_pkt; 230 + static bool pad_input_to_usb_pkt; 231 231 module_param(pad_input_to_usb_pkt, bool, 0644); 232 232 MODULE_PARM_DESC(pad_input_to_usb_pkt, 233 233 "Pad USB data input transfers to whole USB Packet"); 234 234 235 - static int disable_offload_processing; 235 + static bool disable_offload_processing; 236 236 module_param(disable_offload_processing, bool, 0644); 237 237 MODULE_PARM_DESC(disable_offload_processing, "Disable Offload Processing"); 238 238 239 - static int force_1_bit_data_xfers; 239 + static bool force_1_bit_data_xfers; 240 240 module_param(force_1_bit_data_xfers, bool, 0644); 241 241 MODULE_PARM_DESC(force_1_bit_data_xfers, 242 242 "Force SDIO Data Transfers to 1-bit Mode"); 243 243 244 - static int force_polling_for_irqs; 244 + static bool force_polling_for_irqs; 245 245 module_param(force_polling_for_irqs, bool, 0644); 246 246 MODULE_PARM_DESC(force_polling_for_irqs, "Force Polling for SDIO interrupts"); 247 247
+1 -1
drivers/mtd/nand/pxa3xx_nand.c
··· 185 185 uint32_t ndcb2; 186 186 }; 187 187 188 - static int use_dma = 1; 188 + static bool use_dma = 1; 189 189 module_param(use_dma, bool, 0444); 190 190 MODULE_PARM_DESC(use_dma, "enable DMA for data transferring to/from NAND HW"); 191 191
+1 -1
drivers/mtd/nand/r852.c
··· 22 22 #include "r852.h" 23 23 24 24 25 - static int r852_enable_dma = 1; 25 + static bool r852_enable_dma = 1; 26 26 module_param(r852_enable_dma, bool, S_IRUGO); 27 27 MODULE_PARM_DESC(r852_enable_dma, "Enable usage of the DMA (default)"); 28 28
+1 -1
drivers/parport/parport_ip32.c
··· 135 135 #define PARPORT_IP32_ENABLE_EPP (1U << 3) 136 136 #define PARPORT_IP32_ENABLE_ECP (1U << 4) 137 137 static unsigned int features = ~0U; 138 - static int verbose_probing = DEFAULT_VERBOSE_PROBING; 138 + static bool verbose_probing = DEFAULT_VERBOSE_PROBING; 139 139 140 140 /* We do not support more than one port. */ 141 141 static struct parport *this_port = NULL;
+1 -1
drivers/pci/hotplug/acpi_pcihp.c
··· 44 44 #define METHOD_NAME__SUN "_SUN" 45 45 #define METHOD_NAME_OSHP "OSHP" 46 46 47 - static int debug_acpi; 47 + static bool debug_acpi; 48 48 49 49 static acpi_status 50 50 decode_type0_hpx_record(union acpi_object *record, struct hotplug_params *hpx)
+1 -1
drivers/pci/hotplug/acpiphp_core.c
··· 47 47 /* name size which is used for entries in pcihpfs */ 48 48 #define SLOT_NAME_SIZE 21 /* {_SUN} */ 49 49 50 - static int debug; 50 + static bool debug; 51 51 int acpiphp_debug; 52 52 53 53 /* local variables */
+1 -1
drivers/pci/hotplug/acpiphp_ibm.c
··· 43 43 #define DRIVER_AUTHOR "Irene Zubarev <zubarev@us.ibm.com>, Vernon Mauery <vernux@us.ibm.com>" 44 44 #define DRIVER_DESC "ACPI Hot Plug PCI Controller Driver IBM extension" 45 45 46 - static int debug; 46 + static bool debug; 47 47 48 48 MODULE_AUTHOR(DRIVER_AUTHOR); 49 49 MODULE_DESCRIPTION(DRIVER_DESC);
+2 -2
drivers/pci/hotplug/cpcihp_zt5550.c
··· 57 57 #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) 58 58 59 59 /* local variables */ 60 - static int debug; 61 - static int poll; 60 + static bool debug; 61 + static bool poll; 62 62 static struct cpci_hp_controller_ops zt5550_hpc_ops; 63 63 static struct cpci_hp_controller zt5550_hpc; 64 64
+2 -2
drivers/pci/hotplug/cpqphp_core.c
··· 57 57 static void __iomem *smbios_table; 58 58 static void __iomem *smbios_start; 59 59 static void __iomem *cpqhp_rom_start; 60 - static int power_mode; 61 - static int debug; 60 + static bool power_mode; 61 + static bool debug; 62 62 static int initialized; 63 63 64 64 #define DRIVER_VERSION "0.9.8"
+1 -1
drivers/pci/hotplug/ibmphp_core.c
··· 49 49 50 50 int ibmphp_debug; 51 51 52 - static int debug; 52 + static bool debug; 53 53 module_param(debug, bool, S_IRUGO | S_IWUSR); 54 54 MODULE_PARM_DESC (debug, "Debugging mode enabled or not"); 55 55 MODULE_LICENSE ("GPL");
+1 -1
drivers/pci/hotplug/pci_hotplug_core.c
··· 51 51 52 52 53 53 /* local variables */ 54 - static int debug; 54 + static bool debug; 55 55 56 56 #define DRIVER_VERSION "0.5" 57 57 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Scott Murray <scottm@somanetworks.com>"
+3 -3
drivers/pci/hotplug/pciehp.h
··· 40 40 41 41 #define MY_NAME "pciehp" 42 42 43 - extern int pciehp_poll_mode; 43 + extern bool pciehp_poll_mode; 44 44 extern int pciehp_poll_time; 45 - extern int pciehp_debug; 46 - extern int pciehp_force; 45 + extern bool pciehp_debug; 46 + extern bool pciehp_force; 47 47 extern struct workqueue_struct *pciehp_wq; 48 48 49 49 #define dbg(format, arg...) \
+3 -3
drivers/pci/hotplug/pciehp_core.c
··· 38 38 #include <linux/time.h> 39 39 40 40 /* Global variables */ 41 - int pciehp_debug; 42 - int pciehp_poll_mode; 41 + bool pciehp_debug; 42 + bool pciehp_poll_mode; 43 43 int pciehp_poll_time; 44 - int pciehp_force; 44 + bool pciehp_force; 45 45 struct workqueue_struct *pciehp_wq; 46 46 47 47 #define DRIVER_VERSION "0.4"
+1 -1
drivers/pci/hotplug/pcihp_skeleton.c
··· 59 59 #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) 60 60 61 61 /* local variables */ 62 - static int debug; 62 + static bool debug; 63 63 static int num_slots; 64 64 65 65 #define DRIVER_VERSION "0.3"
+1 -1
drivers/pci/hotplug/rpaphp.h
··· 46 46 #define PRESENT 1 /* Card in slot */ 47 47 48 48 #define MY_NAME "rpaphp" 49 - extern int rpaphp_debug; 49 + extern bool rpaphp_debug; 50 50 #define dbg(format, arg...) \ 51 51 do { \ 52 52 if (rpaphp_debug) \
+1 -1
drivers/pci/hotplug/rpaphp_core.c
··· 37 37 /* and pci_do_scan_bus */ 38 38 #include "rpaphp.h" 39 39 40 - int rpaphp_debug; 40 + bool rpaphp_debug; 41 41 LIST_HEAD(rpaphp_slot_head); 42 42 43 43 #define DRIVER_VERSION "0.1"
+2 -2
drivers/pci/hotplug/shpchp.h
··· 43 43 #define MY_NAME THIS_MODULE->name 44 44 #endif 45 45 46 - extern int shpchp_poll_mode; 46 + extern bool shpchp_poll_mode; 47 47 extern int shpchp_poll_time; 48 - extern int shpchp_debug; 48 + extern bool shpchp_debug; 49 49 extern struct workqueue_struct *shpchp_wq; 50 50 extern struct workqueue_struct *shpchp_ordered_wq; 51 51
+2 -2
drivers/pci/hotplug/shpchp_core.c
··· 36 36 #include "shpchp.h" 37 37 38 38 /* Global variables */ 39 - int shpchp_debug; 40 - int shpchp_poll_mode; 39 + bool shpchp_debug; 40 + bool shpchp_poll_mode; 41 41 int shpchp_poll_time; 42 42 struct workqueue_struct *shpchp_wq; 43 43 struct workqueue_struct *shpchp_ordered_wq;
+1 -1
drivers/pci/pcie/aer/aer_inject.c
··· 28 28 #include "aerdrv.h" 29 29 30 30 /* Override the existing corrected and uncorrected error masks */ 31 - static int aer_mask_override; 31 + static bool aer_mask_override; 32 32 module_param(aer_mask_override, bool, 0); 33 33 34 34 struct aer_error_inj {
+2 -2
drivers/pci/pcie/aer/aerdrv_core.c
··· 27 27 #include <linux/kfifo.h> 28 28 #include "aerdrv.h" 29 29 30 - static int forceload; 31 - static int nosourceid; 30 + static bool forceload; 31 + static bool nosourceid; 32 32 module_param(forceload, bool, 0); 33 33 module_param(nosourceid, bool, 0); 34 34
+3 -3
drivers/pcmcia/yenta_socket.c
··· 24 24 #include "yenta_socket.h" 25 25 #include "i82365.h" 26 26 27 - static int disable_clkrun; 27 + static bool disable_clkrun; 28 28 module_param(disable_clkrun, bool, 0444); 29 29 MODULE_PARM_DESC(disable_clkrun, "If PC card doesn't function properly, please try this option"); 30 30 31 - static int isa_probe = 1; 31 + static bool isa_probe = 1; 32 32 module_param(isa_probe, bool, 0444); 33 33 MODULE_PARM_DESC(isa_probe, "If set ISA interrupts are probed (default). Set to N to disable probing"); 34 34 35 - static int pwr_irqs_off; 35 + static bool pwr_irqs_off; 36 36 module_param(pwr_irqs_off, bool, 0644); 37 37 MODULE_PARM_DESC(pwr_irqs_off, "Force IRQs off during power-on of slot. Use only when seeing IRQ storms!"); 38 38
+1 -1
drivers/platform/x86/compal-laptop.c
··· 189 189 /* =============== */ 190 190 /* General globals */ 191 191 /* =============== */ 192 - static int force; 192 + static bool force; 193 193 module_param(force, bool, 0); 194 194 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data"); 195 195
+1 -1
drivers/platform/x86/intel_oaktrail.c
··· 95 95 #define OT_EC_BL_CONTROL_ON_DATA 0x1A 96 96 97 97 98 - static int force; 98 + static bool force; 99 99 module_param(force, bool, 0); 100 100 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data"); 101 101
+1 -1
drivers/platform/x86/msi-laptop.c
··· 89 89 90 90 #define MSI_STANDARD_EC_DEVICES_EXISTS_ADDRESS 0x2f 91 91 92 - static int force; 92 + static bool force; 93 93 module_param(force, bool, 0); 94 94 MODULE_PARM_DESC(force, "Force driver load, ignore DMI data"); 95 95
+2 -2
drivers/platform/x86/samsung-laptop.c
··· 228 228 static struct rfkill *rfk; 229 229 static bool has_stepping_quirk; 230 230 231 - static int force; 231 + static bool force; 232 232 module_param(force, bool, 0); 233 233 MODULE_PARM_DESC(force, 234 234 "Disable the DMI check and forces the driver to be loaded"); 235 235 236 - static int debug; 236 + static bool debug; 237 237 module_param(debug, bool, S_IRUGO | S_IWUSR); 238 238 MODULE_PARM_DESC(debug, "Debug enabled or not"); 239 239
+8 -8
drivers/platform/x86/thinkpad_acpi.c
··· 378 378 379 379 #ifdef CONFIG_THINKPAD_ACPI_DEBUGFACILITIES 380 380 static int dbg_wlswemul; 381 - static int tpacpi_wlsw_emulstate; 381 + static bool tpacpi_wlsw_emulstate; 382 382 static int dbg_bluetoothemul; 383 - static int tpacpi_bluetooth_emulstate; 383 + static bool tpacpi_bluetooth_emulstate; 384 384 static int dbg_wwanemul; 385 - static int tpacpi_wwan_emulstate; 385 + static bool tpacpi_wwan_emulstate; 386 386 static int dbg_uwbemul; 387 - static int tpacpi_uwb_emulstate; 387 + static bool tpacpi_uwb_emulstate; 388 388 #endif 389 389 390 390 ··· 6444 6444 6445 6445 static int alsa_index = ~((1 << (SNDRV_CARDS - 3)) - 1); /* last three slots */ 6446 6446 static char *alsa_id = "ThinkPadEC"; 6447 - static int alsa_enable = SNDRV_DEFAULT_ENABLE1; 6447 + static bool alsa_enable = SNDRV_DEFAULT_ENABLE1; 6448 6448 6449 6449 struct tpacpi_alsa_data { 6450 6450 struct snd_card *card; ··· 6487 6487 TPACPI_VOL_MODE_MAX; 6488 6488 6489 6489 static enum tpacpi_volume_capabilities volume_capabilities; 6490 - static int volume_control_allowed; 6490 + static bool volume_control_allowed; 6491 6491 6492 6492 /* 6493 6493 * Used to syncronize writers to TP_EC_AUDIO and ··· 7265 7265 * and also watchdog cmd */ 7266 7266 }; 7267 7267 7268 - static int fan_control_allowed; 7268 + static bool fan_control_allowed; 7269 7269 7270 7270 static enum fan_status_access_mode fan_status_access_mode; 7271 7271 static enum fan_control_access_mode fan_control_access_mode; ··· 8437 8437 * Module and infrastructure proble, init and exit handling 8438 8438 */ 8439 8439 8440 - static int force_load; 8440 + static bool force_load; 8441 8441 8442 8442 #ifdef CONFIG_THINKPAD_ACPI_DEBUG 8443 8443 static const char * __init str_supported(int is_supported)
+2 -2
drivers/platform/x86/wmi.c
··· 82 82 #define ACPI_WMI_STRING 0x4 /* GUID takes & returns a string */ 83 83 #define ACPI_WMI_EVENT 0x8 /* GUID is an event */ 84 84 85 - static int debug_event; 85 + static bool debug_event; 86 86 module_param(debug_event, bool, 0444); 87 87 MODULE_PARM_DESC(debug_event, 88 88 "Log WMI Events [0/1]"); 89 89 90 - static int debug_dump_wdg; 90 + static bool debug_dump_wdg; 91 91 module_param(debug_dump_wdg, bool, 0444); 92 92 MODULE_PARM_DESC(debug_dump_wdg, 93 93 "Dump available WMI interfaces [0/1]");
+1 -1
drivers/power/ds2760_battery.c
··· 64 64 module_param(cache_time, uint, 0644); 65 65 MODULE_PARM_DESC(cache_time, "cache time in milliseconds"); 66 66 67 - static unsigned int pmod_enabled; 67 + static bool pmod_enabled; 68 68 module_param(pmod_enabled, bool, 0644); 69 69 MODULE_PARM_DESC(pmod_enabled, "PMOD enable bit"); 70 70
+1 -1
drivers/s390/char/raw3270.c
··· 75 75 static int raw3270_registered; 76 76 77 77 /* Module parameters */ 78 - static int tubxcorrect = 0; 78 + static bool tubxcorrect = 0; 79 79 module_param(tubxcorrect, bool, 0); 80 80 81 81 /*
+2 -2
drivers/s390/char/vmwatchdog.c
··· 28 28 #define MAX_CMDLEN 240 29 29 #define MIN_INTERVAL 15 30 30 static char vmwdt_cmd[MAX_CMDLEN] = "IPL"; 31 - static int vmwdt_conceal; 31 + static bool vmwdt_conceal; 32 32 33 - static int vmwdt_nowayout = WATCHDOG_NOWAYOUT; 33 + static bool vmwdt_nowayout = WATCHDOG_NOWAYOUT; 34 34 35 35 MODULE_LICENSE("GPL"); 36 36 MODULE_AUTHOR("Arnd Bergmann <arndb@de.ibm.com>");
+1 -1
drivers/s390/cio/cmf.c
··· 98 98 * enum cmb_format. 99 99 */ 100 100 static int format = CMF_AUTODETECT; 101 - module_param(format, bool, 0444); 101 + module_param(format, bint, 0444); 102 102 103 103 /** 104 104 * struct cmb_operations - functions to use depending on cmb_format
+1 -1
drivers/scsi/aha1542.c
··· 102 102 */ 103 103 104 104 #if defined(MODULE) 105 - static int isapnp = 0; 105 + static bool isapnp = 0; 106 106 static int aha1542[] = {0x330, 11, 4, -1}; 107 107 module_param_array(aha1542, int, NULL, 0); 108 108 module_param(isapnp, bool, 0);
+1 -1
drivers/scsi/dc395x.c
··· 546 546 * command line overrides will be used. If set to 1 then safe and 547 547 * slow settings will be used. 548 548 */ 549 - static int use_safe_settings = 0; 549 + static bool use_safe_settings = 0; 550 550 module_param_named(safe, use_safe_settings, bool, 0); 551 551 MODULE_PARM_DESC(safe, "Use safe and slow settings only. Default: false"); 552 552
+2 -2
drivers/scsi/nsp32.c
··· 59 59 #define ASYNC_MODE 1 60 60 #define ULTRA20M_MODE 2 61 61 62 - static int auto_param = 0; /* default: ON */ 62 + static bool auto_param = 0; /* default: ON */ 63 63 module_param (auto_param, bool, 0); 64 64 MODULE_PARM_DESC(auto_param, "AutoParameter mode (0: ON(default) 1: OFF)"); 65 65 66 - static int disc_priv = 1; /* default: OFF */ 66 + static bool disc_priv = 1; /* default: OFF */ 67 67 module_param (disc_priv, bool, 0); 68 68 MODULE_PARM_DESC(disc_priv, "disconnection privilege mode (0: ON 1: OFF(default))"); 69 69
+1 -1
drivers/scsi/pcmcia/nsp_cs.c
··· 70 70 MODULE_PARM_DESC(nsp_burst_mode, "Burst transfer mode (0=io8, 1=io32, 2=mem32(default))"); 71 71 72 72 /* Release IO ports after configuration? */ 73 - static int free_ports = 0; 73 + static bool free_ports = 0; 74 74 module_param(free_ports, bool, 0); 75 75 MODULE_PARM_DESC(free_ports, "Release IO ports after configuration? (default: 0 (=no))"); 76 76
+1 -1
drivers/staging/comedi/comedi_fops.c
··· 61 61 module_param(comedi_debug, int, 0644); 62 62 #endif 63 63 64 - int comedi_autoconfig = 1; 64 + bool comedi_autoconfig = 1; 65 65 module_param(comedi_autoconfig, bool, 0444); 66 66 67 67 static int comedi_num_legacy_minors;
+2 -1
drivers/staging/comedi/comedi_fops.h
··· 1 1 2 2 #ifndef _COMEDI_FOPS_H 3 3 #define _COMEDI_FOPS_H 4 + #include <linux/types.h> 4 5 5 6 extern struct class *comedi_class; 6 7 extern const struct file_operations comedi_fops; 7 - extern int comedi_autoconfig; 8 + extern bool comedi_autoconfig; 8 9 extern struct comedi_driver *comedi_drivers; 9 10 10 11 #endif /* _COMEDI_FOPS_H */
+1 -1
drivers/staging/media/go7007/snd-go7007.c
··· 38 38 39 39 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 40 40 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 41 - static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 41 + static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 42 42 43 43 module_param_array(index, int, NULL, 0444); 44 44 module_param_array(id, charp, NULL, 0444);
+1 -1
drivers/staging/media/lirc/lirc_bt829.c
··· 53 53 54 54 #define DRIVER_NAME "lirc_bt829" 55 55 56 - static int debug; 56 + static bool debug; 57 57 #define dprintk(fmt, args...) \ 58 58 do { \ 59 59 if (debug) \
+2 -2
drivers/staging/media/lirc/lirc_igorplugusb.c
··· 62 62 63 63 /* debugging support */ 64 64 #ifdef CONFIG_USB_DEBUG 65 - static int debug = 1; 65 + static bool debug = 1; 66 66 #else 67 - static int debug; 67 + static bool debug; 68 68 #endif 69 69 70 70 #define dprintk(fmt, args...) \
+3 -3
drivers/staging/media/lirc/lirc_parallel.c
··· 63 63 64 64 /*** Global Variables ***/ 65 65 66 - static int debug; 67 - static int check_pselecd; 66 + static bool debug; 67 + static bool check_pselecd; 68 68 69 69 unsigned int irq = LIRC_IRQ; 70 70 unsigned int io = LIRC_PORT; ··· 752 752 MODULE_PARM_DESC(debug, "Enable debugging messages"); 753 753 754 754 module_param(check_pselecd, bool, S_IRUGO | S_IWUSR); 755 - MODULE_PARM_DESC(debug, "Check for printer (default: 0)"); 755 + MODULE_PARM_DESC(check_pselecd, "Check for printer (default: 0)");
+5 -5
drivers/staging/media/lirc/lirc_serial.c
··· 107 107 static int type; 108 108 static int io; 109 109 static int irq; 110 - static int iommap; 110 + static bool iommap; 111 111 static int ioshift; 112 - static int softcarrier = 1; 113 - static int share_irq; 114 - static int debug; 112 + static bool softcarrier = 1; 113 + static bool share_irq; 114 + static bool debug; 115 115 static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ 116 - static int txsense; /* 0 = active high, 1 = active low */ 116 + static bool txsense; /* 0 = active high, 1 = active low */ 117 117 118 118 #define dprintk(fmt, args...) \ 119 119 do { \
+1 -1
drivers/staging/media/lirc/lirc_sir.c
··· 173 173 static int rx_buf[RBUF_LEN]; 174 174 static unsigned int rx_tail, rx_head; 175 175 176 - static int debug; 176 + static bool debug; 177 177 #define dprintk(fmt, args...) \ 178 178 do { \ 179 179 if (debug) \
+2 -2
drivers/staging/media/lirc/lirc_zilog.c
··· 155 155 #define zilog_info(s, args...) printk(KERN_INFO KBUILD_MODNAME ": " s, ## args) 156 156 157 157 /* module parameters */ 158 - static int debug; /* debug output */ 159 - static int tx_only; /* only handle the IR Tx function */ 158 + static bool debug; /* debug output */ 159 + static bool tx_only; /* only handle the IR Tx function */ 160 160 static int minor = -1; /* minor number */ 161 161 162 162 #define dprintk(fmt, args...) \
+1 -1
drivers/staging/quatech_usb2/quatech_usb2.c
··· 16 16 #include <linux/usb/serial.h> 17 17 #include <linux/uaccess.h> 18 18 19 - static int debug; 19 + static bool debug; 20 20 21 21 /* Version Information */ 22 22 #define DRIVER_VERSION "v2.00"
+1 -1
drivers/staging/serqt_usb2/serqt_usb2.c
··· 16 16 #include <linux/usb/serial.h> 17 17 #include <linux/uaccess.h> 18 18 19 - static int debug; 19 + static bool debug; 20 20 21 21 /* Version Information */ 22 22 #define DRIVER_VERSION "v2.14"
+1 -1
drivers/staging/speakup/speakup.h
··· 116 116 extern int spell_delay, key_echo; 117 117 extern short punc_mask; 118 118 extern short pitch_shift, synth_flags; 119 - extern int quiet_boot; 119 + extern bool quiet_boot; 120 120 extern char *synth_name; 121 121 extern struct bleep unprocessed_sound; 122 122
+1 -1
drivers/staging/speakup/synth.c
··· 22 22 struct spk_synth *synth; 23 23 char pitch_buff[32] = ""; 24 24 static int module_status; 25 - int quiet_boot; 25 + bool quiet_boot; 26 26 27 27 struct speakup_info_t speakup_info = { 28 28 .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock),
+1 -1
drivers/staging/vme/bridges/vme_tsi148.c
··· 41 41 42 42 43 43 /* Module parameter */ 44 - static int err_chk; 44 + static bool err_chk; 45 45 static int geoid; 46 46 47 47 static const char driver_name[] = "vme_tsi148";
+1 -1
drivers/tty/rocket.c
··· 118 118 static unsigned long board3; 119 119 static unsigned long board4; 120 120 static unsigned long controller; 121 - static int support_low_speed; 121 + static bool support_low_speed; 122 122 static unsigned long modem1; 123 123 static unsigned long modem2; 124 124 static unsigned long modem3;
+1 -1
drivers/tty/synclink.c
··· 850 850 * .text section address and breakpoint on module load. 851 851 * This is useful for use with gdb and add-symbol-file command. 852 852 */ 853 - static int break_on_load; 853 + static bool break_on_load; 854 854 855 855 /* 856 856 * Driver major number, defaults to zero to get auto
+1 -1
drivers/tty/synclinkmp.c
··· 456 456 * .text section address and breakpoint on module load. 457 457 * This is useful for use with gdb and add-symbol-file command. 458 458 */ 459 - static int break_on_load = 0; 459 + static bool break_on_load = 0; 460 460 461 461 /* 462 462 * Driver major number, defaults to zero to get auto
+3 -3
drivers/usb/atm/speedtch.c
··· 73 73 #define DEFAULT_SW_BUFFERING 0 74 74 75 75 static unsigned int altsetting = 0; /* zero means: use the default */ 76 - static int dl_512_first = DEFAULT_DL_512_FIRST; 77 - static int enable_isoc = DEFAULT_ENABLE_ISOC; 78 - static int sw_buffering = DEFAULT_SW_BUFFERING; 76 + static bool dl_512_first = DEFAULT_DL_512_FIRST; 77 + static bool enable_isoc = DEFAULT_ENABLE_ISOC; 78 + static bool sw_buffering = DEFAULT_SW_BUFFERING; 79 79 80 80 #define DEFAULT_B_MAX_DSL 8128 81 81 #define DEFAULT_MODEM_MODE 11
+1 -1
drivers/usb/atm/ueagle-atm.c
··· 542 542 static unsigned int debug; 543 543 static unsigned int altsetting[NB_MODEM] = { 544 544 [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; 545 - static int sync_wait[NB_MODEM]; 545 + static bool sync_wait[NB_MODEM]; 546 546 static char *cmv_file[NB_MODEM]; 547 547 static int annex[NB_MODEM]; 548 548
+1 -1
drivers/usb/core/devio.c
··· 93 93 u8 bulk_status; 94 94 }; 95 95 96 - static int usbfs_snoop; 96 + static bool usbfs_snoop; 97 97 module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR); 98 98 MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic"); 99 99
+4 -4
drivers/usb/core/hub.c
··· 102 102 static struct task_struct *khubd_task; 103 103 104 104 /* cycle leds on hubs that aren't blinking for attention */ 105 - static int blinkenlights = 0; 105 + static bool blinkenlights = 0; 106 106 module_param (blinkenlights, bool, S_IRUGO); 107 107 MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs"); 108 108 ··· 131 131 * otherwise the new scheme is used. If that fails and "use_both_schemes" 132 132 * is set, then the driver will make another attempt, using the other scheme. 133 133 */ 134 - static int old_scheme_first = 0; 134 + static bool old_scheme_first = 0; 135 135 module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); 136 136 MODULE_PARM_DESC(old_scheme_first, 137 137 "start with the old device initialization scheme"); 138 138 139 - static int use_both_schemes = 1; 139 + static bool use_both_schemes = 1; 140 140 module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR); 141 141 MODULE_PARM_DESC(use_both_schemes, 142 142 "try the other device initialization scheme if the " ··· 2026 2026 #define SET_ADDRESS_TRIES 2 2027 2027 #define GET_DESCRIPTOR_TRIES 2 2028 2028 #define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) 2029 - #define USE_NEW_SCHEME(i) ((i) / 2 == old_scheme_first) 2029 + #define USE_NEW_SCHEME(i) ((i) / 2 == (int)old_scheme_first) 2030 2030 2031 2031 #define HUB_ROOT_RESET_TIME 50 /* times are in msec */ 2032 2032 #define HUB_SHORT_RESET_TIME 10
+1 -1
drivers/usb/core/usb.c
··· 47 47 48 48 const char *usbcore_name = "usbcore"; 49 49 50 - static int nousb; /* Disable USB when built into kernel image */ 50 + static bool nousb; /* Disable USB when built into kernel image */ 51 51 52 52 #ifdef CONFIG_USB_SUSPEND 53 53 static int usb_autosuspend_delay = 2; /* Default delay value,
+4 -4
drivers/usb/gadget/amd5536udc.c
··· 152 152 }; 153 153 154 154 /* DMA usage flag */ 155 - static int use_dma = 1; 155 + static bool use_dma = 1; 156 156 /* packet per buffer dma */ 157 - static int use_dma_ppb = 1; 157 + static bool use_dma_ppb = 1; 158 158 /* with per descr. update */ 159 - static int use_dma_ppb_du; 159 + static bool use_dma_ppb_du; 160 160 /* buffer fill mode */ 161 161 static int use_dma_bufferfill_mode; 162 162 /* full speed only mode */ 163 - static int use_fullspeed; 163 + static bool use_fullspeed; 164 164 /* tx buffer size for high speed */ 165 165 static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE; 166 166
+2 -2
drivers/usb/gadget/ether.c
··· 250 250 /*-------------------------------------------------------------------------*/ 251 251 252 252 #ifdef CONFIG_USB_ETH_EEM 253 - static int use_eem = 1; 253 + static bool use_eem = 1; 254 254 #else 255 - static int use_eem; 255 + static bool use_eem; 256 256 #endif 257 257 module_param(use_eem, bool, 0); 258 258 MODULE_PARM_DESC(use_eem, "use CDC EEM mode");
+5 -5
drivers/usb/gadget/file_storage.c
··· 303 303 static struct { 304 304 char *file[FSG_MAX_LUNS]; 305 305 char *serial; 306 - int ro[FSG_MAX_LUNS]; 307 - int nofua[FSG_MAX_LUNS]; 306 + bool ro[FSG_MAX_LUNS]; 307 + bool nofua[FSG_MAX_LUNS]; 308 308 unsigned int num_filenames; 309 309 unsigned int num_ros; 310 310 unsigned int num_nofuas; 311 311 unsigned int nluns; 312 312 313 - int removable; 314 - int can_stall; 315 - int cdrom; 313 + bool removable; 314 + bool can_stall; 315 + bool cdrom; 316 316 317 317 char *transport_parm; 318 318 char *protocol_parm;
+1 -1
drivers/usb/gadget/net2272.c
··· 69 69 * 70 70 * If use_dma is disabled, pio will be used instead. 71 71 */ 72 - static int use_dma = 0; 72 + static bool use_dma = 0; 73 73 module_param(use_dma, bool, 0644); 74 74 75 75 /*
+3 -3
drivers/usb/gadget/net2280.c
··· 90 90 * Some gadget drivers work better with the dma support here than others. 91 91 * These two parameters let you use PIO or more aggressive DMA. 92 92 */ 93 - static int use_dma = 1; 94 - static int use_dma_chaining = 0; 93 + static bool use_dma = 1; 94 + static bool use_dma_chaining = 0; 95 95 96 96 /* "modprobe net2280 use_dma=n" etc */ 97 97 module_param (use_dma, bool, S_IRUGO); ··· 112 112 * USB suspend requests will be ignored. This is acceptable for 113 113 * self-powered devices 114 114 */ 115 - static int enable_suspend = 0; 115 + static bool enable_suspend = 0; 116 116 117 117 /* "modprobe net2280 enable_suspend=1" etc */ 118 118 module_param (enable_suspend, bool, S_IRUGO);
+1 -1
drivers/usb/gadget/omap_udc.c
··· 98 98 MODULE_PARM_DESC (fifo_mode, "endpoint configuration"); 99 99 100 100 #ifdef USE_DMA 101 - static unsigned use_dma = 1; 101 + static bool use_dma = 1; 102 102 103 103 /* "modprobe omap_udc use_dma=y", or else as a kernel 104 104 * boot parameter "omap_udc:use_dma=y"
+1 -1
drivers/usb/gadget/pch_udc.c
··· 359 359 static const char ep0_string[] = "ep0in"; 360 360 static DEFINE_SPINLOCK(udc_stall_spinlock); /* stall spin lock */ 361 361 struct pch_udc_dev *pch_udc; /* pointer to device object */ 362 - static int speed_fs; 362 + static bool speed_fs; 363 363 module_param_named(speed_fs, speed_fs, bool, S_IRUGO); 364 364 MODULE_PARM_DESC(speed_fs, "true for Full speed operation"); 365 365
+2 -2
drivers/usb/gadget/serial.c
··· 123 123 MODULE_AUTHOR("David Brownell"); 124 124 MODULE_LICENSE("GPL"); 125 125 126 - static int use_acm = true; 126 + static bool use_acm = true; 127 127 module_param(use_acm, bool, 0); 128 128 MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes"); 129 129 130 - static int use_obex = false; 130 + static bool use_obex = false; 131 131 module_param(use_obex, bool, 0); 132 132 MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no"); 133 133
+1 -1
drivers/usb/gadget/zero.c
··· 81 81 * work better with hosts where config changes are problematic or 82 82 * controllers (like original superh) that only support one config. 83 83 */ 84 - static int loopdefault = 0; 84 + static bool loopdefault = 0; 85 85 module_param(loopdefault, bool, S_IRUGO|S_IWUSR); 86 86 87 87 /*-------------------------------------------------------------------------*/
+1 -1
drivers/usb/host/ehci-hcd.c
··· 112 112 MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); 113 113 114 114 /* for flakey hardware, ignore overcurrent indicators */ 115 - static int ignore_oc = 0; 115 + static bool ignore_oc = 0; 116 116 module_param (ignore_oc, bool, S_IRUGO); 117 117 MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); 118 118
+2 -2
drivers/usb/host/ohci-hcd.c
··· 115 115 116 116 117 117 /* Some boards misreport power switching/overcurrent */ 118 - static int distrust_firmware = 1; 118 + static bool distrust_firmware = 1; 119 119 module_param (distrust_firmware, bool, 0); 120 120 MODULE_PARM_DESC (distrust_firmware, 121 121 "true to distrust firmware power/overcurrent setup"); 122 122 123 123 /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ 124 - static int no_handshake = 0; 124 + static bool no_handshake = 0; 125 125 module_param (no_handshake, bool, 0); 126 126 MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); 127 127
+1 -1
drivers/usb/host/oxu210hp-hcd.c
··· 233 233 MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets"); 234 234 235 235 /* For flakey hardware, ignore overcurrent indicators */ 236 - static int ignore_oc; 236 + static bool ignore_oc; 237 237 module_param(ignore_oc, bool, S_IRUGO); 238 238 MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications"); 239 239
+1 -1
drivers/usb/host/u132-hcd.c
··· 74 74 #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) 75 75 INT_MODULE_PARM(testing, 0); 76 76 /* Some boards misreport power switching/overcurrent*/ 77 - static int distrust_firmware = 1; 77 + static bool distrust_firmware = 1; 78 78 module_param(distrust_firmware, bool, 0); 79 79 MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" 80 80 "t setup");
+1 -1
drivers/usb/host/uhci-hcd.c
··· 59 59 #define DRIVER_DESC "USB Universal Host Controller Interface driver" 60 60 61 61 /* for flakey hardware, ignore overcurrent indicators */ 62 - static int ignore_oc; 62 + static bool ignore_oc; 63 63 module_param(ignore_oc, bool, S_IRUGO); 64 64 MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications"); 65 65
+1 -1
drivers/usb/misc/ftdi-elan.c
··· 53 53 MODULE_DESCRIPTION("FTDI ELAN driver"); 54 54 MODULE_LICENSE("GPL"); 55 55 #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) 56 - static int distrust_firmware = 1; 56 + static bool distrust_firmware = 1; 57 57 module_param(distrust_firmware, bool, 0); 58 58 MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" 59 59 "t setup");
+1 -1
drivers/usb/misc/iowarrior.c
··· 62 62 63 63 /* Module parameters */ 64 64 static DEFINE_MUTEX(iowarrior_mutex); 65 - static int debug = 0; 65 + static bool debug = 0; 66 66 module_param(debug, bool, 0644); 67 67 MODULE_PARM_DESC(debug, "debug=1 enables debugging messages"); 68 68
+1 -1
drivers/usb/musb/cppi_dma.c
··· 750 750 * So this module parameter lets the heuristic be disabled. When using 751 751 * gadgetfs, the heuristic will probably need to be disabled. 752 752 */ 753 - static int cppi_rx_rndis = 1; 753 + static bool cppi_rx_rndis = 1; 754 754 755 755 module_param(cppi_rx_rndis, bool, 0); 756 756 MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic");
+1 -1
drivers/usb/musb/musb_core.c
··· 1586 1586 EXPORT_SYMBOL_GPL(musb_interrupt); 1587 1587 1588 1588 #ifndef CONFIG_MUSB_PIO_ONLY 1589 - static int __initdata use_dma = 1; 1589 + static bool __initdata use_dma = 1; 1590 1590 1591 1591 /* "modprobe ... use_dma=0" etc */ 1592 1592 module_param(use_dma, bool, 0);
+1 -1
drivers/usb/serial/aircable.c
··· 52 52 #include <linux/usb.h> 53 53 #include <linux/usb/serial.h> 54 54 55 - static int debug; 55 + static bool debug; 56 56 57 57 /* Vendor and Product ID */ 58 58 #define AIRCABLE_VID 0x16CA
+1 -1
drivers/usb/serial/ark3116.c
··· 37 37 #include <linux/mutex.h> 38 38 #include <linux/spinlock.h> 39 39 40 - static int debug; 40 + static bool debug; 41 41 /* 42 42 * Version information 43 43 */
+1 -1
drivers/usb/serial/belkin_sa.c
··· 37 37 #include <linux/usb/serial.h> 38 38 #include "belkin_sa.h" 39 39 40 - static int debug; 40 + static bool debug; 41 41 42 42 /* 43 43 * Version Information
+1 -1
drivers/usb/serial/ch341.c
··· 70 70 #define CH341_NBREAK_BITS_REG2 0x40 71 71 72 72 73 - static int debug; 73 + static bool debug; 74 74 75 75 static const struct usb_device_id id_table[] = { 76 76 { USB_DEVICE(0x4348, 0x5523) },
+1 -1
drivers/usb/serial/cp210x.c
··· 49 49 static int cp210x_startup(struct usb_serial *); 50 50 static void cp210x_dtr_rts(struct usb_serial_port *p, int on); 51 51 52 - static int debug; 52 + static bool debug; 53 53 54 54 static const struct usb_device_id id_table[] = { 55 55 { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */
+1 -1
drivers/usb/serial/cyberjack.c
··· 43 43 44 44 #define CYBERJACK_LOCAL_BUF_SIZE 32 45 45 46 - static int debug; 46 + static bool debug; 47 47 48 48 /* 49 49 * Version Information
+3 -3
drivers/usb/serial/cypress_m8.c
··· 46 46 #include "cypress_m8.h" 47 47 48 48 49 - static int debug; 50 - static int stats; 49 + static bool debug; 50 + static bool stats; 51 51 static int interval; 52 - static int unstable_bauds; 52 + static bool unstable_bauds; 53 53 54 54 /* 55 55 * Version Information
+1 -1
drivers/usb/serial/digi_acceleport.c
··· 251 251 252 252 /* Statics */ 253 253 254 - static int debug; 254 + static bool debug; 255 255 256 256 static const struct usb_device_id id_table_combined[] = { 257 257 { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) },
+1 -1
drivers/usb/serial/empeg.c
··· 28 28 #include <linux/usb.h> 29 29 #include <linux/usb/serial.h> 30 30 31 - static int debug; 31 + static bool debug; 32 32 33 33 /* 34 34 * Version Information
+1 -1
drivers/usb/serial/ftdi_sio.c
··· 55 55 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>" 56 56 #define DRIVER_DESC "USB FTDI Serial Converters Driver" 57 57 58 - static int debug; 58 + static bool debug; 59 59 static __u16 vendor = FTDI_VID; 60 60 static __u16 product; 61 61
+1 -1
drivers/usb/serial/funsoft.c
··· 16 16 #include <linux/usb/serial.h> 17 17 #include <linux/uaccess.h> 18 18 19 - static int debug; 19 + static bool debug; 20 20 21 21 static const struct usb_device_id id_table[] = { 22 22 { USB_DEVICE(0x1404, 0xcddc) },
+1 -1
drivers/usb/serial/garmin_gps.c
··· 42 42 static int initial_mode = 1; 43 43 44 44 /* debug flag */ 45 - static int debug; 45 + static bool debug; 46 46 47 47 #define GARMIN_VENDOR_ID 0x091E 48 48
+1 -1
drivers/usb/serial/io_edgeport.c
··· 191 191 }; 192 192 193 193 /* local variables */ 194 - static int debug; 194 + static bool debug; 195 195 196 196 static atomic_t CmdUrbs; /* Number of outstanding Command Write Urbs */ 197 197
+2 -2
drivers/usb/serial/io_ti.c
··· 210 210 static unsigned char OperationalMinorVersion; 211 211 static unsigned short OperationalBuildNumber; 212 212 213 - static int debug; 213 + static bool debug; 214 214 215 215 static int closing_wait = EDGE_CLOSING_WAIT; 216 - static int ignore_cpu_rev; 216 + static bool ignore_cpu_rev; 217 217 static int default_uart_mode; /* RS232 */ 218 218 219 219 static void edge_tty_recv(struct device *dev, struct tty_struct *tty,
+1 -1
drivers/usb/serial/ipaq.c
··· 34 34 #define DRIVER_DESC "USB PocketPC PDA driver" 35 35 36 36 static __u16 product, vendor; 37 - static int debug; 37 + static bool debug; 38 38 static int connect_retries = KP_RETRIES; 39 39 static int initial_wait; 40 40
+1 -1
drivers/usb/serial/ipw.c
··· 147 147 .no_dynamic_id = 1, 148 148 }; 149 149 150 - static int debug; 150 + static bool debug; 151 151 152 152 static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) 153 153 {
+1 -1
drivers/usb/serial/ir-usb.c
··· 45 45 #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" 46 46 #define DRIVER_DESC "USB IR Dongle driver" 47 47 48 - static int debug; 48 + static bool debug; 49 49 50 50 /* if overridden by the user, then use their value for the size of the read and 51 51 * write urbs */
+3 -3
drivers/usb/serial/iuu_phoenix.c
··· 34 34 35 35 36 36 #ifdef CONFIG_USB_SERIAL_DEBUG 37 - static int debug = 1; 37 + static bool debug = 1; 38 38 #else 39 - static int debug; 39 + static bool debug; 40 40 #endif 41 41 42 42 /* ··· 65 65 static int cdmode = 1; 66 66 static int iuu_cardin; 67 67 static int iuu_cardout; 68 - static int xmas; 68 + static bool xmas; 69 69 static int vcc_default = 5; 70 70 71 71 static void read_rxcmd_callback(struct urb *urb);
+1 -1
drivers/usb/serial/keyspan.c
··· 45 45 #include <linux/usb/serial.h> 46 46 #include "keyspan.h" 47 47 48 - static int debug; 48 + static bool debug; 49 49 50 50 /* 51 51 * Version Information
+1 -1
drivers/usb/serial/keyspan_pda.c
··· 31 31 #include <linux/usb.h> 32 32 #include <linux/usb/serial.h> 33 33 34 - static int debug; 34 + static bool debug; 35 35 36 36 /* make a simple define to handle if we are compiling keyspan_pda or xircom support */ 37 37 #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE)
+1 -1
drivers/usb/serial/kl5kusb105.c
··· 49 49 #include <linux/usb/serial.h> 50 50 #include "kl5kusb105.h" 51 51 52 - static int debug; 52 + static bool debug; 53 53 54 54 /* 55 55 * Version Information
+1 -1
drivers/usb/serial/mct_u232.c
··· 45 45 #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>" 46 46 #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver" 47 47 48 - static int debug; 48 + static bool debug; 49 49 50 50 /* 51 51 * Function prototypes
+1 -1
drivers/usb/serial/mos7720.c
··· 71 71 struct urb *write_urb_pool[NUM_URBS]; 72 72 }; 73 73 74 - static int debug; 74 + static bool debug; 75 75 76 76 static struct usb_serial_driver moschip7720_2port_driver; 77 77
+1 -1
drivers/usb/serial/mos7840.c
··· 263 263 }; 264 264 265 265 266 - static int debug; 266 + static bool debug; 267 267 268 268 /* 269 269 * mos7840_set_reg_sync
+1 -1
drivers/usb/serial/navman.c
··· 21 21 #include <linux/usb.h> 22 22 #include <linux/usb/serial.h> 23 23 24 - static int debug; 24 + static bool debug; 25 25 26 26 static const struct usb_device_id id_table[] = { 27 27 { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */
+1 -1
drivers/usb/serial/omninet.c
··· 23 23 #include <linux/usb.h> 24 24 #include <linux/usb/serial.h> 25 25 26 - static int debug; 26 + static bool debug; 27 27 28 28 /* 29 29 * Version Information
+1 -1
drivers/usb/serial/opticon.c
··· 32 32 * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */ 33 33 #define DRIVER_DESC "Opticon USB barcode to serial driver (1D)" 34 34 35 - static int debug; 35 + static bool debug; 36 36 37 37 static const struct usb_device_id id_table[] = { 38 38 { USB_DEVICE(0x065a, 0x0009) },
+1 -1
drivers/usb/serial/option.c
··· 1234 1234 #endif 1235 1235 }; 1236 1236 1237 - static int debug; 1237 + static bool debug; 1238 1238 1239 1239 /* per port private data */ 1240 1240
+1 -1
drivers/usb/serial/oti6858.c
··· 74 74 .no_dynamic_id = 1, 75 75 }; 76 76 77 - static int debug; 77 + static bool debug; 78 78 79 79 /* requests */ 80 80 #define OTI6858_REQ_GET_STATUS (USB_DIR_IN | USB_TYPE_VENDOR | 0x00)
+1 -1
drivers/usb/serial/pl2303.c
··· 36 36 */ 37 37 #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver" 38 38 39 - static int debug; 39 + static bool debug; 40 40 41 41 #define PL2303_CLOSING_WAIT (30*HZ) 42 42
+1 -1
drivers/usb/serial/qcserial.c
··· 22 22 #define DRIVER_AUTHOR "Qualcomm Inc" 23 23 #define DRIVER_DESC "Qualcomm USB Serial driver" 24 24 25 - static int debug; 25 + static bool debug; 26 26 27 27 static const struct usb_device_id id_table[] = { 28 28 {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */
+3 -3
drivers/usb/serial/safe_serial.c
··· 81 81 #define CONFIG_USB_SERIAL_SAFE_PADDED 0 82 82 #endif 83 83 84 - static int debug; 85 - static int safe = 1; 86 - static int padded = CONFIG_USB_SERIAL_SAFE_PADDED; 84 + static bool debug; 85 + static bool safe = 1; 86 + static bool padded = CONFIG_USB_SERIAL_SAFE_PADDED; 87 87 88 88 #define DRIVER_VERSION "v0.1" 89 89 #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>"
+2 -2
drivers/usb/serial/sierra.c
··· 46 46 allocations > PAGE_SIZE and the number of packets in a page 47 47 is an integer 512 is the largest possible packet on EHCI */ 48 48 49 - static int debug; 50 - static int nmea; 49 + static bool debug; 50 + static bool nmea; 51 51 52 52 /* Used in interface blacklisting */ 53 53 struct sierra_iface_info {
+1 -1
drivers/usb/serial/spcp8x5.c
··· 33 33 #define DRIVER_VERSION "v0.10" 34 34 #define DRIVER_DESC "SPCP8x5 USB to serial adaptor driver" 35 35 36 - static int debug; 36 + static bool debug; 37 37 38 38 #define SPCP8x5_007_VID 0x04FC 39 39 #define SPCP8x5_007_PID 0x0201
+1 -1
drivers/usb/serial/ssu100.c
··· 46 46 #define FULLPWRBIT 0x00000080 47 47 #define NEXT_BOARD_POWER_BIT 0x00000004 48 48 49 - static int debug; 49 + static bool debug; 50 50 51 51 /* Version Information */ 52 52 #define DRIVER_VERSION "v0.1"
+1 -1
drivers/usb/serial/symbolserial.c
··· 20 20 #include <linux/usb/serial.h> 21 21 #include <linux/uaccess.h> 22 22 23 - static int debug; 23 + static bool debug; 24 24 25 25 static const struct usb_device_id id_table[] = { 26 26 { USB_DEVICE(0x05e0, 0x0600) },
+1 -1
drivers/usb/serial/ti_usb_3410_5052.c
··· 150 150 /* Data */ 151 151 152 152 /* module parameters */ 153 - static int debug; 153 + static bool debug; 154 154 static int closing_wait = TI_DEFAULT_CLOSING_WAIT; 155 155 static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; 156 156 static unsigned int vendor_3410_count;
+1 -1
drivers/usb/serial/usb-serial.c
··· 61 61 drivers depend on it. 62 62 */ 63 63 64 - static int debug; 64 + static bool debug; 65 65 /* initially all NULL */ 66 66 static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; 67 67 static DEFINE_MUTEX(table_lock);
+1 -1
drivers/usb/serial/usb_wwan.c
··· 37 37 #include <linux/serial.h> 38 38 #include "usb-wwan.h" 39 39 40 - static int debug; 40 + static bool debug; 41 41 42 42 void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) 43 43 {
+1 -1
drivers/usb/serial/visor.c
··· 52 52 const struct usb_device_id *id); 53 53 54 54 /* Parameters that may be passed into the module. */ 55 - static int debug; 55 + static bool debug; 56 56 static __u16 vendor; 57 57 static __u16 product; 58 58
+1 -1
drivers/usb/serial/whiteheat.c
··· 36 36 #include <linux/ihex.h> 37 37 #include "whiteheat.h" /* WhiteHEAT specific commands */ 38 38 39 - static int debug; 39 + static bool debug; 40 40 41 41 #ifndef CMSPAR 42 42 #define CMSPAR 0
+2 -2
drivers/video/aty/atyfb_base.c
··· 301 301 .fb_sync = atyfb_sync, 302 302 }; 303 303 304 - static int noaccel; 304 + static bool noaccel; 305 305 #ifdef CONFIG_MTRR 306 - static int nomtrr; 306 + static bool nomtrr; 307 307 #endif 308 308 static int vram; 309 309 static int pll;
+9 -9
drivers/video/aty/radeon_base.c
··· 263 263 264 264 static char *mode_option; 265 265 static char *monitor_layout; 266 - static int noaccel = 0; 266 + static bool noaccel = 0; 267 267 static int default_dynclk = -2; 268 - static int nomodeset = 0; 269 - static int ignore_edid = 0; 270 - static int mirror = 0; 268 + static bool nomodeset = 0; 269 + static bool ignore_edid = 0; 270 + static bool mirror = 0; 271 271 static int panel_yres = 0; 272 - static int force_dfp = 0; 273 - static int force_measure_pll = 0; 272 + static bool force_dfp = 0; 273 + static bool force_measure_pll = 0; 274 274 #ifdef CONFIG_MTRR 275 - static int nomtrr = 0; 275 + static bool nomtrr = 0; 276 276 #endif 277 - static int force_sleep; 278 - static int ignore_devlist; 277 + static bool force_sleep; 278 + static bool ignore_devlist; 279 279 #ifdef CONFIG_PMAC_BACKLIGHT 280 280 static int backlight = 1; 281 281 #else
+1 -1
drivers/video/cirrusfb.c
··· 350 350 void (*unmap)(struct fb_info *info); 351 351 }; 352 352 353 - static int noaccel __devinitdata; 353 + static bool noaccel __devinitdata; 354 354 static char *mode_option __devinitdata = "640x480@60"; 355 355 356 356 /****************************************************************************/
+1 -1
drivers/video/hgafb.c
··· 133 133 /* Don't assume that tty1 will be the initial current console. */ 134 134 static int release_io_port = 0; 135 135 static int release_io_ports = 0; 136 - static int nologo = 0; 136 + static bool nologo = 0; 137 137 138 138 /* ------------------------------------------------------------------------- 139 139 *
+9 -9
drivers/video/intelfb/intelfbdrv.c
··· 230 230 MODULE_LICENSE("Dual BSD/GPL"); 231 231 MODULE_DEVICE_TABLE(pci, intelfb_pci_table); 232 232 233 - static int accel = 1; 233 + static bool accel = 1; 234 234 static int vram = 4; 235 - static int hwcursor = 0; 236 - static int mtrr = 1; 237 - static int fixed = 0; 238 - static int noinit = 0; 239 - static int noregister = 0; 240 - static int probeonly = 0; 241 - static int idonly = 0; 235 + static bool hwcursor = 0; 236 + static bool mtrr = 1; 237 + static bool fixed = 0; 238 + static bool noinit = 0; 239 + static bool noregister = 0; 240 + static bool probeonly = 0; 241 + static bool idonly = 0; 242 242 static int bailearly = 0; 243 243 static int voffset = 48; 244 244 static char *mode = NULL; ··· 263 263 MODULE_PARM_DESC(probeonly, "Do a minimal probe (debug)"); 264 264 module_param(idonly, bool, 0); 265 265 MODULE_PARM_DESC(idonly, "Just identify without doing anything else (debug)"); 266 - module_param(bailearly, bool, 0); 266 + module_param(bailearly, int, 0); 267 267 MODULE_PARM_DESC(bailearly, "Bail out early, depending on value (debug)"); 268 268 module_param(mode, charp, S_IRUGO); 269 269 MODULE_PARM_DESC(mode,
+1 -1
drivers/video/logo/logo.c
··· 21 21 #include <asm/bootinfo.h> 22 22 #endif 23 23 24 - static int nologo; 24 + static bool nologo; 25 25 module_param(nologo, bool, 0); 26 26 MODULE_PARM_DESC(nologo, "Disables startup logo"); 27 27
+5 -5
drivers/video/neofb.c
··· 84 84 85 85 /* --------------------------------------------------------------------- */ 86 86 87 - static int internal; 88 - static int external; 89 - static int libretto; 90 - static int nostretch; 91 - static int nopciburst; 87 + static bool internal; 88 + static bool external; 89 + static bool libretto; 90 + static bool nostretch; 91 + static bool nopciburst; 92 92 static char *mode_option __devinitdata = NULL; 93 93 94 94 #ifdef MODULE
+2 -2
drivers/video/omap/omapfb_main.c
··· 47 47 static unsigned int def_mirror; 48 48 49 49 #ifdef CONFIG_FB_OMAP_MANUAL_UPDATE 50 - static int manual_update = 1; 50 + static bool manual_update = 1; 51 51 #else 52 - static int manual_update; 52 + static bool manual_update; 53 53 #endif 54 54 55 55 static struct platform_device *fbdev_pdev;
+1 -1
drivers/video/omap2/dss/core.c
··· 50 50 MODULE_PARM_DESC(def_disp, "default display name"); 51 51 52 52 #ifdef DEBUG 53 - unsigned int dss_debug; 53 + bool dss_debug; 54 54 module_param_named(debug, dss_debug, bool, 0644); 55 55 #endif 56 56
+2 -2
drivers/video/omap2/dss/dsi.c
··· 340 340 static struct platform_device *dsi_pdev_map[MAX_NUM_DSI]; 341 341 342 342 #ifdef DEBUG 343 - static unsigned int dsi_perf; 344 - module_param_named(dsi_perf, dsi_perf, bool, 0644); 343 + static bool dsi_perf; 344 + module_param(dsi_perf, bool, 0644); 345 345 #endif 346 346 347 347 static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dsidev)
+1 -1
drivers/video/omap2/dss/dss.h
··· 28 28 #endif 29 29 30 30 #ifdef DEBUG 31 - extern unsigned int dss_debug; 31 + extern bool dss_debug; 32 32 #ifdef DSS_SUBSYS_NAME 33 33 #define DSSDBG(format, ...) \ 34 34 if (dss_debug) \
+4 -4
drivers/video/omap2/omapfb/omapfb-main.c
··· 43 43 44 44 static char *def_mode; 45 45 static char *def_vram; 46 - static int def_vrfb; 46 + static bool def_vrfb; 47 47 static int def_rotate; 48 - static int def_mirror; 48 + static bool def_mirror; 49 49 static bool auto_update; 50 50 static unsigned int auto_update_freq; 51 51 module_param(auto_update, bool, 0); 52 52 module_param(auto_update_freq, uint, 0644); 53 53 54 54 #ifdef DEBUG 55 - unsigned int omapfb_debug; 55 + bool omapfb_debug; 56 56 module_param_named(debug, omapfb_debug, bool, 0644); 57 - static unsigned int omapfb_test_pattern; 57 + static bool omapfb_test_pattern; 58 58 module_param_named(test, omapfb_test_pattern, bool, 0644); 59 59 #endif 60 60
+1 -1
drivers/video/omap2/omapfb/omapfb.h
··· 32 32 #include <video/omapdss.h> 33 33 34 34 #ifdef DEBUG 35 - extern unsigned int omapfb_debug; 35 + extern bool omapfb_debug; 36 36 #define DBG(format, ...) \ 37 37 do { \ 38 38 if (omapfb_debug) \
+4 -4
drivers/video/pm2fb.c
··· 78 78 * these flags allow the user to specify that requests for +ve sync 79 79 * should be silently turned in -ve sync. 80 80 */ 81 - static int lowhsync; 82 - static int lowvsync; 83 - static int noaccel __devinitdata; 81 + static bool lowhsync; 82 + static bool lowvsync; 83 + static bool noaccel __devinitdata; 84 84 /* mtrr option */ 85 85 #ifdef CONFIG_MTRR 86 - static int nomtrr __devinitdata; 86 + static bool nomtrr __devinitdata; 87 87 #endif 88 88 89 89 /*
+2 -2
drivers/video/pm3fb.c
··· 57 57 */ 58 58 static int hwcursor = 1; 59 59 static char *mode_option __devinitdata; 60 - static int noaccel __devinitdata; 60 + static bool noaccel __devinitdata; 61 61 62 62 /* mtrr option */ 63 63 #ifdef CONFIG_MTRR 64 - static int nomtrr __devinitdata; 64 + static bool nomtrr __devinitdata; 65 65 #endif 66 66 67 67 /*
+3 -3
drivers/video/riva/fbdev.c
··· 207 207 /* command line data, set in rivafb_setup() */ 208 208 static int flatpanel __devinitdata = -1; /* Autodetect later */ 209 209 static int forceCRTC __devinitdata = -1; 210 - static int noaccel __devinitdata = 0; 210 + static bool noaccel __devinitdata = 0; 211 211 #ifdef CONFIG_MTRR 212 - static int nomtrr __devinitdata = 0; 212 + static bool nomtrr __devinitdata = 0; 213 213 #endif 214 214 #ifdef CONFIG_PMAC_BACKLIGHT 215 215 static int backlight __devinitdata = 1; ··· 218 218 #endif 219 219 220 220 static char *mode_option __devinitdata = NULL; 221 - static int strictmode = 0; 221 + static bool strictmode = 0; 222 222 223 223 static struct fb_fix_screeninfo __devinitdata rivafb_fix = { 224 224 .type = FB_TYPE_PACKED_PIXELS,
+2 -2
drivers/video/smscufx.c
··· 130 130 MODULE_DEVICE_TABLE(usb, id_table); 131 131 132 132 /* module options */ 133 - static int console; /* Optionally allow fbcon to consume first framebuffer */ 134 - static int fb_defio = true; /* Optionally enable fb_defio mmap support */ 133 + static bool console; /* Optionally allow fbcon to consume first framebuffer */ 134 + static bool fb_defio = true; /* Optionally enable fb_defio mmap support */ 135 135 136 136 /* ufx keeps a list of urbs for efficient bulk transfers */ 137 137 static void ufx_urb_completion(struct urb *urb);
+3 -3
drivers/video/sstfb.c
··· 93 93 94 94 /* initialized by setup */ 95 95 96 - static int vgapass; /* enable VGA passthrough cable */ 96 + static bool vgapass; /* enable VGA passthrough cable */ 97 97 static int mem; /* mem size in MB, 0 = autodetect */ 98 - static int clipping = 1; /* use clipping (slower, safer) */ 98 + static bool clipping = 1; /* use clipping (slower, safer) */ 99 99 static int gfxclk; /* force FBI freq in Mhz . Dangerous */ 100 - static int slowpci; /* slow PCI settings */ 100 + static bool slowpci; /* slow PCI settings */ 101 101 102 102 /* 103 103 Possible default video modes: 800x600@60, 640x480@75, 1024x768@76, 640x480@60
+1 -1
drivers/video/tdfxfb.c
··· 169 169 static int hwcursor = 1; 170 170 static char *mode_option __devinitdata; 171 171 /* mtrr option */ 172 - static int nomtrr __devinitdata; 172 + static bool nomtrr __devinitdata; 173 173 174 174 /* ------------------------------------------------------------------------- 175 175 * Hardware-specific funcions
+3 -3
drivers/video/udlfb.c
··· 69 69 MODULE_DEVICE_TABLE(usb, id_table); 70 70 71 71 /* module options */ 72 - static int console = 1; /* Allow fbcon to open framebuffer */ 73 - static int fb_defio = 1; /* Detect mmap writes using page faults */ 74 - static int shadow = 1; /* Optionally disable shadow framebuffer */ 72 + static bool console = 1; /* Allow fbcon to open framebuffer */ 73 + static bool fb_defio = 1; /* Detect mmap writes using page faults */ 74 + static bool shadow = 1; /* Optionally disable shadow framebuffer */ 75 75 76 76 /* dlfb keeps a list of urbs for efficient bulk transfers */ 77 77 static void dlfb_urb_completion(struct urb *urb);
+3 -3
drivers/video/uvesafb.c
··· 44 44 }; 45 45 46 46 static int mtrr __devinitdata = 3; /* enable mtrr by default */ 47 - static int blank = 1; /* enable blanking by default */ 47 + static bool blank = 1; /* enable blanking by default */ 48 48 static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ 49 49 static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */ 50 - static int nocrtc __devinitdata; /* ignore CRTC settings */ 51 - static int noedid __devinitdata; /* don't try DDC transfers */ 50 + static bool nocrtc __devinitdata; /* ignore CRTC settings */ 51 + static bool noedid __devinitdata; /* don't try DDC transfers */ 52 52 static int vram_remap __devinitdata; /* set amt. of memory to be used */ 53 53 static int vram_total __devinitdata; /* set total amount of memory */ 54 54 static u16 maxclk __devinitdata; /* maximum pixel clock */
+1 -1
drivers/video/vfb.c
··· 110 110 .accel = FB_ACCEL_NONE, 111 111 }; 112 112 113 - static int vfb_enable __initdata = 0; /* disabled by default */ 113 + static bool vfb_enable __initdata = 0; /* disabled by default */ 114 114 module_param(vfb_enable, bool, 0); 115 115 116 116 static int vfb_check_var(struct fb_var_screeninfo *var,
+1 -1
drivers/watchdog/f71808e_wdt.c
··· 100 100 "Watchdog f71862fg reset output pin configuration. Choose pin 56 or 63" 101 101 " (default=" __MODULE_STRING(WATCHDOG_F71862FG_PIN)")"); 102 102 103 - static int nowayout = WATCHDOG_NOWAYOUT; 103 + static bool nowayout = WATCHDOG_NOWAYOUT; 104 104 module_param(nowayout, bool, 0444); 105 105 MODULE_PARM_DESC(nowayout, "Disable watchdog shutdown on close"); 106 106
+1 -1
drivers/watchdog/mpc8xxx_wdt.c
··· 55 55 MODULE_PARM_DESC(timeout, 56 56 "Watchdog timeout in ticks. (0<timeout<65536, default=65535)"); 57 57 58 - static int reset = 1; 58 + static bool reset = 1; 59 59 module_param(reset, bool, 0); 60 60 MODULE_PARM_DESC(reset, 61 61 "Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset");
+1 -1
drivers/xen/xen-pciback/conf_space.c
··· 16 16 #include "conf_space.h" 17 17 #include "conf_space_quirks.h" 18 18 19 - static int permissive; 19 + static bool permissive; 20 20 module_param(permissive, bool, 0644); 21 21 22 22 /* This is where xen_pcibk_read_config_byte, xen_pcibk_read_config_word,
+1 -1
drivers/xen/xen-pciback/xenbus.c
··· 16 16 #define INVALID_EVTCHN_IRQ (-1) 17 17 struct workqueue_struct *xen_pcibk_wq; 18 18 19 - static int __read_mostly passthrough; 19 + static bool __read_mostly passthrough; 20 20 module_param(passthrough, bool, S_IRUGO); 21 21 MODULE_PARM_DESC(passthrough, 22 22 "Option to specify how to export PCI topology to guest:\n"\
+1 -1
fs/lockd/mon.c
··· 55 55 * Local NSM state 56 56 */ 57 57 u32 __read_mostly nsm_local_state; 58 - int __read_mostly nsm_use_hostnames; 58 + bool __read_mostly nsm_use_hostnames; 59 59 60 60 static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm) 61 61 {
+1 -1
fs/nfs/client.c
··· 84 84 /* 85 85 * Turn off NFSv4 uid/gid mapping when using AUTH_SYS 86 86 */ 87 - static int nfs4_disable_idmapping = 1; 87 + static bool nfs4_disable_idmapping = true; 88 88 89 89 /* 90 90 * RPC cruft for NFS
+1 -1
fs/nfs/inode.c
··· 57 57 #define NFS_64_BIT_INODE_NUMBERS_ENABLED 1 58 58 59 59 /* Default is to see 64-bit inode numbers */ 60 - static int enable_ino64 = NFS_64_BIT_INODE_NUMBERS_ENABLED; 60 + static bool enable_ino64 = NFS_64_BIT_INODE_NUMBERS_ENABLED; 61 61 62 62 static void nfs_invalidate_inode(struct inode *); 63 63 static int nfs_update_inode(struct inode *, struct nfs_fattr *);
+1 -1
fs/ntfs/super.c
··· 3198 3198 MODULE_VERSION(NTFS_VERSION); 3199 3199 MODULE_LICENSE("GPL"); 3200 3200 #ifdef DEBUG 3201 - module_param(debug_msgs, bool, 0); 3201 + module_param(debug_msgs, bint, 0); 3202 3202 MODULE_PARM_DESC(debug_msgs, "Enable debug messages."); 3203 3203 #endif 3204 3204
+1 -1
include/acpi/acpixf.h
··· 66 66 extern u8 acpi_gbl_use_default_register_widths; 67 67 extern acpi_name acpi_gbl_trace_method_name; 68 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 70 extern u8 acpi_gbl_copy_dsdt_locally; 71 71 extern u8 acpi_gbl_truncate_io_addresses; 72 72 extern u8 acpi_gbl_disable_auto_repair;
+2 -2
include/acpi/apei.h
··· 16 16 17 17 #ifdef __KERNEL__ 18 18 19 - extern int hest_disable; 19 + extern bool hest_disable; 20 20 extern int erst_disable; 21 21 #ifdef CONFIG_ACPI_APEI_GHES 22 - extern int ghes_disable; 22 + extern bool ghes_disable; 23 23 #else 24 24 #define ghes_disable 1 25 25 #endif
+1 -1
include/linux/console.h
··· 152 152 char *console_options, char *braille_options); 153 153 extern int braille_unregister_console(struct console *); 154 154 extern void console_sysfs_notify(void); 155 - extern int console_suspend_enabled; 155 + extern bool console_suspend_enabled; 156 156 157 157 /* Suspend and resume console messages over PM events */ 158 158 extern void suspend_console(void);
+2 -1
include/linux/init.h
··· 2 2 #define _LINUX_INIT_H 3 3 4 4 #include <linux/compiler.h> 5 + #include <linux/types.h> 5 6 6 7 /* These macros are used to mark some functions or 7 8 * initialized data (doesn't apply to uninitialized data) ··· 157 156 158 157 extern void (*late_time_init)(void); 159 158 160 - extern int initcall_debug; 159 + extern bool initcall_debug; 161 160 162 161 #endif 163 162
+1 -1
include/linux/lockd/lockd.h
··· 195 195 #endif 196 196 extern int nlmsvc_grace_period; 197 197 extern unsigned long nlmsvc_timeout; 198 - extern int nsm_use_hostnames; 198 + extern bool nsm_use_hostnames; 199 199 extern u32 nsm_local_state; 200 200 201 201 /*
+1 -1
include/linux/mmc/host.h
··· 417 417 } 418 418 419 419 /* Module parameter */ 420 - extern int mmc_assume_removable; 420 + extern bool mmc_assume_removable; 421 421 422 422 static inline int mmc_card_is_removable(struct mmc_host *host) 423 423 {
+16 -5
include/linux/module.h
··· 205 205 MODULE_STATE_GOING, 206 206 }; 207 207 208 + /** 209 + * struct module_ref - per cpu module reference counts 210 + * @incs: number of module get on this cpu 211 + * @decs: number of module put on this cpu 212 + * 213 + * We force an alignment on 8 or 16 bytes, so that alloc_percpu() 214 + * put @incs/@decs in same cache line, with no extra memory cost, 215 + * since alloc_percpu() is fine grained. 216 + */ 217 + struct module_ref { 218 + unsigned long incs; 219 + unsigned long decs; 220 + } __attribute((aligned(2 * sizeof(unsigned long)))); 221 + 208 222 struct module 209 223 { 210 224 enum module_state state; ··· 361 347 /* Destruction function. */ 362 348 void (*exit)(void); 363 349 364 - struct module_ref { 365 - unsigned int incs; 366 - unsigned int decs; 367 - } __percpu *refptr; 350 + struct module_ref __percpu *refptr; 368 351 #endif 369 352 370 353 #ifdef CONFIG_CONSTRUCTORS ··· 445 434 #define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code); 446 435 447 436 #ifdef CONFIG_MODULE_UNLOAD 448 - unsigned int module_refcount(struct module *mod); 437 + unsigned long module_refcount(struct module *mod); 449 438 void __symbol_put(const char *symbol); 450 439 #define symbol_put(x) __symbol_put(MODULE_SYMBOL_PREFIX #x) 451 440 void symbol_put_addr(void *addr);
+9 -8
include/linux/moduleparam.h
··· 350 350 extern int param_get_charp(char *buffer, const struct kernel_param *kp); 351 351 #define param_check_charp(name, p) __param_check(name, p, char *) 352 352 353 - /* For historical reasons "bool" parameters can be (unsigned) "int". */ 353 + /* We used to allow int as well as bool. We're taking that away! */ 354 354 extern struct kernel_param_ops param_ops_bool; 355 355 extern int param_set_bool(const char *val, const struct kernel_param *kp); 356 356 extern int param_get_bool(char *buffer, const struct kernel_param *kp); 357 - #define param_check_bool(name, p) \ 358 - static inline void __check_##name(void) \ 359 - { \ 360 - BUILD_BUG_ON(!__same_type((p), bool *) && \ 361 - !__same_type((p), unsigned int *) && \ 362 - !__same_type((p), int *)); \ 363 - } 357 + #define param_check_bool(name, p) __param_check(name, p, bool) 364 358 365 359 extern struct kernel_param_ops param_ops_invbool; 366 360 extern int param_set_invbool(const char *val, const struct kernel_param *kp); 367 361 extern int param_get_invbool(char *buffer, const struct kernel_param *kp); 368 362 #define param_check_invbool(name, p) __param_check(name, p, bool) 363 + 364 + /* An int, which can only be set like a bool (though it shows as an int). */ 365 + extern struct kernel_param_ops param_ops_bint; 366 + extern int param_set_bint(const char *val, const struct kernel_param *kp); 367 + #define param_get_bint param_get_int 368 + #define param_check_bint param_check_int 369 369 370 370 /** 371 371 * module_param_array - a parameter which is an array of some type ··· 395 395 * module_param_named() for why this might be necessary. 396 396 */ 397 397 #define module_param_array_named(name, array, type, nump, perm) \ 398 + param_check_##type(name, &(array)[0]); \ 398 399 static const struct kparam_array __param_arr_##name \ 399 400 = { .max = ARRAY_SIZE(array), .num = nump, \ 400 401 .ops = &param_ops_##type, \
+1 -1
init/main.c
··· 648 648 #endif 649 649 } 650 650 651 - int initcall_debug; 651 + bool initcall_debug; 652 652 core_param(initcall_debug, initcall_debug, bool, 0644); 653 653 654 654 static char msgbuf[64];
-2
kernel/async.c
··· 78 78 79 79 static atomic_t entry_count; 80 80 81 - extern int initcall_debug; 82 - 83 81 84 82 /* 85 83 * MUST be called with the lock held!
+1 -1
kernel/debug/kdb/kdb_main.c
··· 1982 1982 kdb_printf("%-20s%8u 0x%p ", mod->name, 1983 1983 mod->core_size, (void *)mod); 1984 1984 #ifdef CONFIG_MODULE_UNLOAD 1985 - kdb_printf("%4d ", module_refcount(mod)); 1985 + kdb_printf("%4ld ", module_refcount(mod)); 1986 1986 #endif 1987 1987 if (mod->state == MODULE_STATE_GOING) 1988 1988 kdb_printf(" (Unloading)");
+1 -1
kernel/irq/internals.h
··· 15 15 16 16 #define istate core_internal_state__do_not_mess_with_it 17 17 18 - extern int noirqdebug; 18 + extern bool noirqdebug; 19 19 20 20 /* 21 21 * Bits used by threaded handlers:
+1 -1
kernel/irq/spurious.c
··· 325 325 desc->irqs_unhandled = 0; 326 326 } 327 327 328 - int noirqdebug __read_mostly; 328 + bool noirqdebug __read_mostly; 329 329 330 330 int noirqdebug_setup(char *str) 331 331 {
+110 -95
kernel/module.c
··· 62 62 #define CREATE_TRACE_POINTS 63 63 #include <trace/events/module.h> 64 64 65 - #if 0 66 - #define DEBUGP printk 67 - #else 68 - #define DEBUGP(fmt , a...) 69 - #endif 70 - 71 65 #ifndef ARCH_SHF_SMALL 72 66 #define ARCH_SHF_SMALL 0 73 67 #endif ··· 132 138 unsigned long len; 133 139 Elf_Shdr *sechdrs; 134 140 char *secstrings, *strtab; 135 - unsigned long *strmap; 136 141 unsigned long symoffs, stroffs; 137 142 struct _ddebug *debug; 138 143 unsigned int num_debug; ··· 403 410 return fsa.sym; 404 411 } 405 412 406 - DEBUGP("Failed to find symbol %s\n", name); 413 + pr_debug("Failed to find symbol %s\n", name); 407 414 return NULL; 408 415 } 409 416 EXPORT_SYMBOL_GPL(find_symbol); ··· 593 600 594 601 list_for_each_entry(use, &b->source_list, source_list) { 595 602 if (use->source == a) { 596 - DEBUGP("%s uses %s!\n", a->name, b->name); 603 + pr_debug("%s uses %s!\n", a->name, b->name); 597 604 return 1; 598 605 } 599 606 } 600 - DEBUGP("%s does not use %s!\n", a->name, b->name); 607 + pr_debug("%s does not use %s!\n", a->name, b->name); 601 608 return 0; 602 609 } 603 610 ··· 612 619 { 613 620 struct module_use *use; 614 621 615 - DEBUGP("Allocating new usage for %s.\n", a->name); 622 + pr_debug("Allocating new usage for %s.\n", a->name); 616 623 use = kmalloc(sizeof(*use), GFP_ATOMIC); 617 624 if (!use) { 618 625 printk(KERN_WARNING "%s: out of memory loading\n", a->name); ··· 656 663 mutex_lock(&module_mutex); 657 664 list_for_each_entry_safe(use, tmp, &mod->target_list, target_list) { 658 665 struct module *i = use->target; 659 - DEBUGP("%s unusing %s\n", mod->name, i->name); 666 + pr_debug("%s unusing %s\n", mod->name, i->name); 660 667 module_put(i); 661 668 list_del(&use->source_list); 662 669 list_del(&use->target_list); ··· 719 726 } 720 727 } 721 728 722 - unsigned int module_refcount(struct module *mod) 729 + unsigned long module_refcount(struct module *mod) 723 730 { 724 - unsigned int incs = 0, decs = 0; 731 + unsigned long incs = 0, decs = 0; 725 732 int cpu; 726 733 727 734 for_each_possible_cpu(cpu) ··· 754 761 /* Since we might sleep for some time, release the mutex first */ 755 762 mutex_unlock(&module_mutex); 756 763 for (;;) { 757 - DEBUGP("Looking at refcount...\n"); 764 + pr_debug("Looking at refcount...\n"); 758 765 set_current_state(TASK_UNINTERRUPTIBLE); 759 766 if (module_refcount(mod) == 0) 760 767 break; ··· 797 804 if (mod->state != MODULE_STATE_LIVE) { 798 805 /* FIXME: if (force), slam module count and wake up 799 806 waiter --RR */ 800 - DEBUGP("%s already dying\n", mod->name); 807 + pr_debug("%s already dying\n", mod->name); 801 808 ret = -EBUSY; 802 809 goto out; 803 810 } ··· 842 849 return ret; 843 850 } 844 851 852 + static size_t module_flags_taint(struct module *mod, char *buf) 853 + { 854 + size_t l = 0; 855 + 856 + if (mod->taints & (1 << TAINT_PROPRIETARY_MODULE)) 857 + buf[l++] = 'P'; 858 + if (mod->taints & (1 << TAINT_OOT_MODULE)) 859 + buf[l++] = 'O'; 860 + if (mod->taints & (1 << TAINT_FORCED_MODULE)) 861 + buf[l++] = 'F'; 862 + if (mod->taints & (1 << TAINT_CRAP)) 863 + buf[l++] = 'C'; 864 + /* 865 + * TAINT_FORCED_RMMOD: could be added. 866 + * TAINT_UNSAFE_SMP, TAINT_MACHINE_CHECK, TAINT_BAD_PAGE don't 867 + * apply to modules. 868 + */ 869 + return l; 870 + } 871 + 845 872 static inline void print_unload_info(struct seq_file *m, struct module *mod) 846 873 { 847 874 struct module_use *use; 848 875 int printed_something = 0; 849 876 850 - seq_printf(m, " %u ", module_refcount(mod)); 877 + seq_printf(m, " %lu ", module_refcount(mod)); 851 878 852 879 /* Always include a trailing , so userspace can differentiate 853 880 between this and the old multi-field proc format. */ ··· 917 904 static ssize_t show_refcnt(struct module_attribute *mattr, 918 905 struct module_kobject *mk, char *buffer) 919 906 { 920 - return sprintf(buffer, "%u\n", module_refcount(mk->mod)); 907 + return sprintf(buffer, "%lu\n", module_refcount(mk->mod)); 921 908 } 922 909 923 - static struct module_attribute refcnt = { 924 - .attr = { .name = "refcnt", .mode = 0444 }, 925 - .show = show_refcnt, 926 - }; 910 + static struct module_attribute modinfo_refcnt = 911 + __ATTR(refcnt, 0444, show_refcnt, NULL); 927 912 928 913 void module_put(struct module *module) 929 914 { ··· 981 970 return sprintf(buffer, "%s\n", state); 982 971 } 983 972 984 - static struct module_attribute initstate = { 985 - .attr = { .name = "initstate", .mode = 0444 }, 986 - .show = show_initstate, 987 - }; 973 + static struct module_attribute modinfo_initstate = 974 + __ATTR(initstate, 0444, show_initstate, NULL); 988 975 989 976 static ssize_t store_uevent(struct module_attribute *mattr, 990 977 struct module_kobject *mk, ··· 995 986 return count; 996 987 } 997 988 998 - struct module_attribute module_uevent = { 999 - .attr = { .name = "uevent", .mode = 0200 }, 1000 - .store = store_uevent, 1001 - }; 989 + struct module_attribute module_uevent = 990 + __ATTR(uevent, 0200, NULL, store_uevent); 991 + 992 + static ssize_t show_coresize(struct module_attribute *mattr, 993 + struct module_kobject *mk, char *buffer) 994 + { 995 + return sprintf(buffer, "%u\n", mk->mod->core_size); 996 + } 997 + 998 + static struct module_attribute modinfo_coresize = 999 + __ATTR(coresize, 0444, show_coresize, NULL); 1000 + 1001 + static ssize_t show_initsize(struct module_attribute *mattr, 1002 + struct module_kobject *mk, char *buffer) 1003 + { 1004 + return sprintf(buffer, "%u\n", mk->mod->init_size); 1005 + } 1006 + 1007 + static struct module_attribute modinfo_initsize = 1008 + __ATTR(initsize, 0444, show_initsize, NULL); 1009 + 1010 + static ssize_t show_taint(struct module_attribute *mattr, 1011 + struct module_kobject *mk, char *buffer) 1012 + { 1013 + size_t l; 1014 + 1015 + l = module_flags_taint(mk->mod, buffer); 1016 + buffer[l++] = '\n'; 1017 + return l; 1018 + } 1019 + 1020 + static struct module_attribute modinfo_taint = 1021 + __ATTR(taint, 0444, show_taint, NULL); 1002 1022 1003 1023 static struct module_attribute *modinfo_attrs[] = { 1024 + &module_uevent, 1004 1025 &modinfo_version, 1005 1026 &modinfo_srcversion, 1006 - &initstate, 1007 - &module_uevent, 1027 + &modinfo_initstate, 1028 + &modinfo_coresize, 1029 + &modinfo_initsize, 1030 + &modinfo_taint, 1008 1031 #ifdef CONFIG_MODULE_UNLOAD 1009 - &refcnt, 1032 + &modinfo_refcnt, 1010 1033 #endif 1011 1034 NULL, 1012 1035 }; ··· 1098 1057 1099 1058 if (versions[i].crc == maybe_relocated(*crc, crc_owner)) 1100 1059 return 1; 1101 - DEBUGP("Found checksum %lX vs module %lX\n", 1060 + pr_debug("Found checksum %lX vs module %lX\n", 1102 1061 maybe_relocated(*crc, crc_owner), versions[i].crc); 1103 1062 goto bad_version; 1104 1063 } ··· 1875 1834 case SHN_COMMON: 1876 1835 /* We compiled with -fno-common. These are not 1877 1836 supposed to happen. */ 1878 - DEBUGP("Common symbol: %s\n", name); 1837 + pr_debug("Common symbol: %s\n", name); 1879 1838 printk("%s: please compile with -fno-common\n", 1880 1839 mod->name); 1881 1840 ret = -ENOEXEC; ··· 1883 1842 1884 1843 case SHN_ABS: 1885 1844 /* Don't need to do anything */ 1886 - DEBUGP("Absolute symbol: 0x%08lx\n", 1845 + pr_debug("Absolute symbol: 0x%08lx\n", 1887 1846 (long)sym[i].st_value); 1888 1847 break; 1889 1848 ··· 2007 1966 for (i = 0; i < info->hdr->e_shnum; i++) 2008 1967 info->sechdrs[i].sh_entsize = ~0UL; 2009 1968 2010 - DEBUGP("Core section allocation order:\n"); 1969 + pr_debug("Core section allocation order:\n"); 2011 1970 for (m = 0; m < ARRAY_SIZE(masks); ++m) { 2012 1971 for (i = 0; i < info->hdr->e_shnum; ++i) { 2013 1972 Elf_Shdr *s = &info->sechdrs[i]; ··· 2019 1978 || strstarts(sname, ".init")) 2020 1979 continue; 2021 1980 s->sh_entsize = get_offset(mod, &mod->core_size, s, i); 2022 - DEBUGP("\t%s\n", name); 1981 + pr_debug("\t%s\n", sname); 2023 1982 } 2024 1983 switch (m) { 2025 1984 case 0: /* executable */ ··· 2036 1995 } 2037 1996 } 2038 1997 2039 - DEBUGP("Init section allocation order:\n"); 1998 + pr_debug("Init section allocation order:\n"); 2040 1999 for (m = 0; m < ARRAY_SIZE(masks); ++m) { 2041 2000 for (i = 0; i < info->hdr->e_shnum; ++i) { 2042 2001 Elf_Shdr *s = &info->sechdrs[i]; ··· 2049 2008 continue; 2050 2009 s->sh_entsize = (get_offset(mod, &mod->init_size, s, i) 2051 2010 | INIT_OFFSET_MASK); 2052 - DEBUGP("\t%s\n", sname); 2011 + pr_debug("\t%s\n", sname); 2053 2012 } 2054 2013 switch (m) { 2055 2014 case 0: /* executable */ ··· 2219 2178 return true; 2220 2179 } 2221 2180 2181 + /* 2182 + * We only allocate and copy the strings needed by the parts of symtab 2183 + * we keep. This is simple, but has the effect of making multiple 2184 + * copies of duplicates. We could be more sophisticated, see 2185 + * linux-kernel thread starting with 2186 + * <73defb5e4bca04a6431392cc341112b1@localhost>. 2187 + */ 2222 2188 static void layout_symtab(struct module *mod, struct load_info *info) 2223 2189 { 2224 2190 Elf_Shdr *symsect = info->sechdrs + info->index.sym; 2225 2191 Elf_Shdr *strsect = info->sechdrs + info->index.str; 2226 2192 const Elf_Sym *src; 2227 - unsigned int i, nsrc, ndst; 2193 + unsigned int i, nsrc, ndst, strtab_size; 2228 2194 2229 2195 /* Put symbol section at end of init part of module. */ 2230 2196 symsect->sh_flags |= SHF_ALLOC; 2231 2197 symsect->sh_entsize = get_offset(mod, &mod->init_size, symsect, 2232 2198 info->index.sym) | INIT_OFFSET_MASK; 2233 - DEBUGP("\t%s\n", info->secstrings + symsect->sh_name); 2199 + pr_debug("\t%s\n", info->secstrings + symsect->sh_name); 2234 2200 2235 2201 src = (void *)info->hdr + symsect->sh_offset; 2236 2202 nsrc = symsect->sh_size / sizeof(*src); 2237 - for (ndst = i = 1; i < nsrc; ++i, ++src) 2238 - if (is_core_symbol(src, info->sechdrs, info->hdr->e_shnum)) { 2239 - unsigned int j = src->st_name; 2240 2203 2241 - while (!__test_and_set_bit(j, info->strmap) 2242 - && info->strtab[j]) 2243 - ++j; 2244 - ++ndst; 2204 + /* Compute total space required for the core symbols' strtab. */ 2205 + for (ndst = i = strtab_size = 1; i < nsrc; ++i, ++src) 2206 + if (is_core_symbol(src, info->sechdrs, info->hdr->e_shnum)) { 2207 + strtab_size += strlen(&info->strtab[src->st_name]) + 1; 2208 + ndst++; 2245 2209 } 2246 2210 2247 2211 /* Append room for core symbols at end of core part. */ 2248 2212 info->symoffs = ALIGN(mod->core_size, symsect->sh_addralign ?: 1); 2249 - mod->core_size = info->symoffs + ndst * sizeof(Elf_Sym); 2213 + info->stroffs = mod->core_size = info->symoffs + ndst * sizeof(Elf_Sym); 2214 + mod->core_size += strtab_size; 2250 2215 2251 2216 /* Put string table section at end of init part of module. */ 2252 2217 strsect->sh_flags |= SHF_ALLOC; 2253 2218 strsect->sh_entsize = get_offset(mod, &mod->init_size, strsect, 2254 2219 info->index.str) | INIT_OFFSET_MASK; 2255 - DEBUGP("\t%s\n", info->secstrings + strsect->sh_name); 2256 - 2257 - /* Append room for core symbols' strings at end of core part. */ 2258 - info->stroffs = mod->core_size; 2259 - __set_bit(0, info->strmap); 2260 - mod->core_size += bitmap_weight(info->strmap, strsect->sh_size); 2220 + pr_debug("\t%s\n", info->secstrings + strsect->sh_name); 2261 2221 } 2262 2222 2263 2223 static void add_kallsyms(struct module *mod, const struct load_info *info) ··· 2279 2237 mod->symtab[i].st_info = elf_type(&mod->symtab[i], info); 2280 2238 2281 2239 mod->core_symtab = dst = mod->module_core + info->symoffs; 2240 + mod->core_strtab = s = mod->module_core + info->stroffs; 2282 2241 src = mod->symtab; 2283 2242 *dst = *src; 2243 + *s++ = 0; 2284 2244 for (ndst = i = 1; i < mod->num_symtab; ++i, ++src) { 2285 2245 if (!is_core_symbol(src, info->sechdrs, info->hdr->e_shnum)) 2286 2246 continue; 2247 + 2287 2248 dst[ndst] = *src; 2288 - dst[ndst].st_name = bitmap_weight(info->strmap, 2289 - dst[ndst].st_name); 2290 - ++ndst; 2249 + dst[ndst++].st_name = s - mod->core_strtab; 2250 + s += strlcpy(s, &mod->strtab[src->st_name], KSYM_NAME_LEN) + 1; 2291 2251 } 2292 2252 mod->core_num_syms = ndst; 2293 - 2294 - mod->core_strtab = s = mod->module_core + info->stroffs; 2295 - for (*s = 0, i = 1; i < info->sechdrs[info->index.str].sh_size; ++i) 2296 - if (test_bit(i, info->strmap)) 2297 - *++s = mod->strtab[i]; 2298 2253 } 2299 2254 #else 2300 2255 static inline void layout_symtab(struct module *mod, struct load_info *info) ··· 2660 2621 mod->module_init = ptr; 2661 2622 2662 2623 /* Transfer each section which specifies SHF_ALLOC */ 2663 - DEBUGP("final section addresses:\n"); 2624 + pr_debug("final section addresses:\n"); 2664 2625 for (i = 0; i < info->hdr->e_shnum; i++) { 2665 2626 void *dest; 2666 2627 Elf_Shdr *shdr = &info->sechdrs[i]; ··· 2678 2639 memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size); 2679 2640 /* Update sh_addr to point to copy in image. */ 2680 2641 shdr->sh_addr = (unsigned long)dest; 2681 - DEBUGP("\t0x%lx %s\n", 2682 - shdr->sh_addr, info->secstrings + shdr->sh_name); 2642 + pr_debug("\t0x%lx %s\n", 2643 + (long)shdr->sh_addr, info->secstrings + shdr->sh_name); 2683 2644 } 2684 2645 2685 2646 return 0; ··· 2781 2742 this is done generically; there doesn't appear to be any 2782 2743 special cases for the architectures. */ 2783 2744 layout_sections(mod, info); 2784 - 2785 - info->strmap = kzalloc(BITS_TO_LONGS(info->sechdrs[info->index.str].sh_size) 2786 - * sizeof(long), GFP_KERNEL); 2787 - if (!info->strmap) { 2788 - err = -ENOMEM; 2789 - goto free_percpu; 2790 - } 2791 2745 layout_symtab(mod, info); 2792 2746 2793 2747 /* Allocate and move to the final place */ 2794 2748 err = move_module(mod, info); 2795 2749 if (err) 2796 - goto free_strmap; 2750 + goto free_percpu; 2797 2751 2798 2752 /* Module has been copied to its final place now: return it. */ 2799 2753 mod = (void *)info->sechdrs[info->index.mod].sh_addr; 2800 2754 kmemleak_load_module(mod, info); 2801 2755 return mod; 2802 2756 2803 - free_strmap: 2804 - kfree(info->strmap); 2805 2757 free_percpu: 2806 2758 percpu_modfree(mod); 2807 2759 out: ··· 2802 2772 /* mod is no longer valid after this! */ 2803 2773 static void module_deallocate(struct module *mod, struct load_info *info) 2804 2774 { 2805 - kfree(info->strmap); 2806 2775 percpu_modfree(mod); 2807 2776 module_free(mod, mod->module_init); 2808 2777 module_free(mod, mod->module_core); ··· 2840 2811 struct module *mod; 2841 2812 long err; 2842 2813 2843 - DEBUGP("load_module: umod=%p, len=%lu, uargs=%p\n", 2814 + pr_debug("load_module: umod=%p, len=%lu, uargs=%p\n", 2844 2815 umod, len, uargs); 2845 2816 2846 2817 /* Copy in the blobs from userspace, check they are vaguely sane. */ ··· 2931 2902 if (err < 0) 2932 2903 goto unlink; 2933 2904 2934 - /* Get rid of temporary copy and strmap. */ 2935 - kfree(info.strmap); 2905 + /* Get rid of temporary copy. */ 2936 2906 free_copy(&info); 2937 2907 2938 2908 /* Done! */ ··· 3284 3256 mod->state == MODULE_STATE_GOING || 3285 3257 mod->state == MODULE_STATE_COMING) { 3286 3258 buf[bx++] = '('; 3287 - if (mod->taints & (1 << TAINT_PROPRIETARY_MODULE)) 3288 - buf[bx++] = 'P'; 3289 - else if (mod->taints & (1 << TAINT_OOT_MODULE)) 3290 - buf[bx++] = 'O'; 3291 - if (mod->taints & (1 << TAINT_FORCED_MODULE)) 3292 - buf[bx++] = 'F'; 3293 - if (mod->taints & (1 << TAINT_CRAP)) 3294 - buf[bx++] = 'C'; 3295 - /* 3296 - * TAINT_FORCED_RMMOD: could be added. 3297 - * TAINT_UNSAFE_SMP, TAINT_MACHINE_CHECK, TAINT_BAD_PAGE don't 3298 - * apply to modules. 3299 - */ 3300 - 3259 + bx += module_flags_taint(mod, buf + bx); 3301 3260 /* Show a - for module-is-being-unloaded */ 3302 3261 if (mod->state == MODULE_STATE_GOING) 3303 3262 buf[bx++] = '-';
+28 -10
kernel/params.c
··· 25 25 #include <linux/slab.h> 26 26 #include <linux/ctype.h> 27 27 28 - #if 0 29 - #define DEBUGP printk 30 - #else 31 - #define DEBUGP(fmt, a...) 32 - #endif 33 - 34 28 /* Protects all parameters, and incidentally kmalloced_param list. */ 35 29 static DEFINE_MUTEX(param_lock); 36 30 ··· 99 105 /* No one handled NULL, so do it here. */ 100 106 if (!val && params[i].ops->set != param_set_bool) 101 107 return -EINVAL; 102 - DEBUGP("They are equal! Calling %p\n", 108 + pr_debug("They are equal! Calling %p\n", 103 109 params[i].ops->set); 104 110 mutex_lock(&param_lock); 105 111 err = params[i].ops->set(val, &params[i]); ··· 109 115 } 110 116 111 117 if (handle_unknown) { 112 - DEBUGP("Unknown argument: calling %p\n", handle_unknown); 118 + pr_debug("Unknown argument: calling %p\n", handle_unknown); 113 119 return handle_unknown(param, val); 114 120 } 115 121 116 - DEBUGP("Unknown argument `%s'\n", param); 122 + pr_debug("Unknown argument `%s'\n", param); 117 123 return -ENOENT; 118 124 } 119 125 ··· 178 184 { 179 185 char *param, *val; 180 186 181 - DEBUGP("Parsing ARGS: %s\n", args); 187 + pr_debug("Parsing ARGS: %s\n", args); 182 188 183 189 /* Chew leading spaces */ 184 190 args = skip_spaces(args); ··· 362 368 .get = param_get_invbool, 363 369 }; 364 370 EXPORT_SYMBOL(param_ops_invbool); 371 + 372 + int param_set_bint(const char *val, const struct kernel_param *kp) 373 + { 374 + struct kernel_param boolkp; 375 + bool v; 376 + int ret; 377 + 378 + /* Match bool exactly, by re-using it. */ 379 + boolkp = *kp; 380 + boolkp.arg = &v; 381 + boolkp.flags |= KPARAM_ISBOOL; 382 + 383 + ret = param_set_bool(val, &boolkp); 384 + if (ret == 0) 385 + *(int *)kp->arg = v; 386 + return ret; 387 + } 388 + EXPORT_SYMBOL(param_set_bint); 389 + 390 + struct kernel_param_ops param_ops_bint = { 391 + .set = param_set_bint, 392 + .get = param_get_int, 393 + }; 394 + EXPORT_SYMBOL(param_ops_bint); 365 395 366 396 /* We break the rule and mangle the string. */ 367 397 static int param_array(const char *name,
+5 -5
kernel/printk.c
··· 521 521 } 522 522 } 523 523 524 - static int __read_mostly ignore_loglevel; 524 + static bool __read_mostly ignore_loglevel; 525 525 526 526 static int __init ignore_loglevel_setup(char *str) 527 527 { ··· 532 532 } 533 533 534 534 early_param("ignore_loglevel", ignore_loglevel_setup); 535 - module_param_named(ignore_loglevel, ignore_loglevel, bool, S_IRUGO | S_IWUSR); 535 + module_param(ignore_loglevel, bool, S_IRUGO | S_IWUSR); 536 536 MODULE_PARM_DESC(ignore_loglevel, "ignore loglevel setting, to" 537 537 "print all kernel messages to the console."); 538 538 ··· 696 696 } 697 697 698 698 #if defined(CONFIG_PRINTK_TIME) 699 - static int printk_time = 1; 699 + static bool printk_time = 1; 700 700 #else 701 - static int printk_time = 0; 701 + static bool printk_time = 0; 702 702 #endif 703 703 module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR); 704 704 ··· 1098 1098 return -1; 1099 1099 } 1100 1100 1101 - int console_suspend_enabled = 1; 1101 + bool console_suspend_enabled = 1; 1102 1102 EXPORT_SYMBOL(console_suspend_enabled); 1103 1103 1104 1104 static int __init console_suspend_disable(char *str)
+92 -125
scripts/mod/file2alias.c
··· 28 28 #endif 29 29 30 30 #include <ctype.h> 31 + #include <stdbool.h> 31 32 32 33 typedef uint32_t __u32; 33 34 typedef uint16_t __u16; ··· 38 37 * even potentially has different endianness and word sizes, since 39 38 * we handle those differences explicitly below */ 40 39 #include "../../include/linux/mod_devicetable.h" 40 + 41 + /* This array collects all instances that use the generic do_table */ 42 + struct devtable { 43 + const char *device_id; /* name of table, __mod_<name>_device_table. */ 44 + unsigned long id_size; 45 + void *function; 46 + }; 47 + 48 + /* We construct a table of pointers in an ELF section (pointers generally 49 + * go unpadded by gcc). ld creates boundary syms for us. */ 50 + extern struct devtable *__start___devtable[], *__stop___devtable[]; 51 + #define ___cat(a,b) a ## b 52 + #define __cat(a,b) ___cat(a,b) 53 + 54 + #if __GNUC__ == 3 && __GNUC_MINOR__ < 3 55 + # define __used __attribute__((__unused__)) 56 + #else 57 + # define __used __attribute__((__used__)) 58 + #endif 59 + 60 + /* Add a table entry. We test function type matches while we're here. */ 61 + #define ADD_TO_DEVTABLE(device_id, type, function) \ 62 + static struct devtable __cat(devtable,__LINE__) = { \ 63 + device_id + 0*sizeof((function)((const char *)NULL, \ 64 + (type *)NULL, \ 65 + (char *)NULL)), \ 66 + sizeof(type), (function) }; \ 67 + static struct devtable *__attribute__((section("__devtable"))) \ 68 + __used __cat(devtable_ptr,__LINE__) = &__cat(devtable,__LINE__) 41 69 42 70 #define ADD(str, sep, cond, field) \ 43 71 do { \ ··· 319 289 320 290 return 1; 321 291 } 292 + ADD_TO_DEVTABLE("hid", struct hid_device_id, do_hid_entry); 322 293 323 294 /* Looks like: ieee1394:venNmoNspNverN */ 324 295 static int do_ieee1394_entry(const char *filename, ··· 344 313 add_wildcard(alias); 345 314 return 1; 346 315 } 316 + ADD_TO_DEVTABLE("ieee1394", struct ieee1394_device_id, do_ieee1394_entry); 347 317 348 318 /* Looks like: pci:vNdNsvNsdNbcNscNiN. */ 349 319 static int do_pci_entry(const char *filename, ··· 388 356 add_wildcard(alias); 389 357 return 1; 390 358 } 359 + ADD_TO_DEVTABLE("pci", struct pci_device_id, do_pci_entry); 391 360 392 361 /* looks like: "ccw:tNmNdtNdmN" */ 393 362 static int do_ccw_entry(const char *filename, ··· 412 379 add_wildcard(alias); 413 380 return 1; 414 381 } 382 + ADD_TO_DEVTABLE("ccw", struct ccw_device_id, do_ccw_entry); 415 383 416 384 /* looks like: "ap:tN" */ 417 385 static int do_ap_entry(const char *filename, ··· 421 387 sprintf(alias, "ap:t%02X*", id->dev_type); 422 388 return 1; 423 389 } 390 + ADD_TO_DEVTABLE("ap", struct ap_device_id, do_ap_entry); 424 391 425 392 /* looks like: "css:tN" */ 426 393 static int do_css_entry(const char *filename, ··· 430 395 sprintf(alias, "css:t%01X", id->type); 431 396 return 1; 432 397 } 398 + ADD_TO_DEVTABLE("css", struct css_device_id, do_css_entry); 433 399 434 400 /* Looks like: "serio:tyNprNidNexN" */ 435 401 static int do_serio_entry(const char *filename, ··· 450 414 add_wildcard(alias); 451 415 return 1; 452 416 } 417 + ADD_TO_DEVTABLE("serio", struct serio_device_id, do_serio_entry); 453 418 454 419 /* looks like: "acpi:ACPI0003 or acpi:PNP0C0B" or "acpi:LNXVIDEO" */ 455 420 static int do_acpi_entry(const char *filename, ··· 459 422 sprintf(alias, "acpi*:%s:*", id->id); 460 423 return 1; 461 424 } 425 + ADD_TO_DEVTABLE("acpi", struct acpi_device_id, do_acpi_entry); 462 426 463 427 /* looks like: "pnp:dD" */ 464 428 static void do_pnp_device_entry(void *symval, unsigned long size, ··· 582 544 add_wildcard(alias); 583 545 return 1; 584 546 } 585 - 586 - 547 + ADD_TO_DEVTABLE("pcmcia", struct pcmcia_device_id, do_pcmcia_entry); 587 548 588 549 static int do_of_entry (const char *filename, struct of_device_id *of, char *alias) 589 550 { ··· 605 568 add_wildcard(alias); 606 569 return 1; 607 570 } 571 + ADD_TO_DEVTABLE("of", struct of_device_id, do_of_entry); 608 572 609 573 static int do_vio_entry(const char *filename, struct vio_device_id *vio, 610 574 char *alias) ··· 623 585 add_wildcard(alias); 624 586 return 1; 625 587 } 588 + ADD_TO_DEVTABLE("vio", struct vio_device_id, do_vio_entry); 626 589 627 590 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 628 591 ··· 679 640 do_input(alias, id->swbit, 0, INPUT_DEVICE_ID_SW_MAX); 680 641 return 1; 681 642 } 643 + ADD_TO_DEVTABLE("input", struct input_device_id, do_input_entry); 682 644 683 645 static int do_eisa_entry(const char *filename, struct eisa_device_id *eisa, 684 646 char *alias) ··· 690 650 strcat(alias, "*"); 691 651 return 1; 692 652 } 653 + ADD_TO_DEVTABLE("eisa", struct eisa_device_id, do_eisa_entry); 693 654 694 655 /* Looks like: parisc:tNhvNrevNsvN */ 695 656 static int do_parisc_entry(const char *filename, struct parisc_device_id *id, ··· 710 669 add_wildcard(alias); 711 670 return 1; 712 671 } 672 + ADD_TO_DEVTABLE("parisc", struct parisc_device_id, do_parisc_entry); 713 673 714 674 /* Looks like: sdio:cNvNdN. */ 715 675 static int do_sdio_entry(const char *filename, ··· 727 685 add_wildcard(alias); 728 686 return 1; 729 687 } 688 + ADD_TO_DEVTABLE("sdio", struct sdio_device_id, do_sdio_entry); 730 689 731 690 /* Looks like: ssb:vNidNrevN. */ 732 691 static int do_ssb_entry(const char *filename, ··· 744 701 add_wildcard(alias); 745 702 return 1; 746 703 } 704 + ADD_TO_DEVTABLE("ssb", struct ssb_device_id, do_ssb_entry); 747 705 748 706 /* Looks like: bcma:mNidNrevNclN. */ 749 707 static int do_bcma_entry(const char *filename, ··· 763 719 add_wildcard(alias); 764 720 return 1; 765 721 } 722 + ADD_TO_DEVTABLE("bcma", struct bcma_device_id, do_bcma_entry); 766 723 767 724 /* Looks like: virtio:dNvN */ 768 725 static int do_virtio_entry(const char *filename, struct virtio_device_id *id, ··· 779 734 add_wildcard(alias); 780 735 return 1; 781 736 } 737 + ADD_TO_DEVTABLE("virtio", struct virtio_device_id, do_virtio_entry); 782 738 783 739 /* 784 740 * Looks like: vmbus:guid ··· 801 755 802 756 return 1; 803 757 } 758 + ADD_TO_DEVTABLE("vmbus", struct hv_vmbus_device_id, do_vmbus_entry); 804 759 805 760 /* Looks like: i2c:S */ 806 761 static int do_i2c_entry(const char *filename, struct i2c_device_id *id, ··· 811 764 812 765 return 1; 813 766 } 767 + ADD_TO_DEVTABLE("i2c", struct i2c_device_id, do_i2c_entry); 814 768 815 769 /* Looks like: spi:S */ 816 770 static int do_spi_entry(const char *filename, struct spi_device_id *id, ··· 821 773 822 774 return 1; 823 775 } 776 + ADD_TO_DEVTABLE("spi", struct spi_device_id, do_spi_entry); 824 777 825 778 /* Looks like: mcp:S */ 826 779 static int do_mcp_entry(const char *filename, struct mcp_device_id *id, ··· 831 782 832 783 return 1; 833 784 } 785 + ADD_TO_DEVTABLE("mcp", struct mcp_device_id, do_mcp_entry); 834 786 835 787 static const struct dmifield { 836 788 const char *prefix; ··· 886 836 strcat(alias, ":"); 887 837 return 1; 888 838 } 839 + ADD_TO_DEVTABLE("dmi", struct dmi_system_id, do_dmi_entry); 889 840 890 841 static int do_platform_entry(const char *filename, 891 842 struct platform_device_id *id, char *alias) ··· 894 843 sprintf(alias, PLATFORM_MODULE_PREFIX "%s", id->name); 895 844 return 1; 896 845 } 846 + ADD_TO_DEVTABLE("platform", struct platform_device_id, do_platform_entry); 897 847 898 848 static int do_mdio_entry(const char *filename, 899 849 struct mdio_device_id *id, char *alias) ··· 917 865 918 866 return 1; 919 867 } 868 + ADD_TO_DEVTABLE("mdio", struct mdio_device_id, do_mdio_entry); 920 869 921 870 /* Looks like: zorro:iN. */ 922 871 static int do_zorro_entry(const char *filename, struct zorro_device_id *id, ··· 928 875 ADD(alias, "i", id->id != ZORRO_WILDCARD, id->id); 929 876 return 1; 930 877 } 878 + ADD_TO_DEVTABLE("zorro", struct zorro_device_id, do_zorro_entry); 931 879 932 880 /* looks like: "pnp:dD" */ 933 881 static int do_isapnp_entry(const char *filename, ··· 942 888 (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); 943 889 return 1; 944 890 } 891 + ADD_TO_DEVTABLE("isa", struct isapnp_device_id, do_isapnp_entry); 945 892 946 893 /* 947 894 * Append a match expression for a single masked hex digit. ··· 1011 956 1012 957 return 1; 1013 958 } 959 + ADD_TO_DEVTABLE("amba", struct amba_id, do_amba_entry); 1014 960 1015 - /* Ignore any prefix, eg. some architectures prepend _ */ 1016 - static inline int sym_is(const char *symbol, const char *name) 961 + /* Does namelen bytes of name exactly match the symbol? */ 962 + static bool sym_is(const char *name, unsigned namelen, const char *symbol) 1017 963 { 1018 - const char *match; 964 + if (namelen != strlen(symbol)) 965 + return false; 1019 966 1020 - match = strstr(symbol, name); 1021 - if (!match) 1022 - return 0; 1023 - return match[strlen(name)] == '\0'; 967 + return memcmp(name, symbol, namelen) == 0; 1024 968 } 1025 969 1026 970 static void do_table(void *symval, unsigned long size, ··· 1052 998 { 1053 999 void *symval; 1054 1000 char *zeros = NULL; 1001 + const char *name; 1002 + unsigned int namelen; 1055 1003 1056 1004 /* We're looking for a section relative symbol */ 1057 1005 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) 1058 1006 return; 1007 + 1008 + /* All our symbols are of form <prefix>__mod_XXX_device_table. */ 1009 + name = strstr(symname, "__mod_"); 1010 + if (!name) 1011 + return; 1012 + name += strlen("__mod_"); 1013 + namelen = strlen(name); 1014 + if (namelen < strlen("_device_table")) 1015 + return; 1016 + if (strcmp(name + namelen - strlen("_device_table"), "_device_table")) 1017 + return; 1018 + namelen -= strlen("_device_table"); 1059 1019 1060 1020 /* Handle all-NULL symbols allocated into .bss */ 1061 1021 if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { ··· 1081 1013 + sym->st_value; 1082 1014 } 1083 1015 1084 - if (sym_is(symname, "__mod_pci_device_table")) 1085 - do_table(symval, sym->st_size, 1086 - sizeof(struct pci_device_id), "pci", 1087 - do_pci_entry, mod); 1088 - else if (sym_is(symname, "__mod_usb_device_table")) 1089 - /* special case to handle bcdDevice ranges */ 1016 + /* First handle the "special" cases */ 1017 + if (sym_is(name, namelen, "usb")) 1090 1018 do_usb_table(symval, sym->st_size, mod); 1091 - else if (sym_is(symname, "__mod_hid_device_table")) 1092 - do_table(symval, sym->st_size, 1093 - sizeof(struct hid_device_id), "hid", 1094 - do_hid_entry, mod); 1095 - else if (sym_is(symname, "__mod_ieee1394_device_table")) 1096 - do_table(symval, sym->st_size, 1097 - sizeof(struct ieee1394_device_id), "ieee1394", 1098 - do_ieee1394_entry, mod); 1099 - else if (sym_is(symname, "__mod_ccw_device_table")) 1100 - do_table(symval, sym->st_size, 1101 - sizeof(struct ccw_device_id), "ccw", 1102 - do_ccw_entry, mod); 1103 - else if (sym_is(symname, "__mod_ap_device_table")) 1104 - do_table(symval, sym->st_size, 1105 - sizeof(struct ap_device_id), "ap", 1106 - do_ap_entry, mod); 1107 - else if (sym_is(symname, "__mod_css_device_table")) 1108 - do_table(symval, sym->st_size, 1109 - sizeof(struct css_device_id), "css", 1110 - do_css_entry, mod); 1111 - else if (sym_is(symname, "__mod_serio_device_table")) 1112 - do_table(symval, sym->st_size, 1113 - sizeof(struct serio_device_id), "serio", 1114 - do_serio_entry, mod); 1115 - else if (sym_is(symname, "__mod_acpi_device_table")) 1116 - do_table(symval, sym->st_size, 1117 - sizeof(struct acpi_device_id), "acpi", 1118 - do_acpi_entry, mod); 1119 - else if (sym_is(symname, "__mod_pnp_device_table")) 1019 + else if (sym_is(name, namelen, "pnp")) 1120 1020 do_pnp_device_entry(symval, sym->st_size, mod); 1121 - else if (sym_is(symname, "__mod_pnp_card_device_table")) 1021 + else if (sym_is(name, namelen, "pnp_card")) 1122 1022 do_pnp_card_entries(symval, sym->st_size, mod); 1123 - else if (sym_is(symname, "__mod_pcmcia_device_table")) 1124 - do_table(symval, sym->st_size, 1125 - sizeof(struct pcmcia_device_id), "pcmcia", 1126 - do_pcmcia_entry, mod); 1127 - else if (sym_is(symname, "__mod_of_device_table")) 1128 - do_table(symval, sym->st_size, 1129 - sizeof(struct of_device_id), "of", 1130 - do_of_entry, mod); 1131 - else if (sym_is(symname, "__mod_vio_device_table")) 1132 - do_table(symval, sym->st_size, 1133 - sizeof(struct vio_device_id), "vio", 1134 - do_vio_entry, mod); 1135 - else if (sym_is(symname, "__mod_input_device_table")) 1136 - do_table(symval, sym->st_size, 1137 - sizeof(struct input_device_id), "input", 1138 - do_input_entry, mod); 1139 - else if (sym_is(symname, "__mod_eisa_device_table")) 1140 - do_table(symval, sym->st_size, 1141 - sizeof(struct eisa_device_id), "eisa", 1142 - do_eisa_entry, mod); 1143 - else if (sym_is(symname, "__mod_parisc_device_table")) 1144 - do_table(symval, sym->st_size, 1145 - sizeof(struct parisc_device_id), "parisc", 1146 - do_parisc_entry, mod); 1147 - else if (sym_is(symname, "__mod_sdio_device_table")) 1148 - do_table(symval, sym->st_size, 1149 - sizeof(struct sdio_device_id), "sdio", 1150 - do_sdio_entry, mod); 1151 - else if (sym_is(symname, "__mod_ssb_device_table")) 1152 - do_table(symval, sym->st_size, 1153 - sizeof(struct ssb_device_id), "ssb", 1154 - do_ssb_entry, mod); 1155 - else if (sym_is(symname, "__mod_bcma_device_table")) 1156 - do_table(symval, sym->st_size, 1157 - sizeof(struct bcma_device_id), "bcma", 1158 - do_bcma_entry, mod); 1159 - else if (sym_is(symname, "__mod_virtio_device_table")) 1160 - do_table(symval, sym->st_size, 1161 - sizeof(struct virtio_device_id), "virtio", 1162 - do_virtio_entry, mod); 1163 - else if (sym_is(symname, "__mod_vmbus_device_table")) 1164 - do_table(symval, sym->st_size, 1165 - sizeof(struct hv_vmbus_device_id), "vmbus", 1166 - do_vmbus_entry, mod); 1167 - else if (sym_is(symname, "__mod_i2c_device_table")) 1168 - do_table(symval, sym->st_size, 1169 - sizeof(struct i2c_device_id), "i2c", 1170 - do_i2c_entry, mod); 1171 - else if (sym_is(symname, "__mod_spi_device_table")) 1172 - do_table(symval, sym->st_size, 1173 - sizeof(struct spi_device_id), "spi", 1174 - do_spi_entry, mod); 1175 - else if (sym_is(symname, "__mod_mcp_device_table")) 1176 - do_table(symval, sym->st_size, 1177 - sizeof(struct mcp_device_id), "mcp", 1178 - do_mcp_entry, mod); 1179 - else if (sym_is(symname, "__mod_dmi_device_table")) 1180 - do_table(symval, sym->st_size, 1181 - sizeof(struct dmi_system_id), "dmi", 1182 - do_dmi_entry, mod); 1183 - else if (sym_is(symname, "__mod_platform_device_table")) 1184 - do_table(symval, sym->st_size, 1185 - sizeof(struct platform_device_id), "platform", 1186 - do_platform_entry, mod); 1187 - else if (sym_is(symname, "__mod_mdio_device_table")) 1188 - do_table(symval, sym->st_size, 1189 - sizeof(struct mdio_device_id), "mdio", 1190 - do_mdio_entry, mod); 1191 - else if (sym_is(symname, "__mod_zorro_device_table")) 1192 - do_table(symval, sym->st_size, 1193 - sizeof(struct zorro_device_id), "zorro", 1194 - do_zorro_entry, mod); 1195 - else if (sym_is(symname, "__mod_isapnp_device_table")) 1196 - do_table(symval, sym->st_size, 1197 - sizeof(struct isapnp_device_id), "isa", 1198 - do_isapnp_entry, mod); 1199 - else if (sym_is(symname, "__mod_amba_device_table")) 1200 - do_table(symval, sym->st_size, 1201 - sizeof(struct amba_id), "amba", 1202 - do_amba_entry, mod); 1023 + else { 1024 + struct devtable **p; 1025 + 1026 + for (p = __start___devtable; p < __stop___devtable; p++) { 1027 + if (sym_is(name, namelen, (*p)->device_id)) { 1028 + do_table(symval, sym->st_size, (*p)->id_size, 1029 + (*p)->device_id, (*p)->function, mod); 1030 + break; 1031 + } 1032 + } 1033 + } 1203 1034 free(zeros); 1204 1035 } 1205 1036
+5 -5
security/apparmor/include/apparmor.h
··· 21 21 22 22 /* Control parameters settable through module/boot flags */ 23 23 extern enum audit_mode aa_g_audit; 24 - extern int aa_g_audit_header; 25 - extern int aa_g_debug; 26 - extern int aa_g_lock_policy; 27 - extern int aa_g_logsyscall; 28 - extern int aa_g_paranoid_load; 24 + extern bool aa_g_audit_header; 25 + extern bool aa_g_debug; 26 + extern bool aa_g_lock_policy; 27 + extern bool aa_g_logsyscall; 28 + extern bool aa_g_paranoid_load; 29 29 extern unsigned int aa_g_path_max; 30 30 31 31 /*
+6 -6
security/apparmor/lsm.c
··· 708 708 &aa_g_profile_mode, S_IRUSR | S_IWUSR); 709 709 710 710 /* Debug mode */ 711 - int aa_g_debug; 711 + bool aa_g_debug; 712 712 module_param_named(debug, aa_g_debug, aabool, S_IRUSR | S_IWUSR); 713 713 714 714 /* Audit mode */ ··· 719 719 /* Determines if audit header is included in audited messages. This 720 720 * provides more context if the audit daemon is not running 721 721 */ 722 - int aa_g_audit_header = 1; 722 + bool aa_g_audit_header = 1; 723 723 module_param_named(audit_header, aa_g_audit_header, aabool, 724 724 S_IRUSR | S_IWUSR); 725 725 ··· 727 727 * TODO: add in at boot loading of policy, which is the only way to 728 728 * load policy, if lock_policy is set 729 729 */ 730 - int aa_g_lock_policy; 730 + bool aa_g_lock_policy; 731 731 module_param_named(lock_policy, aa_g_lock_policy, aalockpolicy, 732 732 S_IRUSR | S_IWUSR); 733 733 734 734 /* Syscall logging mode */ 735 - int aa_g_logsyscall; 735 + bool aa_g_logsyscall; 736 736 module_param_named(logsyscall, aa_g_logsyscall, aabool, S_IRUSR | S_IWUSR); 737 737 738 738 /* Maximum pathname length before accesses will start getting rejected */ ··· 742 742 /* Determines how paranoid loading of policy is and how much verification 743 743 * on the loaded policy is done. 744 744 */ 745 - int aa_g_paranoid_load = 1; 745 + bool aa_g_paranoid_load = 1; 746 746 module_param_named(paranoid_load, aa_g_paranoid_load, aabool, 747 747 S_IRUSR | S_IWUSR); 748 748 749 749 /* Boot time disable flag */ 750 - static unsigned int apparmor_enabled = CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE; 750 + static bool apparmor_enabled = CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE; 751 751 module_param_named(enabled, apparmor_enabled, aabool, S_IRUSR); 752 752 753 753 static int __init apparmor_enabled_setup(char *str)
+2 -2
sound/pci/intel8x0.c
··· 95 95 MODULE_PARM_DESC(ac97_quirk, "AC'97 workaround for strange hardware."); 96 96 module_param(buggy_semaphore, bool, 0444); 97 97 MODULE_PARM_DESC(buggy_semaphore, "Enable workaround for hardwares with problematic codec semaphores."); 98 - module_param(buggy_irq, bool, 0444); 98 + module_param(buggy_irq, bint, 0444); 99 99 MODULE_PARM_DESC(buggy_irq, "Enable workaround for buggy interrupts on some motherboards."); 100 100 module_param(xbox, bool, 0444); 101 101 MODULE_PARM_DESC(xbox, "Set to 1 for Xbox, if you have problems with the AC'97 codec detection."); 102 102 module_param(spdif_aclink, int, 0444); 103 103 MODULE_PARM_DESC(spdif_aclink, "S/PDIF over AC-link."); 104 - module_param(inside_vm, bool, 0444); 104 + module_param(inside_vm, bint, 0444); 105 105 MODULE_PARM_DESC(inside_vm, "KVM/Parallels optimization."); 106 106 107 107 /* just for backward compatibility */
+1 -1
virt/kvm/iommu.c
··· 32 32 #include <linux/iommu.h> 33 33 #include <linux/intel-iommu.h> 34 34 35 - static int allow_unsafe_assigned_interrupts; 35 + static bool allow_unsafe_assigned_interrupts; 36 36 module_param_named(allow_unsafe_assigned_interrupts, 37 37 allow_unsafe_assigned_interrupts, bool, S_IRUGO | S_IWUSR); 38 38 MODULE_PARM_DESC(allow_unsafe_assigned_interrupts,