archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compile errors with 2.6.11-rc2
@ 2005-01-28 21:34 Manish Lachwani
  0 siblings, 0 replies; only message in thread
From: Manish Lachwani @ 2005-01-28 21:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, mlachwani

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

Hi !

When compiling 2.6.11-rc2:


  CC      kernel/stop_machine.o
In file included from include/linux/sysdev.h:24,
                 from include/linux/cpu.h:22,
                 from include/linux/stop_machine.h:8,
                 from kernel/stop_machine.c:1:
include/linux/kobject.h: In function `to_kset':
include/linux/kobject.h:116: warning: implicit declaration of function `container_of'
include/linux/kobject.h:116: error: parse error before "struct"
include/linux/kobject.h:117: warning: no return statement in function returning non-void
include/linux/kobject.h: In function `subsys_get':
include/linux/kobject.h:224: error: parse error before "struct"
include/linux/kobject.h:225: warning: no return statement in function returning non-void
make[1]: *** [kernel/stop_machine.o] Error 1
make: *** [kernel] Error 2

Attached patch fixes this.

Manish Lachwani

[-- Attachment #2: patch_kobject.patch --]
[-- Type: text/plain, Size: 450 bytes --]

Signed-off-by: Manish Lachwani <>

Index: linux-2.6.11-rc2/include/linux/kobject.h
--- linux-2.6.11-rc2.orig/include/linux/kobject.h
+++ linux-2.6.11-rc2/include/linux/kobject.h
@@ -23,6 +23,7 @@
 #include <linux/rwsem.h>
 #include <linux/kref.h>
 #include <linux/kobject_uevent.h>
+#include <linux/kernel.h>
 #include <asm/atomic.h>
 #define KOBJ_NAME_LEN	20

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-28 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28 21:34 [PATCH] Fix compile errors with 2.6.11-rc2 Manish Lachwani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).