Re: include/linux: Add missing include / fix build failure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Axel
Date: Thursday, December 16, 2010 - 12:57 am

On 12月16日, 上午7時50分, Peter Hüwe <PeterHu...@gmx.de> wrote:

hi Peter,
After apply the patch,
I got below error message while
# make i386_defconfig;make

  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      init/main.o
In file included from include/linux/list_bl.h:5,
                 from include/linux/rculist_bl.h:7,
                 from include/linux/dcache.h:7,
                 from include/linux/fs.h:381,
                 from include/linux/proc_fs.h:5,
                 from init/main.c:14:
include/linux/bit_spinlock.h:7:24: error: asm/memory.h: No such file
or directory
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2

I personally fix it by below patch now, but I'm not so sure if this is
a good way to fix it.

git diff arch/arm/include/asm/system.h
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/
system.h
index ec4327a..3222ab8 100644
--- a/arch/arm/include/asm/system.h
+++ b/arch/arm/include/asm/system.h
@@ -155,6 +155,7 @@ extern unsigned int user_debug;
 #define rmb()          dmb()
 #define wmb()          mb()
 #else
+#include <asm/memory.h>
 #define mb()   do { if (arch_is_coherent()) dmb(); else barrier(); }
while (0)
 #define rmb()  do { if (arch_is_coherent()) dmb(); else barrier(); }
while (0)
 #define wmb()  do { if (arch_is_coherent()) dmb(); else barrier(); }
while (0)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: include/linux: Add missing include / fix build failure, Axel, (Thu Dec 16, 12:57 am)
Re: include/linux: Add missing include / fix build failure, Peter =?utf-8?q?H=C3 ..., (Fri Dec 17, 12:01 am)