Messages in this thread Patch in this message | | | Date | Sun, 28 Sep 2003 15:54:39 +0200 | From | Bernardo Innocenti <> | Subject | Re: Linux 2.6.0-test6 |
| |
Russell King wrote:
>>>Bernardo Innocenti: >>> o GCC 3.3.x/3.4 compatiblity fix in include/linux/init.h >> >>This change breaks 2.95 for some source files, because <linux/init.h> doesn't >>include <linux/compiler.h>. Do you want to have the missing include added to >><linux/init.h>, or to the individual source files that need it?
The golden rule of C headers says that each file should stand on its own, so that you have no errors when compiling the header alone.
This is the trivial fix. Sorry for not noticing before.
--- include/linux/init.h.orig 2003-09-28 15:48:06.000000000 +0200 +++ include/linux/init.h 2003-09-28 15:48:10.000000000 +0200 @@ -2,6 +2,7 @@ #define _LINUX_INIT_H #include <linux/config.h> +#include <linux/compiler.h> /* These macros are used to mark some functions or * initialized data (doesn't apply to uninitialized data)
-- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/ Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |