mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
module_param: invbool should take a 'bool', not an 'int'
It takes an 'int' for historical reasons, and there are only two users: simply switch it over to bool. The other user (uvesafb.c) will get a (harmless-on-x86) warning until the next patch is applied. Cc: Brad Douglas <brad@neruo.com> Cc: Michal Januszewski <spock@gentoo.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
ab8e2eb722
commit
9a71af2c36
3 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ extern int param_get_bool(char *buffer, struct kernel_param *kp);
|
|||
|
||||
extern int param_set_invbool(const char *val, struct kernel_param *kp);
|
||||
extern int param_get_invbool(char *buffer, struct kernel_param *kp);
|
||||
#define param_check_invbool(name, p) __param_check(name, p, int)
|
||||
#define param_check_invbool(name, p) __param_check(name, p, bool)
|
||||
|
||||
/* Comma-separated array: *nump is set to number they actually specified. */
|
||||
#define module_param_array_named(name, array, type, nump, perm) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue