From: Jan Beulich Date: Mon, 3 Jan 2011 15:07:02 +0000 (+0000) Subject: name_to_dev_t() must not call __init code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1cf11d8f673a3ad91012c5da96beed06ecefde1;p=linux-beck.git name_to_dev_t() must not call __init code The function can't be __init itself (being called from some sysfs handler), and hence none of the functions it calls can be either. Signed-off-by: Jan Beulich Acked-by: Randy Dunlap Signed-off-by: Linus Torvalds --- diff --git a/init/do_mounts.c b/init/do_mounts.c index 830aaec9c7d5..2b54bef33b55 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -93,7 +93,7 @@ no_match: * * Returns the matching dev_t on success or 0 on failure. */ -static dev_t __init devt_from_partuuid(char *uuid_str) +static dev_t devt_from_partuuid(char *uuid_str) { dev_t res = 0; struct device *dev = NULL;