mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
476bc0015b
commit
90ab5ee941
283 changed files with 471 additions and 465 deletions
|
|
@ -379,8 +379,8 @@ extern spinlock_t shca_list_lock;
|
|||
|
||||
extern int ehca_static_rate;
|
||||
extern int ehca_port_act_time;
|
||||
extern int ehca_use_hp_mr;
|
||||
extern int ehca_scaling_code;
|
||||
extern bool ehca_use_hp_mr;
|
||||
extern bool ehca_scaling_code;
|
||||
extern int ehca_lock_hcalls;
|
||||
extern int ehca_nr_ports;
|
||||
extern int ehca_max_cq;
|
||||
|
|
|
|||
|
|
@ -59,16 +59,16 @@ MODULE_AUTHOR("Christoph Raisch <[email protected]>");
|
|||
MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver");
|
||||
MODULE_VERSION(HCAD_VERSION);
|
||||
|
||||
static int ehca_open_aqp1 = 0;
|
||||
static bool ehca_open_aqp1 = 0;
|
||||
static int ehca_hw_level = 0;
|
||||
static int ehca_poll_all_eqs = 1;
|
||||
static bool ehca_poll_all_eqs = 1;
|
||||
|
||||
int ehca_debug_level = 0;
|
||||
int ehca_nr_ports = -1;
|
||||
int ehca_use_hp_mr = 0;
|
||||
bool ehca_use_hp_mr = 0;
|
||||
int ehca_port_act_time = 30;
|
||||
int ehca_static_rate = -1;
|
||||
int ehca_scaling_code = 0;
|
||||
bool ehca_scaling_code = 0;
|
||||
int ehca_lock_hcalls = -1;
|
||||
int ehca_max_cq = -1;
|
||||
int ehca_max_qp = -1;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ unsigned int wqm_quanta = 0x10000;
|
|||
module_param(wqm_quanta, int, 0644);
|
||||
MODULE_PARM_DESC(wqm_quanta, "WQM quanta");
|
||||
|
||||
static unsigned int limit_maxrdreqsz;
|
||||
static bool limit_maxrdreqsz;
|
||||
module_param(limit_maxrdreqsz, bool, 0644);
|
||||
MODULE_PARM_DESC(limit_maxrdreqsz, "Limit max read request size to 256 Bytes");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue