Skip to content

Commit

Permalink
autodetect_raid: add missing __init marking
Browse files Browse the repository at this point in the history
The function autodetect_raid is only used by __init functions, and it refers
to __initdata, so it needs __init markings.  Fixes this error:
The function autodetect_raid() references
the variable __initdata raid_noautodetect.
This is often because autodetect_raid lacks a __initdata
annotation or the annotation of raid_noautodetect is wrong.

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
vapier authored and torvalds committed Jan 6, 2009
1 parent 7ec7fb3 commit ff083c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/do_mounts_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ static int __init raid_setup(char *str)
__setup("raid=", raid_setup);
__setup("md=", md_setup);

static void autodetect_raid(void)
static void __init autodetect_raid(void)
{
int fd;

Expand Down

0 comments on commit ff083c8

Please sign in to comment.