mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -44,7 +44,7 @@ MODULE_LICENSE("GPL");
|
||||
*/
|
||||
|
||||
/* Emit various sounds */
|
||||
static int sound;
|
||||
static bool sound;
|
||||
module_param(sound, bool, 0);
|
||||
MODULE_PARM_DESC(sound, "emit sounds");
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ u8 ACPI_INIT_GLOBAL(acpi_gbl_use_default_register_widths, TRUE);
|
||||
/*
|
||||
* Optionally enable output from the AML Debug Object.
|
||||
*/
|
||||
u32 ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
|
||||
bool ACPI_INIT_GLOBAL(acpi_gbl_enable_aml_debug_object, FALSE);
|
||||
|
||||
/*
|
||||
* Optionally copy the entire DSDT to local memory (instead of simply
|
||||
|
||||
@@ -118,7 +118,7 @@ struct ghes_estatus_cache {
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
int ghes_disable;
|
||||
bool ghes_disable;
|
||||
module_param_named(disable, ghes_disable, bool, 0);
|
||||
|
||||
static int ghes_panic_timeout __read_mostly = 30;
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#define HEST_PFX "HEST: "
|
||||
|
||||
int hest_disable;
|
||||
bool hest_disable;
|
||||
EXPORT_SYMBOL_GPL(hest_disable);
|
||||
|
||||
/* HEST table parsing */
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ MODULE_AUTHOR("Kristen Carlson Accardi");
|
||||
MODULE_DESCRIPTION(ACPI_DOCK_DRIVER_DESCRIPTION);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int immediate_undock = 1;
|
||||
static bool immediate_undock = 1;
|
||||
module_param(immediate_undock, bool, 0644);
|
||||
MODULE_PARM_DESC(immediate_undock, "1 (default) will cause the driver to "
|
||||
"undock immediately when the undock button is pressed, 0 will cause"
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include <acpi/acpi_drivers.h>
|
||||
#include <linux/dmi.h>
|
||||
|
||||
static int debug;
|
||||
static bool debug;
|
||||
static int check_sta_before_sun;
|
||||
|
||||
#define DRIVER_VERSION "0.1"
|
||||
|
||||
@@ -69,21 +69,21 @@ MODULE_AUTHOR("Bruno Ducrot");
|
||||
MODULE_DESCRIPTION("ACPI Video Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int brightness_switch_enabled = 1;
|
||||
static bool brightness_switch_enabled = 1;
|
||||
module_param(brightness_switch_enabled, bool, 0644);
|
||||
|
||||
/*
|
||||
* By default, we don't allow duplicate ACPI video bus devices
|
||||
* under the same VGA controller
|
||||
*/
|
||||
static int allow_duplicates;
|
||||
static bool allow_duplicates;
|
||||
module_param(allow_duplicates, bool, 0644);
|
||||
|
||||
/*
|
||||
* Some BIOSes claim they use minimum backlight at boot,
|
||||
* and this may bring dimming screen after boot
|
||||
*/
|
||||
static int use_bios_initial_backlight = 1;
|
||||
static bool use_bios_initial_backlight = 1;
|
||||
module_param(use_bios_initial_backlight, bool, 0644);
|
||||
|
||||
static int register_count = 0;
|
||||
|
||||
@@ -599,9 +599,9 @@ MODULE_LICENSE("GPL");
|
||||
MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
static int adma_enabled;
|
||||
static int swncq_enabled = 1;
|
||||
static int msi_enabled;
|
||||
static bool adma_enabled;
|
||||
static bool swncq_enabled = 1;
|
||||
static bool msi_enabled;
|
||||
|
||||
static void nv_adma_register_mode(struct ata_port *ap)
|
||||
{
|
||||
|
||||
@@ -417,7 +417,7 @@ static struct ata_port_operations sil24_ops = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static int sata_sil24_msi; /* Disable MSI */
|
||||
static bool sata_sil24_msi; /* Disable MSI */
|
||||
module_param_named(msi, sata_sil24_msi, bool, S_IRUGO);
|
||||
MODULE_PARM_DESC(msi, "Enable MSI (Default: false)");
|
||||
|
||||
|
||||
+3
-3
@@ -112,12 +112,12 @@ static u8 read_prom_byte(struct he_dev *he_dev, int addr);
|
||||
/* globals */
|
||||
|
||||
static struct he_dev *he_devs;
|
||||
static int disable64;
|
||||
static bool disable64;
|
||||
static short nvpibits = -1;
|
||||
static short nvcibits = -1;
|
||||
static short rx_skb_reserve = 16;
|
||||
static int irq_coalesce = 1;
|
||||
static int sdh = 0;
|
||||
static bool irq_coalesce = 1;
|
||||
static bool sdh = 0;
|
||||
|
||||
/* Read from EEPROM = 0000 0011b */
|
||||
static unsigned int readtab[] = {
|
||||
|
||||
@@ -59,8 +59,8 @@
|
||||
|
||||
/* module parameter, defined in drbd_main.c */
|
||||
extern unsigned int minor_count;
|
||||
extern int disable_sendpage;
|
||||
extern int allow_oos;
|
||||
extern bool disable_sendpage;
|
||||
extern bool allow_oos;
|
||||
extern unsigned int cn_idx;
|
||||
|
||||
#ifdef CONFIG_DRBD_FAULT_INJECTION
|
||||
|
||||
@@ -117,8 +117,8 @@ module_param(fault_devs, int, 0644);
|
||||
|
||||
/* module parameter, defined */
|
||||
unsigned int minor_count = DRBD_MINOR_COUNT_DEF;
|
||||
int disable_sendpage;
|
||||
int allow_oos;
|
||||
bool disable_sendpage;
|
||||
bool allow_oos;
|
||||
unsigned int cn_idx = CN_IDX_DRBD;
|
||||
int proc_details; /* Detail level in proc drbd*/
|
||||
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
*/
|
||||
|
||||
|
||||
/* PARAMETERS */
|
||||
static int verbose; /* set this to 1 to see debugging messages and whatnot */
|
||||
|
||||
#define BACKPACK_VERSION "2.0.2"
|
||||
|
||||
#include <linux/module.h>
|
||||
@@ -36,6 +33,8 @@ static int verbose; /* set this to 1 to see debugging messages and whatnot */
|
||||
#include "ppc6lnx.c"
|
||||
#include "paride.h"
|
||||
|
||||
/* PARAMETERS */
|
||||
static bool verbose; /* set this to 1 to see debugging messages and whatnot */
|
||||
|
||||
|
||||
#define PPCSTRUCT(pi) ((Interface *)(pi->private))
|
||||
|
||||
@@ -124,8 +124,9 @@
|
||||
by default.
|
||||
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PD_MAJOR;
|
||||
static char *name = PD_NAME;
|
||||
static int cluster = 64;
|
||||
|
||||
@@ -118,13 +118,15 @@
|
||||
#define PF_NAME "pf"
|
||||
#define PF_UNITS 4
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is off
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PF_MAJOR;
|
||||
static char *name = PF_NAME;
|
||||
static int cluster = 64;
|
||||
|
||||
@@ -130,13 +130,14 @@
|
||||
#define PI_PG 4
|
||||
#endif
|
||||
|
||||
#include <linux/types.h>
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is 0
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PG_MAJOR;
|
||||
static char *name = PG_NAME;
|
||||
static int disable = 0;
|
||||
|
||||
@@ -109,13 +109,15 @@
|
||||
#define PT_NAME "pt"
|
||||
#define PT_UNITS 4
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Here are things one can override from the insmod command.
|
||||
Most are autoprobed by paride unless set here. Verbose is on
|
||||
by default.
|
||||
|
||||
*/
|
||||
|
||||
static int verbose = 0;
|
||||
static bool verbose = 0;
|
||||
static int major = PT_MAJOR;
|
||||
static char *name = PT_NAME;
|
||||
static int disable = 0;
|
||||
|
||||
+1
-1
@@ -148,7 +148,7 @@ static volatile int xdc_busy;
|
||||
static struct timer_list xd_watchdog_int;
|
||||
|
||||
static volatile u_char xd_error;
|
||||
static int nodma = XD_DONT_USE_DMA;
|
||||
static bool nodma = XD_DONT_USE_DMA;
|
||||
|
||||
static struct request_queue *xd_queue;
|
||||
|
||||
|
||||
@@ -37,13 +37,13 @@
|
||||
|
||||
#define VERSION "0.6"
|
||||
|
||||
static int ignore_dga;
|
||||
static int ignore_csr;
|
||||
static int ignore_sniffer;
|
||||
static int disable_scofix;
|
||||
static int force_scofix;
|
||||
static bool ignore_dga;
|
||||
static bool ignore_csr;
|
||||
static bool ignore_sniffer;
|
||||
static bool disable_scofix;
|
||||
static bool force_scofix;
|
||||
|
||||
static int reset = 1;
|
||||
static bool reset = 1;
|
||||
|
||||
static struct usb_driver btusb_driver;
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
|
||||
#define VERSION "0.3"
|
||||
|
||||
static int txcrc = 1;
|
||||
static int hciextn = 1;
|
||||
static bool txcrc = 1;
|
||||
static bool hciextn = 1;
|
||||
|
||||
#define BCSP_TXWINSIZE 4
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user