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>
Цей коміт міститься в:
@@ -102,7 +102,7 @@ static int setup_dmaspeed[MAXBOARDS] __initdata = { -1, -1, -1, -1 };
|
||||
*/
|
||||
|
||||
#if defined(MODULE)
|
||||
static int isapnp = 0;
|
||||
static bool isapnp = 0;
|
||||
static int aha1542[] = {0x330, 11, 4, -1};
|
||||
module_param_array(aha1542, int, NULL, 0);
|
||||
module_param(isapnp, bool, 0);
|
||||
|
Посилання в новій задачі
Заблокувати користувача