Skip to content

Commit 38b6f45

Browse files
author
Jens Axboe
committed
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>
1 parent 2610a25 commit 38b6f45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎init/do_mounts.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ __setup("rw", readwrite);
6565
*
6666
* Returns 1 if the device matches, and 0 otherwise.
6767
*/
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)
6969
{
7070
u8 *uuid = data;
7171
struct hd_struct *part = dev_to_part(dev);

0 commit comments

Comments
 (0)