[PATCH v2 0/7] System call table generation support

2018-09-27 Thread Firoz Khan
patch to keep __IGNORE* entries in asm/unistd.h. Finally, this is the ground work for solving the Y2038 issue. We need to add/change two dozen of system calls to solve Y2038 issue. So this patch series will help to easily modify from existing system call to Y2038 compatible system calls. Firoz

[PATCH v2 2/7] ia64: replace NR_syscalls macro from asm/unistd.h

2018-09-27 Thread Firoz Khan
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 --- arch/ia64/include/asm/unistd.h | 4 +--- arch/ia64/include/uapi/asm/unist

[PATCH v2 1/7] ia64: add __NR_old_getpagesize macro

2018-09-27 Thread Firoz Khan
Add __NR_old_getpagesize in order to not break old user space as it is reserved for backwards compatibility with old __NR_ getpagesize. Signed-off-by: Firoz Khan --- arch/ia64/include/uapi/asm/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/include/uapi

[PATCH v2 5/7] ia64: add system call table generation support

2018-09-27 Thread Firoz Khan
entries in syscall.tbl. Signed-off-by: Firoz Khan --- arch/ia64/kernel/syscalls/Makefile | 40 arch/ia64/kernel/syscalls/syscall.tbl | 328 arch/ia64/kernel/syscalls/syscallhdr.sh | 35 arch/ia64/kernel/syscalls/syscalltbl.sh | 34 4 fil

[PATCH v2 7/7] ia64: add __IGNORE* entries in asm/unistd.h

2018-09-27 Thread Firoz Khan
applications. Signed-off-by: Firoz Khan --- arch/ia64/include/asm/unistd.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/ia64/include/asm/unistd.h b/arch/ia64/include/asm/unistd.h index 397b143..a0941e6 100644 --- a/arch/ia64/include/asm/unistd.h +++ b/arch/ia64/include/asm

[PATCH v2 6/7] ia64: uapi header and system call table file generation

2018-09-27 Thread Firoz Khan
the generated files against the removed files will be identical. The generated uapi header file will be included in uapi/asm/unistd.h and generated system call table support file will be included by ia64/kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/ia64/Makefile

[PATCH v2 3/7] ia64: add an offset for system call number

2018-09-27 Thread Firoz Khan
to generate uapi header which uses syscall.tbl file. In syscall.tbl contain system call number. With the use of __NR_Linux, we can start the number from 0 instead of 1024. Signed-off-by: Firoz Khan --- arch/ia64/include/uapi/asm/unistd.h | 659 ++-- 1 file changed

[PATCH v2 4/7] ia64: replace the system call table entries from entry.S

2018-09-27 Thread Firoz Khan
syscall_table.S, this is a new file. This change will unify the implementation across all the architecture and to simplify the implementation for system call table generation using the script. Signed-off-by: Firoz Khan --- arch/ia64/kernel/entry.S | 333

[PATCH v2 0/5] System call table generation support

2018-09-27 Thread Firoz Khan
this is the ground work for solving the Y2038 issue. We need to add/change two dozen of system calls to solve Y2038 issue. So this patch series will help to easily modify from existing system call to Y2038 compatible system calls. Firoz Khan (5): parisc: move __IGNORE* entries to non uapi h

[PATCH v2 2/5] parisc: add __NR_Linux_syscalls macro with __NR_syscalls

2018-09-27 Thread Firoz Khan
ly 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 --- arch/parisc/include/uapi/asm/unistd.h | 6 +- 1 file changed, 5 insertions(+),

[PATCH v2 1/5] parisc: move __IGNORE* entries to non uapi header

2018-09-27 Thread Firoz Khan
uapi header, it will help to simplify the uapi header and system call table file generation script. 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. Signed-off-by: Firoz Khan --- arch/parisc

[PATCH v2 3/5] parisc: add system call table generation support

2018-09-27 Thread Firoz Khan
files will parse the content syscall.tbl to generate the header and table files. ARM, s390 and x86 architecuture does have the similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/parisc/kernel/syscalls/Makefile | 55 +

[PATCH v2 5/5] parisc: add __IGNORE* entries in asm/unistd.h

2018-09-27 Thread Firoz Khan
Add __IGNORE* entries for nfsservctl, io_pgetevents and rseq in the file asm/unistd.h as 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. Signed-off-by: Firoz Khan --- arch/parisc/include

[PATCH v2 4/5] parisc: uapi header and system call table file generation

2018-09-27 Thread Firoz Khan
: Firoz Khan --- arch/parisc/Makefile | 4 + arch/parisc/include/asm/Kbuild| 3 + arch/parisc/include/uapi/asm/Kbuild | 2 + arch/parisc/include/uapi/asm/unistd.h | 375 +-- arch/parisc/kernel/syscall.S | 12 +- arch/parisc/kernel

[PATCH v3 0/4] powerpc: system call table generation support

2018-11-28 Thread Firoz Khan
ce v1: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall_*.tbl. - changed from generic-y to generated-y in Kbuild. Firoz Khan (4): powerpc: add __NR_syscalls along with NR_syscalls powe

Re: [PATCH v3 0/3] sh: system call table generation support

2018-11-18 Thread Firoz Khan
On Wed, 14 Nov 2018 at 10:02, Firoz Khan wrote: > > The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the > system cal

Re: [PATCH v7 0/5] parisc: system call table generation support

2018-11-18 Thread Firoz Khan
Hi Helge, On Sat, 17 Nov 2018 at 22:01, Helge Deller wrote: > > * Arnd Bergmann : > > On Fri, Nov 16, 2018 at 1:55 PM Helge Deller wrote: > > > > On Fri, 16 Nov 2018 at 01:01, Helge Deller wrote: > > > > > > > > > > On 14.11.2018 07:34, F

Re: [PATCH v3 0/4] sparc: system call table generation support

2018-11-18 Thread Firoz Khan
Hi David, On Mon, 19 Nov 2018 at 08:29, David Miller wrote: > > From: Firoz Khan > Date: Wed, 14 Nov 2018 10:56:27 +0530 > > > The purpose of this patch series is, we can easily > > add/modify/delete system call table support by cha- > > nging entry in syscal

[PATCH v4 3/3] microblaze: generate uapi header and system call table files

2018-11-12 Thread Firoz Khan
the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/microblaze/Makefile

[PATCH v4 0/3] microblaze: system call table generation support

2018-11-12 Thread Firoz Khan
hanges since v1: - enclosed __NR_sycalls macro with __KERNEL__. - added missing new line. Firoz Khan (3): microblaze: move __NR_syscalls macro from asm/unistd.h microblaze: add system call table generation support microblaze: generate uapi header and system call table files arch/micr

[PATCH v4 1/3] microblaze: move __NR_syscalls macro from asm/unistd.h

2018-11-12 Thread Firoz Khan
d 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:

[PATCH v4 2/3] microblaze: add system call table generation support

2018-11-12 Thread Firoz Khan
syscall_table.h is included by kernel/syscall_table.S - the real system call table. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/microblaze/kernel/syscalls/Makefile | 38

[PATCH v2 3/4] powerpc: add system call table generation support

2018-11-14 Thread Firoz Khan
parse the content syscall.tbl to generate the header and table files. ARM, s390 and x86 architecuture does have the similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/powerpc/kernel/syscalls/Makefile | 61 + arch

[PATCH v4 0/5] powerpc: system call table generation support

2018-12-06 Thread Firoz Khan
n syscall_*.tbl. - changed from generic-y to generated-y in Kbuild. Firoz Khan (5): powerpc: add __NR_syscalls along with NR_syscalls powerpc: move macro definition from asm/systbl.h powerpc: add system call table generation support powerpc: split compat syscall table out from native table po

