lkml.org 
[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] name_to_dev_t() must not call __init code
From

On Tue, December 7, 2010 7:02 am, Jan Beulich wrote:
> The function can't be __init itself (being called from some sysfs
> handler), and hence none of the functions it call can be either.
>
> Signed-off-by: Jan Beulich <jbeulich@novell.com>
>

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>

>
> ---
> init/do_mounts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> --- linux-2.6.37-rc5/init/do_mounts.c
> +++ 2.6.37-rc5-do_mounts-sections/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;
>
>
>
> --

--
~Randy



\
 
 \ /
  Last update: 2010-12-07 22:51    [W:0.055 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site