Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (dell-smm) Mark i8k_get_fan_nominal_speed as __init

Mark function i8k_get_fan_nominal_speed() as __init since
it is only used in code also marked as __init.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20210814143637.11922-5-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Armin Wolf and committed by
Guenter Roeck
782a99c1 c510f6ac

+1 -1
+1 -1
drivers/hwmon/dell-smm-hwmon.c
··· 309 309 /* 310 310 * Read the fan nominal rpm for specific fan speed. 311 311 */ 312 - static int i8k_get_fan_nominal_speed(const struct dell_smm_data *data, int fan, int speed) 312 + static int __init i8k_get_fan_nominal_speed(const struct dell_smm_data *data, int fan, int speed) 313 313 { 314 314 struct smm_regs regs = { .eax = I8K_SMM_GET_NOM_SPEED, }; 315 315