Firoz Khan
d2cc708775
m68k: Add __NR_syscalls along with NR_syscalls
...
NR_syscalls macro holds the number of system call
exist in m68k 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
counting the no.of system calls. No need to up-
date NR_syscalls until we either add a new sys-
tem call or delete existing system call.
2. We can keep this feature it above mentioned sc-
ript, that will count the number of syscalls and
keep it in a generated file. In this case we
don't need to explicitly update NR_syscalls in
asm/unistd.h file.
The 2nd option will be the recommended one. For that,
I added the __NR_syscalls macro in uapi/asm/unistd.h
along with NR_syscalls asm/unistd.h. The macro __NR-
_syscalls also added for making the name convention
same across all architecture. While __NR_syscalls
isn't strictly part of the uapi, having it as part
of the generated header to simplifies the implement-
ation. 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: Geert Uytterhoeven <geert@linux-m68k.org >
2018-12-04 09:47:48 +01:00
..
2017-03-02 08:42:37 +01:00
2017-11-02 11:10:55 +01:00
2013-11-26 11:09:17 +01:00
2009-01-16 21:58:10 +10:00
2010-05-26 19:51:09 +02:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2009-12-12 13:08:14 +01:00
2017-08-21 11:52:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2015-01-15 13:44:51 +01:00
2011-05-19 18:19:11 +02:00
2018-06-21 14:25:24 +02:00
2018-08-13 12:23:39 -07:00
2011-12-10 19:52:48 +01:00
2016-09-26 12:02:59 +10:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-22 10:31:52 +02:00
2017-11-02 11:10:55 +01:00
2018-07-30 09:15:01 +10:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-08-07 23:47:19 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-12 10:36:54 +01:00
2017-11-02 11:10:55 +01:00
2009-03-02 16:49:37 -05:00
2013-05-29 16:56:45 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-29 10:48:18 +02:00
2018-07-29 10:48:18 +02:00
2018-07-29 10:48:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-23 15:07:12 +02:00
2017-11-02 11:10:55 +01:00
2018-07-29 10:48:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-09-29 09:56:19 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 13:27:32 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 12:10:24 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-29 10:48:18 +02:00
2017-11-02 11:10:55 +01:00
2010-02-27 18:31:09 +01:00
2018-07-23 15:07:12 +02:00
2017-02-09 14:18:19 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-02 10:05:13 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-05-26 13:28:38 +10:00
2017-11-02 11:10:55 +01:00
2017-11-06 08:25:20 +10:00
2017-11-02 11:10:55 +01:00
2015-03-15 10:23:30 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-06 08:25:20 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-24 17:46:56 -08:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-29 10:48:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-31 08:54:12 -07:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-03 13:05:42 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2013-11-26 11:09:16 +01:00
2017-11-02 11:10:55 +01:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-09 23:21:02 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2011-12-24 21:47:57 +10:00
2018-05-22 10:31:52 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-04 09:47:48 +01:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2018-05-28 09:45:25 +10:00
2018-05-28 09:45:26 +10:00