Skip to content

Commit bbdc18a

Browse files
jbeulichrjwysocki
authored andcommitted
properly __init-annotate pm_sysrq_init()
This is used only as argument to subsys_initcall(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1 parent 4955070 commit bbdc18a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/power/poweroff.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static struct sysrq_key_op sysrq_poweroff_op = {
3737
.enable_mask = SYSRQ_ENABLE_BOOT,
3838
};
3939

40-
static int pm_sysrq_init(void)
40+
static int __init pm_sysrq_init(void)
4141
{
4242
register_sysrq_key('o', &sysrq_poweroff_op);
4343
return 0;

0 commit comments

Comments
 (0)