All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.