diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0059-name_to_dev_t-must-not-call-__init-code.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/linus/0059-name_to_dev_t-must-not-call-__init-code.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0059-name_to_dev_t-must-not-call-__init-code.patch b/extras/recipes-kernel/linux/linux-omap/linus/0059-name_to_dev_t-must-not-call-__init-code.patch new file mode 100644 index 00000000..26915acc --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/linus/0059-name_to_dev_t-must-not-call-__init-code.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From edb8dd77b87534a3cc6bf4e2a234216d2cc68f89 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jan Beulich <JBeulich@novell.com> | ||
3 | Date: Mon, 3 Jan 2011 15:07:02 +0000 | ||
4 | Subject: [PATCH 59/65] name_to_dev_t() must not call __init code | ||
5 | |||
6 | The function can't be __init itself (being called from some sysfs | ||
7 | handler), and hence none of the functions it calls can be either. | ||
8 | |||
9 | Signed-off-by: Jan Beulich <jbeulich@novell.com> | ||
10 | Acked-by: Randy Dunlap <randy.dunlap@oracle.com> | ||
11 | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | ||
12 | --- | ||
13 | init/do_mounts.c | 2 +- | ||
14 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
15 | |||
16 | diff --git a/init/do_mounts.c b/init/do_mounts.c | ||
17 | index 830aaec..2b54bef 100644 | ||
18 | --- a/init/do_mounts.c | ||
19 | +++ b/init/do_mounts.c | ||
20 | @@ -93,7 +93,7 @@ no_match: | ||
21 | * | ||
22 | * Returns the matching dev_t on success or 0 on failure. | ||
23 | */ | ||
24 | -static dev_t __init devt_from_partuuid(char *uuid_str) | ||
25 | +static dev_t devt_from_partuuid(char *uuid_str) | ||
26 | { | ||
27 | dev_t res = 0; | ||
28 | struct device *dev = NULL; | ||
29 | -- | ||
30 | 1.6.6.1 | ||
31 | |||