Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=310f7963c24ab8fa56a539fa060dd84560ce26e9
Commit:     310f7963c24ab8fa56a539fa060dd84560ce26e9
Parent:     9c5b406b9a857a67caf778f096bfc7f4e6b0401a
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 28 17:26:19 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Wed Mar 28 17:26:19 2007 +0900

    sh: Fixup __cmpxchg() compile breakage with gcc4.
    
    As reported by Manuel:
    
    When I build linux with GCC-4.x and enable
    CONFIG_CC_OPTIMIZE_FOR_SIZE linking fails with this error:
    
      LD      .tmp_vmlinux1
      kernel/built-in.o: In function '__cmpxchg_called_with_bad_pointer'
      make[1]: *** [.tmp_vmlinux1] Error 1
      make: *** [_all] Error 2
    
    This ended up being an inlining problem, fixed by explicitly
    including linux/compiler.h and grabbing the definitions from there.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 include/asm-sh/system.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h
index b1e42e7..4a6a19f 100644
--- a/include/asm-sh/system.h
+++ b/include/asm-sh/system.h
@@ -7,6 +7,7 @@
  */
 
 #include <linux/irqflags.h>
+#include <linux/compiler.h>
 #include <asm/types.h>
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to