Skip to content

Commit

Permalink
properly __init-annotate pm_sysrq_init()
Browse files Browse the repository at this point in the history
This is used only as argument to subsys_initcall().

Signed-off-by: Jan Beulich <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
jbeulich authored and rjwysocki committed Sep 10, 2012
1 parent 4955070 commit bbdc18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/power/poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static struct sysrq_key_op sysrq_poweroff_op = {
.enable_mask = SYSRQ_ENABLE_BOOT,
};

static int pm_sysrq_init(void)
static int __init pm_sysrq_init(void)
{
register_sysrq_key('o', &sysrq_poweroff_op);
return 0;
Expand Down

0 comments on commit bbdc18a

Please sign in to comment.