Skip to content

Commit

Permalink
drivers/base/devtmpfs.c: correct annotation of `setup_done'
Browse files Browse the repository at this point in the history
This fixes the following section mismatch issue:

WARNING: vmlinux.o(.text+0x1192bf): Section mismatch in reference from the function devtmpfsd() to the variable .init.data:setup_done
The function devtmpfsd() references the variable __initdata setup_done.
This is often because devtmpfsd lacks a __initdata annotation or the annotation of setup_done is wrong.

WARNING: vmlinux.o(.text+0x119342): Section mismatch in reference from the function devtmpfsd() to the variable .init.data:setup_done
The function devtmpfsd() references the variable __initdata setup_done.
This is often because devtmpfsd lacks a __initdata annotation or the annotation of setup_done is wrong.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arnaud Lacombe authored and Greg Kroah-Hartman committed Aug 8, 2011
1 parent 7de636f commit f9e0b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/devtmpfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ int devtmpfs_mount(const char *mntdir)
return err;
}

static __initdata DECLARE_COMPLETION(setup_done);
static DECLARE_COMPLETION(setup_done);

static int handle(const char *name, mode_t mode, struct device *dev)
{
Expand Down

0 comments on commit f9e0b15

Please sign in to comment.