kernel/power: unmark 'state' functions as kernel-doc
Subsystems (2)
PATCH 1/1 kernel/power: unmark 'state' functions as kernel-doc
Fix kernel-doc warnings in kernel/power/main.c by unmarking the comment block as kernel-doc notation. This eliminates the following kernel-doc warnings:
kernel/power/main.c:593: warning: expecting prototype for state(). Prototype was for state_show() instead kernel/power/main.c:593: warning: Function parameter or member 'kobj' not described in 'state_show' kernel/power/main.c:593: warning: Function parameter or member 'attr' not described in 'state_show' kernel/power/main.c:593: warning: Function parameter or member 'buf' not described in 'state_show'
--- kernel/power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/main.c +1 -1
@@ -577,7 +577,7 @@ static inline void pm_print_times_init(vstruct kobject *power_kobj; -/** +/* * state - control system sleep states. * * show() returns available sleep state labels, which may be "mem", "standby",
Quoted 22 lines · Randy Dunlap
Fix kernel-doc warnings in
kernel/power/main.cby unmarking the comment block as kernel-doc notation. This eliminates the following kernel-doc warnings:
kernel/power/main.c:593: warning: expecting prototype forstate(). Prototype was forstate_show()insteadkernel/power/main.c:593: warning: Function parameter or member 'kobj' not described in 'state_show'kernel/power/main.c:593: warning: Function parameter or member 'attr' not described in 'state_show'kernel/power/main.c:593: warning: Function parameter or member 'buf' not described in 'state_show'Signed-off-by Randy Dunlap <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Pavel Machek <[email protected]>Cc Len Brown <[email protected]>--- kernel/power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/main.c static inline void pm_print_times_init(v · line 583
Quoted 8 lines
kernel/power/main.c +1
-1@@ -577,7 +577,7 @@ static inline void pm_print_times_init(vstruct kobject *power_kobj; -/** +/* * state - control system sleep states. * * show() returns available sleep state labels, which may be "mem", "standby",
Applied as 5.15 material, thanks!