lkml.org 
[lkml]   [2008]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Give futex init a proper name
On Thu, 27 Mar 2008 14:52:15 +1100 Benjamin Herrenschmidt <benh@ozlabs.org> wrote:

> The futex init function is called init(). This is a pain in the neck
> when debugging when you code dies in ... init :-)
>
> This renames it to futex_init().
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> kernel/futex.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-work.orig/kernel/futex.c 2008-03-27 14:50:11.000000000 +1100
> +++ linux-work/kernel/futex.c 2008-03-27 14:50:20.000000000 +1100
> @@ -2158,7 +2158,7 @@ static struct file_system_type futex_fs_
> .kill_sb = kill_anon_super,
> };
>
> -static int __init init(void)
> +static int __init futex_init(void)
> {
> u32 curval;
> int i;
> @@ -2194,4 +2194,4 @@ static int __init init(void)
>
> return 0;
> }
> -__initcall(init);
> +__initcall(futex_init);

heh, I seem to remember doing about fifty of these in netfilter code a
while back.

You have a way to go - there are thirty-odd just in the crypto code.



\
 
 \ /
  Last update: 2008-03-27 05:03    [W:0.032 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site