[PATCH v4 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-06 Thread Firoz Khan
change. This change will simplify the implementation of system call table generation script and help to come up a common implementation across all architecture. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/systbl.h | 1 - arch/powerpc/kernel/systbl.S | 1 + 2 files changed, 1

[PATCH v4 1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-06 Thread Firoz Khan
so need to enclose this macro with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/unistd.h | 3 +-- arch/powerpc/include/uapi/asm/unistd.h | 5 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/unistd

[PATCH v4 3/5] powerpc: add system call table generation support

2018-12-06 Thread Firoz Khan
files will parse the content syscall.tbl to generate the header and table files. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/powerpc/kernel/syscalls/Makefile | 63 + arch

[PATCH v4 4/5] powerpc: split compat syscall table out from native table

2018-12-06 Thread Firoz Khan
other archit- ectures. Split out a new compat_sys_call_table symbol that contains all the compat calls, and leave the main table for the nat- ive calls, to more closely match the method we use every- where else. Suggested-by: Arnd Bergmann Signed-off-by: Firoz Khan --- arch/powerpc/include/asm

[PATCH v4 5/5] powerpc: generate uapi header and system call table files

2018-12-06 Thread Firoz Khan
script invoked by parisc/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbl.S file. Signed-off-by: Firoz Khan --- arch

Re: [PATCH v4 0/5] powerpc: system call table generation support

2018-12-06 Thread Firoz Khan
++ sathn...@linux.vnet.ibm.com, Hi Satheesh, On Fri, 7 Dec 2018 at 11:42, Firoz Khan wrote: > > > Changes since v3: > - split compat syscall table out from native table. > - modified the script to add new line in the generated >file. I have fixed few major issue. Coul

Re: [PATCH v4 0/5] powerpc: system call table generation support

2018-12-07 Thread Firoz Khan
Hi Satheesh, On Fri, 7 Dec 2018 at 12:57, Satheesh Rajendran wrote: > > On Fri, Dec 07, 2018 at 11:41:35AM +0530, Firoz Khan wrote: > Hi Firoz, > > This version(v4) booted fine in IBM Power8 box. Sounds good. Thanks for the support. Thanks Arnd for sharing the solution for "

Re: [PATCH v4 0/7] mips: system call table generation support

2018-12-09 Thread Firoz Khan
Hi Paul, On Thu, 6 Dec 2018 at 10:49, Firoz Khan wrote: > > The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the >

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-11 Thread Firoz Khan
Hi Paul, On Wed, 12 Dec 2018 at 00:29, Paul Burton wrote: > > Will this below change will help? > > > > #define _MIPS_SIM_ABI32 1 > > #define _MIPS_SIM_NABI322 > > #define _MIPS_SIM_ABI64 3 > > +#define _MIPS_SIM_ABIN64 _MIPS_SIM_ABI64 > > Hmm, I

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-13 Thread Firoz Khan
Hi Paul, On Thu, 13 Dec 2018 at 03:58, Paul Burton wrote: > > Hi Firoz, > > On Wed, Dec 12, 2018 at 10:04:47AM +0530, Firoz Khan wrote: > > > > Sure, I think '64' to 'n64' conversion must be remove it from this patch > > series.I can send v5 with

[PATCH v5 1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-13 Thread Firoz Khan
so need to enclose this macro with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/unistd.h | 3 +-- arch/powerpc/include/uapi/asm/unistd.h | 5 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/unistd

[PATCH v5 0/5] powerpc: system call table generation support

2018-12-13 Thread Firoz Khan
ripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall_*.tbl. - changed from generic-y to generated-y in Kbuild. Firoz Khan (5): powerpc: add __NR_syscalls along with NR_syscalls powerpc: move macro definition from asm/systbl.h powerpc: add sy

[PATCH v5 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-13 Thread Firoz Khan
change. This change will simplify the implementation of system call table generation script and help to come up a common implementation across all architecture. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/systbl.h | 1 - arch/powerpc/kernel/systbl.S | 1 + 2 files changed, 1

[PATCH v5 5/5] powerpc: generate uapi header and system call table files

2018-12-13 Thread Firoz Khan
script invoked by parisc/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbl.S file. Signed-off-by: Firoz Khan --- arch

[PATCH v5 3/5] powerpc: add system call table generation support

2018-12-13 Thread Firoz Khan
files will parse the content syscall.tbl to generate the header and table files. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/powerpc/kernel/syscalls/Makefile | 63 + arch

[PATCH v5 4/5] powerpc: split compat syscall table out from native table

2018-12-13 Thread Firoz Khan
other archit- ectures. Split out a new compat_sys_call_table symbol that contains all the compat calls, and leave the main table for the nat- ive calls, to more closely match the method we use every- where else. Suggested-by: Arnd Bergmann Signed-off-by: Firoz Khan --- arch/powerpc/include/asm

[PATCH v5 0/7] mips: system call table generation support

2018-12-13 Thread Firoz Khan
in syscall.tbl. - added "comments" in syscall_*.tbl. - changed from generic-y to generated-y in Kbuild. Firoz Khan (7): mips: add __NR_syscalls along with __NR_Linux_syscalls mips: remove unused macros mips: rename macros and files from '64' to 'n64' mips: add +1

[PATCH v5 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-13 Thread Firoz Khan
When we get nanoMIPS support we'll be introducing the p32 ABI, and there's a reasonable chance that the equivalent p64 ABI may come along in the future. Using 'n64' now would avoid confusion in that case where we may have 2 different 64-bit ABIs. Suggested-by: Paul Burton

[PATCH v5 4/7] mips: add +1 to __NR_syscalls in uapi header

2018-12-13 Thread Firoz Khan
order to make the implementation common across all architect- ures, add +1 to __NR_syscalls, which will be equal to the last system call number +1. Signed-off-by: Firoz Khan --- arch/mips/include/uapi/asm/unistd.h | 12 ++-- arch/mips/kernel/ftrace.c | 6 +++--- arch/mips

[PATCH v5 1/7] mips: add __NR_syscalls along with __NR_Linux_syscalls

2018-12-13 Thread Firoz Khan
header to simplifies the implementation. We also need to enclose this macro with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan --- arch/mips/include/uapi/asm/unistd.h | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/mips/include/uapi/as

[PATCH v5 5/7] mips: remove syscall table entries

2018-12-13 Thread Firoz Khan
. In order to come up with a common implementation across all archit- ecture, we need to remove mipsmt_sys_sched_setaffinity and mipsmt- _sys_sched_getaffinity from the table and define it in other way. Signed-off-by: Firoz Khan --- arch/mips/kernel/scall32-o32.S | 24 1

[PATCH v5 2/7] mips: remove unused macros

2018-12-13 Thread Firoz Khan
odbye and thanks for all the fish"), eight years ago. Signed-off-by: Firoz Khan --- arch/mips/include/asm/unistd.h | 8 arch/mips/include/uapi/asm/unistd.h | 15 --- arch/mips/kernel/scall32-o32.S | 3 --- 3 files changed, 26 deletions(-) diff --git a

[PATCH v5 6/7] mips: add system call table generation support

2018-12-13 Thread Firoz Khan
table. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/mips/kernel/syscalls/Makefile| 96 arch/mips/kernel/syscalls/syscall_n32.tbl | 343

[PATCH v5 7/7] mips: generate uapi header and system call table files

2018-12-13 Thread Firoz Khan
-o32/64-n64/64-n32/- 64-o32.Sfile. Signed-off-by: Firoz Khan --- arch/mips/Makefile |3 + arch/mips/include/asm/Kbuild|4 + arch/mips/include/asm/unistd.h |3 + arch/mips/include/uapi/asm/Kbuild |6 + arch/mips/include/uapi/asm/unistd.h | 1070

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-13 Thread Firoz Khan
Hi Paul, On Fri, 14 Dec 2018 at 01:45, Paul Burton wrote: > I've applied v5 but undone the change from __NR_64_* to __NR_N64_* > because it's part of the UAPI & a github code search showed that it's > actually used. > > Could you take a look at this branch & check that you're OK with it > before

Re: [PATCH v3 0/5] alpha: system call table generation support

2018-12-14 Thread Firoz Khan
Hi Folks, On Tue, 13 Nov 2018 at 15:02, Firoz Khan wrote: > > The purpose of this patch series is, we can easily > add/modify/delete system call table support by cha- > nging entry in syscall.tbl file instead of manually > changing many files. The other goal is to unify the >

Re: [PATCH v5 0/5] powerpc: system call table generation support

2018-12-17 Thread Firoz Khan
Hi Satheesh, On Mon, 17 Dec 2018 at 13:39, Satheesh Rajendran wrote: > > Hi Firoz, > > On Thu, Dec 13, 2018 at 02:32:45PM +0530, Firoz Khan wrote: > Tried to apply on linus "master" and > linuxppc-dev(https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.gi

[PATCH v6 0/5] powerpc: system call table generation support

2018-12-17 Thread Firoz Khan
mized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall_*.tbl. - changed from generic-y to generated-y in Kbuild. Firoz Khan (5): powerpc: add __NR_syscalls along with NR_syscalls powerpc: move macro defi

[PATCH v6 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-17 Thread Firoz Khan
change. This change will simplify the implementation of system call table generation script and help to come up a common implementation across all architecture. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/systbl.h | 1 - arch/powerpc/kernel/systbl.S | 1 + 2 files changed, 1

[PATCH v6 4/5] powerpc: split compat syscall table out from native table

2018-12-17 Thread Firoz Khan
other archit- ectures. Split out a new compat_sys_call_table symbol that contains all the compat calls, and leave the main table for the nat- ive calls, to more closely match the method we use every- where else. Suggested-by: Arnd Bergmann Signed-off-by: Firoz Khan --- arch/powerpc/include/asm

[PATCH v6 3/5] powerpc: add system call table generation support

2018-12-17 Thread Firoz Khan
files will parse the content syscall.tbl to generate the header and table files. ARM, s390 and x86 architecuture does have similar support. I leverage their implementation to come up with a generic solution. Signed-off-by: Firoz Khan --- arch/powerpc/kernel/syscalls/Makefile | 63 + arch

[PATCH v6 5/5] powerpc: generate uapi header and system call table files

2018-12-17 Thread Firoz Khan
script invoked by parisc/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbl.S file. Signed-off-by: Firoz Khan --- arch

[PATCH v6 1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-17 Thread Firoz Khan
so need to enclose this macro with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan --- arch/powerpc/include/asm/unistd.h | 3 +-- arch/powerpc/include/uapi/asm/unistd.h | 5 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/unistd

Re: [PATCH v5 0/5] powerpc: system call table generation support

2018-12-17 Thread Firoz Khan
Hi Michael, On Mon, 17 Dec 2018 at 16:01, Michael Ellerman wrote: > No it's fine if it applies on next. > > I can also fix up minor merge conflicts if there are any. Ohh. I already rebased and sent v6. Thanks Firoz

Re: [PATCH v4 0/7] mips: system call table generation support

2018-12-10 Thread Firoz Khan
On Mon, 10 Dec 2018 at 11:11, Paul Burton wrote: > > Hi Firoz, > > On Mon, Dec 10, 2018 at 11:05:38AM +0530, Firoz Khan wrote: > > Please review this patch series and queue it for linux-next. > > It's been ~4 days, 2 of which were a weekend. I'll get to it,

Re: [PATCH v4 3/7] mips: rename macros and files from '64' to 'n64'

2018-12-11 Thread Firoz Khan
Hi Paul, On Tue, 11 Dec 2018 at 01:21, Paul Burton wrote: > > Hi Firoz, > > On Thu, Dec 06, 2018 at 10:48:24AM +0530, Firoz Khan wrote: > > diff --git a/arch/mips/include/uapi/asm/sgidefs.h > > b/arch/mips/include/uapi/asm/sgidefs.h > > index 26143e3..0364eec 1006

[PATCH v2] scripts/syscalls: add system call table file for asm-generic

2019-01-07 Thread Firoz Khan
/ Signed-off-by: Firoz Khan --- Changes since v1: - added syscall entry kexec_file_load. - modified the custom abi from archsp to archs*. - removed the entry cacheflush. - modified the entry from arch_specific_syscall to arch_specific_syscall0. --- scripts/syscalls/syscall.tbl | 358

[PATCH 1/3] c6x: add Makefile to invoke syscall table generation script

2019-01-07 Thread Firoz Khan
scripts scripts/syscallnr.sh can generate total number of syscall which doesn't invoke from this Makefile. Signed-off-by: Firoz Khan --- arch/c6x/kernel/syscalls/Makefile | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 arch/c6x/kernel/sys

[PATCH 2/3] c6x: add __ARCH_NOMMU as a bugfix

2019-01-07 Thread Firoz Khan
Add __ARCH_NOMMU in uapi/asm/unistd.h file as a bugfix. Signed-off-by: Firoz Khan --- arch/c6x/include/uapi/asm/unistd.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/c6x/include/uapi/asm/unistd.h b/arch/c6x/include/uapi/asm/unistd.h index 6b2fe79..9e9ffe5 100644 --- a/arch/c6x

[PATCH 3/3] c6x: generate uapi and kapi headers

2019-01-07 Thread Firoz Khan
unistd.h and sys_c6x.c files by replacing asm-generic/unistd.h file. Signed-off-by: Firoz Khan --- arch/c6x/Makefile | 3 +++ arch/c6x/include/asm/Kbuild| 1 + arch/c6x/include/uapi/asm/Kbuild | 1 + arch/c6x/include/uapi/asm/unistd.h | 14 +- arch/c6x/kernel

[PATCH 0/3] c6x: system call table generation for asm-generic

2019-01-07 Thread Firoz Khan
and use syscall.tbl as inputs. This implementation will replace asm-generic- /unistd.h. This patch depends on: https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ https://lore.kernel.org/lkml/1546520681-24453-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan

[PATCH] scripts: unify system call table generation scripts

2019-01-02 Thread Firoz Khan
, create common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. Signed-off-by: Firoz Khan --- scripts/syscallhdr.sh | 37 + scripts/syscalln

[PATCH 0/2] Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): mips: remove

[PATCH 2/2] mips: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
/scall32-o32/64-n64/64-n32/- 64-o32.Sfile. Signed-off-by: Firoz Khan --- arch/mips/kernel/syscalls/Makefile | 6 +++--- arch/mips/kernel/syscalls/syscallhdr.sh | 37 - arch/mips/kernel/syscalls/syscallnr.sh | 28 - arch/mips/kernel

[PATCH 1/2] mips: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/mips/kernel/scall32-o32.S | 2 +- arch/mips/kernel/scall64-n32.S | 2 +- arch/mips/kernel/scall64-n64.S | 2 +- arch/mips/kernel/scall64-o32.S | 2 +- arch

[PATCH 0/2] powerpc: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): powerpc: re

[PATCH 1/2] powerpc: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/powerpc/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/powerpc/kernel/systbl.S| 6 +++--- arch/powerpc/platforms/cell/spu_callbacks.c | 2 +- 3 files changed, 6 insertions(+), 6 dele

[PATCH 2/2] powerpc: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
script invoked by parisc/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbl.S file. Signed-off-by: Firoz Khan --- arch

[PATCH 0/2] alpha: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): alpha: remove

[PATCH 2/2] alpha: generate uapi header and syscall table header files

2019-01-02 Thread Firoz Khan
and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbls.S file. Signed-off-by: Firoz Khan --- arch/alpha/kernel/syscalls/Makefile

[PATCH 1/2] alpha: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/alpha/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/alpha/kernel/systbls.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/alpha/kernel/syscalls/syscalltbl.

[PATCH 0/2] microblaze: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): microblaze: re

[PATCH 1/2] microblaze: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/microblaze/kernel/syscall_table.S| 2 +- arch/microblaze/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/microblaze/k

[PATCH 2/2] microblaze: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/microblaze/kernel

[PATCH 1/2] m68k: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/m68k/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/m68k/kernel/syscalltable.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/m68k/kernel/syscalls/syscalltbl.

[PATCH 0/2] m68k: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): m68k: remove

[PATCH 2/2] m68k: generate uapi header and syscall table header files

2019-01-02 Thread Firoz Khan
the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscalltable.S file. Signed-off-by: Firoz Khan --- arch/m68k/kernel/syscalls/Makefile

[PATCH 2/2] ia64: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/entry.S file. Signed-off-by: Firoz Khan --- arch/ia64/kernel/syscalls/Makefile | 11

[PATCH 0/2] ia64: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): ia64: remove

[PATCH 1/2] ia64: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/ia64/kernel/entry.S| 2 +- arch/ia64/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/k

[PATCH 0/2] xtensa: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): xtensa: re

[PATCH 1/2] xtensa: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/xtensa/kernel/syscall.c | 2 +- arch/xtensa/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/xtensa/kernel/syscall.c b/arch/x

[PATCH 2/2] xtensa: generate uapi header and syscall table header files

2019-01-02 Thread Firoz Khan
and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall.c file. Signed-off-by: Firoz Khan --- arch/xtensa/kernel/syscalls/Makefile

[PATCH 0/2] sh: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): sh: remove

