arch/x86/include/asm/efi.h: fix build failure
authorAndrey Ryabinin <[email protected]>
Thu, 1 Oct 2015 22:36:48 +0000 (15:36 -0700)
committerLinus Torvalds <[email protected]>
Fri, 2 Oct 2015 01:42:35 +0000 (21:42 -0400)
commita523841ee4e506fa1f05ff3a85b1e6d8176a3d4d
tree4eec3889a7283cb9549e4a123ca444d8b75e15c1
parentf97b870eced0ec562f953d32eda03906c7dacad6
arch/x86/include/asm/efi.h: fix build failure

With KMEMCHECK=y, KASAN=n:

  arch/x86/platform/efi/efi.c:673:3: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration]
  arch/x86/platform/efi/efi_64.c:139:2: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration]
  arch/x86/include/asm/desc.h:121:2: error: implicit declaration of function `memcpy' [-Werror=implicit-function-declaration]

Don't #undef memcpy if KASAN=n.

Fixes: 769a8089c1fd ("x86, efi, kasan: #undef memset/memcpy/memmove per arch")
Signed-off-by: Andrey Ryabinin <[email protected]>
Reported-by: Ingo Molnar <[email protected]>
Reported-by: Sedat Dilek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/x86/include/asm/efi.h