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

sparc: move __IGNORE* entries to non uapi header

All the __IGNORE* entries are resides in the uapi header
file move to non uapi header asm/unistd.h as it is not
used by any user space applications.

It is correct to keep __IGNORE* entry in non uapi header
asm/unistd.h while uapi/asm/unistd.h must hold information
only useful for user space applications.

One of the patch in this patch series will generate uapi
header file. The information which directly used by the
user space application must be present in uapi file.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Firoz Khan and committed by
David S. Miller
d441f93d 20a9da34

+16 -16
+16
arch/sparc/include/asm/unistd.h
··· 46 46 #define __ARCH_WANT_COMPAT_SYS_SENDFILE 47 47 #endif 48 48 49 + #ifdef __32bit_syscall_numbers__ 50 + /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, 51 + * it never had the plain ones and there is no value to adding those 52 + * old versions into the syscall table. 53 + */ 54 + #define __IGNORE_setresuid 55 + #define __IGNORE_getresuid 56 + #define __IGNORE_setresgid 57 + #define __IGNORE_getresgid 58 + #endif 59 + 60 + /* Sparc doesn't have protection keys. */ 61 + #define __IGNORE_pkey_mprotect 62 + #define __IGNORE_pkey_alloc 63 + #define __IGNORE_pkey_free 64 + 49 65 #endif /* _SPARC_UNISTD_H */
-16
arch/sparc/include/uapi/asm/unistd.h
··· 434 434 /* Bitmask values returned from kern_features system call. */ 435 435 #define KERN_FEATURE_MIXED_MODE_STACK 0x00000001 436 436 437 - #ifdef __32bit_syscall_numbers__ 438 - /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants, 439 - * it never had the plain ones and there is no value to adding those 440 - * old versions into the syscall table. 441 - */ 442 - #define __IGNORE_setresuid 443 - #define __IGNORE_getresuid 444 - #define __IGNORE_setresgid 445 - #define __IGNORE_getresgid 446 - #endif 447 - 448 - /* Sparc doesn't have protection keys. */ 449 - #define __IGNORE_pkey_mprotect 450 - #define __IGNORE_pkey_alloc 451 - #define __IGNORE_pkey_free 452 - 453 437 #endif /* _UAPI_SPARC_UNISTD_H */