[PATCH 2/2] sh: generate uapi header and syscall table header files

2019-01-02 Thread Firoz Khan
the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall_32.S file. Signed-off-by: Firoz Khan --- arch/sh/kernel/syscalls/Makefile

[PATCH 1/2] sh: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/sh/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/sh/kernel/syscalls_32.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sh/kernel/syscalls/syscalltbl.sh b/ar

[PATCH 1/3] sparc: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/sparc/kernel/syscalls/syscalltbl.sh | 4 ++-- arch/sparc/kernel/systbls_32.S | 2 +- arch/sparc/kernel/systbls_64.S | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)

[PATCH 2/3] sparc: rename not implemented system call

2019-01-02 Thread Firoz Khan
Rename the sparc not implemented system call - sys_nis_syscall to sys_ni_syscall to unify the system call table implementation across all architectures. This is neccessory to do it if we have to keep the scripts in common location. Signed-off-by: Firoz Khan --- arch/sparc/kernel/syscalls

[PATCH 0/3] sparc: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (3): sparc: remove

[PATCH 3/3] sparc: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
invoked by parisc/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/systbls_32/64.S file. Signed-off-by: Firoz Khan --- arch

[PATCH 1/2] parisc: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
will unifies the implementation with some other architetures too. Signed-off-by: Firoz Khan --- arch/parisc/kernel/syscall.S | 2 +- arch/parisc/kernel/syscalls/syscalltbl.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/parisc/kernel/syscall.S b/arch/p

