* simplify numerous param.h's by including <asm-generic/param.h>?
@ 2009-12-29 17:30 Robert P. J. Day
2009-12-29 18:09 ` Valdis.Kletnieks
0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2009-12-29 17:30 UTC (permalink / raw)
To: Linux Kernel Mailing List
a brief perusal of the numerous param.h files under
arch/<arch>/include/asm shows that most of them could be replaced with
a simple
#include <asm-generic/param.h>
as is done by, for example, the microblaze param.h file. the only
noticeable difference in those files is the value of EXEC_PAGESIZE,
which is already conditionally set in the generic version:
#ifndef EXEC_PAGESIZE
#define EXEC_PAGESIZE 4096
#endif
so, at worst, a param.h file could be replaced by:
#define EXEC_PAGESIZE <whatever>
#include <asm-generic/param.h>
rather than duplicating the same content over and over. (i did this
sort of centralization once upon a time with the ioctl.h file.)
worth doing? not worth doing?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: simplify numerous param.h's by including <asm-generic/param.h>?
2009-12-29 17:30 simplify numerous param.h's by including <asm-generic/param.h>? Robert P. J. Day
@ 2009-12-29 18:09 ` Valdis.Kletnieks
2009-12-30 8:17 ` Robert P. J. Day
0 siblings, 1 reply; 3+ messages in thread
From: Valdis.Kletnieks @ 2009-12-29 18:09 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 448 bytes --]
On Tue, 29 Dec 2009 12:30:23 EST, "Robert P. J. Day" said:
>
> a brief perusal of the numerous param.h files under
> arch/<arch>/include/asm shows that most of them could be replaced with
> a simple
>
> #include <asm-generic/param.h>
> worth doing? not worth doing?
Anytime you can fix "You are in a twisty maze of #include files, all subtly
different" issues, it is a Good Thing.
Thanks for all the de-cruftifying efforts you've made.
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: simplify numerous param.h's by including <asm-generic/param.h>?
2009-12-29 18:09 ` Valdis.Kletnieks
@ 2009-12-30 8:17 ` Robert P. J. Day
0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2009-12-30 8:17 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: Linux Kernel Mailing List
On Tue, 29 Dec 2009, Valdis.Kletnieks@vt.edu wrote:
> On Tue, 29 Dec 2009 12:30:23 EST, "Robert P. J. Day" said:
> >
> > a brief perusal of the numerous param.h files under
> > arch/<arch>/include/asm shows that most of them could be replaced with
> > a simple
> >
> > #include <asm-generic/param.h>
>
> > worth doing? not worth doing?
>
> Anytime you can fix "You are in a twisty maze of #include files, all
> subtly different" issues, it is a Good Thing.
>
> Thanks for all the de-cruftifying efforts you've made.
ok, so i'm assuming there's no legitimate objection to having
numerous arch-specific param.h files simply refer to
<asm-generic/param.h> if that's appropriate. i'll submit individual
patches on a per-arch basis to the appropriate MLs.
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-30 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-29 17:30 simplify numerous param.h's by including <asm-generic/param.h>? Robert P. J. Day
2009-12-29 18:09 ` Valdis.Kletnieks
2009-12-30 8:17 ` Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox