Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Guard __HAVE_ARCH macros with __KERNEL__ in string.h

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>

authored by

Steve Magnani and committed by
Michal Simek
6e3d4e1d c3055d14

+1 -1
+1 -1
arch/microblaze/include/asm/string.h
··· 9 9 #ifndef _ASM_MICROBLAZE_STRING_H 10 10 #define _ASM_MICROBLAZE_STRING_H 11 11 12 - #ifndef __KERNEL__ 12 + #ifdef __KERNEL__ 13 13 14 14 #define __HAVE_ARCH_MEMSET 15 15 #define __HAVE_ARCH_MEMCPY