linux-stable/arch/microblaze
Firoz Khan c0b2826aa0 microblaze: move __NR_syscalls macro from asm/unistd.h
__NR_syscalls holds the number of system call exist in
microblaze architecture. We have to change the value of
__NR_syscalls, if we add or delete a system call.

One of the patch in this patch series has a script which
will generate a uapi header based on syscall.tbl file.
The syscall.tbl file contains the total number of system
calls information. So we have two option to update __NR-
_syscalls value.

1. Update __NR_syscalls in asm/unistd.h manually by count-
   ing the no.of system calls. No need to update NR_sys-
   calls until we either add a new system call or delete
   existing system call.

2. We can keep this feature it above mentioned script,
   that will count the number of syscalls and keep it in
   a generated file. In this case we don't need to expli-
   citly update __NR_syscalls in asm/unistd.h file.

The 2nd option will be the recommended one. For that, I
moved the __NR_syscalls macro from asm/unistd.h to uapi-
/asm/unistd.h. While __NR_syscalls isn't strictly part of
the uapi, having it as part of the generated header to
simplifies the implementation. We also need to enclose
this macro with #ifdef __KERNEL__ to avoid side effects.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2018-11-16 08:24:33 +01:00
..
boot microblaze: enable building all dtbs 2018-10-02 09:23:21 -05:00
configs microblaze: Enabling CONFIG_BRIDGE in mmu_defconfig 2017-06-22 15:36:59 +02:00
include microblaze: move __NR_syscalls macro from asm/unistd.h 2018-11-16 08:24:33 +01:00
kernel Devicetree updates for 4.20: 2018-10-26 12:09:58 -07:00
lib microblaze: Setup dependencies for ASM optimized lib functions 2018-03-16 12:51:26 +01:00
mm memblock: stop using implicit alignment to SMP_CACHE_BYTES 2018-10-31 08:54:16 -07:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Kconfig mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.platform microblaze: Setup dependencies for ASM optimized lib functions 2018-03-16 12:51:26 +01:00
Makefile kbuild: consolidate Devicetree dtb build rules 2018-10-02 09:23:21 -05:00