浏览代码

[ARM] 3495/1: EABI: undefine removed syscalls, but...

Patch from Nicolas Pitre

... but only for user space.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Nicolas Pitre 19 年之前
父节点
当前提交
568cb09b9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-arm/unistd.h

+ 1 - 1
include/asm-arm/unistd.h

@@ -363,7 +363,7 @@
 /*
 /*
  * The following syscalls are obsolete and no longer available for EABI.
  * The following syscalls are obsolete and no longer available for EABI.
  */
  */
-#if defined(__ARM_EABI__)
+#if defined(__ARM_EABI__) && !defined(__KERNEL__)
 #undef __NR_time
 #undef __NR_time
 #undef __NR_umount
 #undef __NR_umount
 #undef __NR_stime
 #undef __NR_stime