• Zhang Rui's avatar
    ACPI: fix build warnings resulting from merge window conflict · ec652b35
    Zhang Rui authored
    drivers/acpi/sysfs.c:154: warning: passing argument 1 of '__check_old_set_param' from incompatible pointer type
    include/linux/moduleparam.h:165: note: expected 'int (*)(const char *, struct kernel_param *)' but argument is of type 'int (*)(const char *, const struct kernel_param *)'
    
    Introduced by commit 1c8fce27 ("ACPI:
    introduce drivers/acpi/sysfs.c") interacting with commit
    9bbb9e5a ("param: use ops in struct
    kernel_param, rather than get and set fns directly").
    
    Use module_param_cb instead of the obsoleted module_param_call to fix a build warning.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    ec652b35
sysfs.c 17.5 KB