simplify numerous param.h's by including <asm-generic/param.h>?
From: Robert P. J. Day
Date: Tue Dec 29 2009 - 12:31:15 EST
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
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/