]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: Guard __HAVE_ARCH macros with __KERNEL__ in string.h
authorSteve Magnani <steve@digidescorp.com>
Mon, 18 May 2009 01:32:07 +0000 (20:32 -0500)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 May 2009 13:56:08 +0000 (15:56 +0200)
A polarity reversal in the __KERNEL__ guard prevents the __HAVE_ARCH
flags from being defined in kernel compilation.

I noticed that there's now an option for assembly-optimized versions of
memcpy and memmove. I believe this may be buggy; when I turn it on, all
my printk output gets smashed together, as if the newlines aren't getting
copied.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/string.h

index f7728c90fc186af92a1005400bf99ed7c9ec2387..aec2f59298b879d063e7f48d04ad20602695143d 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef _ASM_MICROBLAZE_STRING_H
 #define _ASM_MICROBLAZE_STRING_H
 
-#ifndef __KERNEL__
+#ifdef __KERNEL__
 
 #define __HAVE_ARCH_MEMSET
 #define __HAVE_ARCH_MEMCPY