diff options
| author | Jens Axboe <jaxboe@fusionio.com> | 2010-09-16 02:33:54 -0400 |
|---|---|---|
| committer | Jens Axboe <jaxboe@fusionio.com> | 2010-09-16 02:33:54 -0400 |
| commit | 38b6f45a97bbb8536cc7d095b577f580bd4d643e (patch) | |
| tree | bb627beb5655fda12c1bff9ba01ff00bafa7ad96 /init | |
| parent | 2610a25406087ef797f4187e7f82dd04335056c7 (diff) | |
core: match_dev_by_uuid() should not be marked __init
It is also called outside the scope of init functions. Stephen
reports:
WARNING: init/mounts.o(.text+0x21a): Section mismatch in reference from the function name_to_dev_t() to the function .init.text:match_dev_by_uuid()
The function name_to_dev_t() references
the function __init match_dev_by_uuid().
This is often because name_to_dev_t lacks a __init
annotation or the annotation of match_dev_by_uuid is wrong.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'init')
| -rw-r--r-- | init/do_mounts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 804f9c6ba216..b7fc83994f39 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
| @@ -65,7 +65,7 @@ __setup("rw", readwrite); | |||
| 65 | * | 65 | * |
| 66 | * Returns 1 if the device matches, and 0 otherwise. | 66 | * Returns 1 if the device matches, and 0 otherwise. |
| 67 | */ | 67 | */ |
| 68 | static int __init match_dev_by_uuid(struct device *dev, void *data) | 68 | static int match_dev_by_uuid(struct device *dev, void *data) |
| 69 | { | 69 | { |
| 70 | u8 *uuid = data; | 70 | u8 *uuid = data; |
| 71 | struct hd_struct *part = dev_to_part(dev); | 71 | struct hd_struct *part = dev_to_part(dev); |
