Skip to content

Commit f9e0b15

Browse files
lacombargregkh
authored andcommitted
drivers/base/devtmpfs.c: correct annotation of `setup_done'
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>
1 parent 7de636f commit f9e0b15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/devtmpfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ int devtmpfs_mount(const char *mntdir)
376376
return err;
377377
}
378378

379-
static __initdata DECLARE_COMPLETION(setup_done);
379+
static DECLARE_COMPLETION(setup_done);
380380

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

0 commit comments

Comments
 (0)