[lkml]   [2003]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: 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

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.
Please don't send Word attachments -

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.101 / U:25.984 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site