lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 9 May 2009 09:32:27 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	"Robert P. J. Day" <rpjday@...shcourse.ca>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: __setup_param(), unique_id and vdso_setup

On Wed, May 06, 2009 at 03:24:21PM -0400, Robert P. J. Day wrote:
> 
>   just going through my outstanding list of kernel cleanup pedantry,
> and i was reminded of this from include/linux/init.h:
> 
> =====
> ...
> #define __setup(str, fn)                                        \
>         __setup_param(str, fn, fn, 0)
> 
> /* NOTE: fn is as per module_param, not __setup!  Emits warning if fn
>  * returns non-zero. */
> #define early_param(str, fn)                                    \
>         __setup_param(str, fn, fn, 1)
> ...
> =====
> 
>   in short, both invocations of __setup_param() use identical second
> and third parameters, and a tree-wide grep shows:
> 
> $ grep -rw __setup_param *
> arch/x86/vdso/vdso32-setup.c:__setup_param("vdso=", vdso32_setup, vdso_setup, 0);
> include/linux/init.h:#define __setup_param(str, unique_id, fn, early)                   \
> include/linux/init.h:   __setup_param(str, fn, fn, 0)
> include/linux/init.h:   __setup_param(str, fn, fn, 1)
> include/linux/init.h:#define __setup_param(str, unique_id, fn)  /* nothing */
> $
> 
>   so apart from that single exception involving "vdso", that macro
> could be simplified to just get rid of that third parameter.  is there
> something special about the vdso boot-time parm that *requires* it to
> be the only boot-time parm in the entire kernel to have a different
> unique id?  just curious.  or does that have to be preserved for
> out-of-tree builds?
No - so please go ahead and clean it up.

Thanks,
	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