[PATCH 2/2] parisc: generate uapi header and system call table files

2019-01-02 Thread Firoz Khan
From: Firoz Khan Unified system call table generation script must be run to generate unistd_32/64.h and syscall_table_32/64/c32.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32/64.h and syscall_table- _32/64/c32.h files by the syscall table

[PATCH 0/2] parisc: Unify the system call scripts

2019-01-02 Thread Firoz Khan
common ".sh" files and keep it in the common directory, script/. This will be a generic scripts which can use for all the above architectures. This patch depends on; https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ Firoz Khan (2): parisc: re

Re: [PATCH 1/2] m68k: remove nargs from __SYSCALL

2019-01-03 Thread Firoz Khan
Hi Geert, Thanks for your feedback. On Thu, 3 Jan 2019 at 16:15, Geert Uytterhoeven wrote: > > > > while [ $t_nxt -lt $t_nr ]; do > > - printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}" > > + printf "__SYSCALL(%s,sys_ni_syscall)\n" "${t_nxt}" > > Please ke

Re: [PATCH] scripts: unify system call table generation scripts

2019-01-03 Thread Firoz Khan
++ adding more folks I closely worked with :) On Wed, 2 Jan 2019 at 19:59, Firoz Khan wrote: > > System call table generation support is provided for > alpha, ia64, m68k, microblaze, mips, parisc, powerpc, > sh, sparc and xtensa architectures. The implementat- > ions are almost

Re: [PATCH] scripts: unify system call table generation scripts

2019-01-03 Thread Firoz Khan
Hi Geert, On Thu, 3 Jan 2019 at 17:04, Firoz Khan wrote: > > +fileguard=_UAPI_ASM_`basename "$out" | sed \ > > Currently, all but MIPS have the architecture name included in > the file guard. Shouldn't that be retained? I was planning to do something similar

  1   2   >