diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/infiniband/hw/ehca | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/infiniband/hw/ehca')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_classes.h | 4 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_main.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h index aaf6023a4835..f08f6eaf3fa8 100644 --- a/drivers/infiniband/hw/ehca/ehca_classes.h +++ b/drivers/infiniband/hw/ehca/ehca_classes.h | |||
@@ -379,8 +379,8 @@ extern spinlock_t shca_list_lock; | |||
379 | 379 | ||
380 | extern int ehca_static_rate; | 380 | extern int ehca_static_rate; |
381 | extern int ehca_port_act_time; | 381 | extern int ehca_port_act_time; |
382 | extern int ehca_use_hp_mr; | 382 | extern bool ehca_use_hp_mr; |
383 | extern int ehca_scaling_code; | 383 | extern bool ehca_scaling_code; |
384 | extern int ehca_lock_hcalls; | 384 | extern int ehca_lock_hcalls; |
385 | extern int ehca_nr_ports; | 385 | extern int ehca_nr_ports; |
386 | extern int ehca_max_cq; | 386 | extern int ehca_max_cq; |
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index 8af8d4f7bdb1..832e7a7d0aee 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c | |||
@@ -59,16 +59,16 @@ MODULE_AUTHOR("Christoph Raisch <raisch@de.ibm.com>"); | |||
59 | MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver"); | 59 | MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver"); |
60 | MODULE_VERSION(HCAD_VERSION); | 60 | MODULE_VERSION(HCAD_VERSION); |
61 | 61 | ||
62 | static int ehca_open_aqp1 = 0; | 62 | static bool ehca_open_aqp1 = 0; |
63 | static int ehca_hw_level = 0; | 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 | int ehca_debug_level = 0; | 66 | int ehca_debug_level = 0; |
67 | int ehca_nr_ports = -1; | 67 | int ehca_nr_ports = -1; |
68 | int ehca_use_hp_mr = 0; | 68 | bool ehca_use_hp_mr = 0; |
69 | int ehca_port_act_time = 30; | 69 | int ehca_port_act_time = 30; |
70 | int ehca_static_rate = -1; | 70 | int ehca_static_rate = -1; |
71 | int ehca_scaling_code = 0; | 71 | bool ehca_scaling_code = 0; |
72 | int ehca_lock_hcalls = -1; | 72 | int ehca_lock_hcalls = -1; |
73 | int ehca_max_cq = -1; | 73 | int ehca_max_cq = -1; |
74 | int ehca_max_qp = -1; | 74 | int ehca_max_qp = -1; |