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

2019-02-25 Thread Firoz Khan
Hi David, > > This patch depends on; > > > > https://lore.kernel.org/lkml/1546439331-18646-1-git-send-email-firoz.k...@linaro.org/ > > Can you please merge this series in with that dependency > then? I was planning to push this patch series independently. But when Arnd (he is guiding me for

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

2019-01-21 Thread Firoz Khan
: > > n Sun, Jan 20, 2019 at 12:57 AM Will Deacon wrote: > > > > On Thu, Jan 03, 2019 at 09:10:22PM +0530, Firoz Khan wrote: > > > This will be an automated scripts to provide easy support > > > for add/modify/delete the system call entry by add in > > &

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

2019-01-14 Thread Firoz Khan
Hi Michal, On Thu, 3 Jan 2019 at 18:39, Firoz Khan wrote: > > Looks good. Will keep this in my queue till depending patch is applied. > > Thanks for the feedback. As Geert shared few feedback while m68k review, > Hopefully, I may have to include those changes here also.

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

2019-01-14 Thread Firoz Khan
Hi Helge, On Sun, 6 Jan 2019 at 14:37, Helge Deller wrote: > > Both patches seem OK, and I can then take them through the parisc > git tree when the patch above has reached upstream. Thanks for the mail. Sorry for the late response as I was on a vacation. FYI, I'm going to abandon this patch

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

2019-01-14 Thread Firoz Khan
Hi Geert, Rob, Guenter, Thanks for the mail. On Sat, 12 Jan 2019 at 14:53, Geert Uytterhoeven wrote: > On Fri, Jan 11, 2019 at 1:37 AM Guenter Roeck wrote: > > On Wed, Jan 02, 2019 at 09:07:25PM +0530, Firoz Khan wrote: > > Have you tested this patch ? Yes. > > Al

[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
by 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 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/syscalls

[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

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

2019-01-03 Thread Firoz Khan
Hi Max, On Fri, 4 Jan 2019 at 11:29, Max Filippov wrote: > > On Thu, Jan 3, 2019 at 9:13 PM Firoz Khan wrote: > > On Fri, 4 Jan 2019 at 04:14, Max Filippov wrote: > > > > This build rule is unused now as I was tried to implement > > something else. Hopefully I'

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

2019-01-03 Thread Firoz Khan
Hi Max, On Fri, 4 Jan 2019 at 11:25, Max Filippov wrote: > On Thu, Jan 3, 2019 at 9:17 PM Firoz Khan wrote: > > On Fri, 4 Jan 2019 at 08:28, Max Filippov wrote: > > > On Wed, Jan 2, 2019 at 7:29 AM Firoz Khan wrote: > > This was intentional as I was trying compil

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

2019-01-03 Thread Firoz Khan
Hi Max, Thanks for your reply. On Fri, 4 Jan 2019 at 08:28, Max Filippov wrote: > On Wed, Jan 2, 2019 at 7:29 AM Firoz Khan wrote: > > while [ $t_nxt -lt $t_nr ]; do > > - printf "__SYSCALL(%s, sys_ni_syscall, )\n" "${t_nxt}" >

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

2019-01-03 Thread Firoz Khan
Hi Max, Thanks for your feedback. On Fri, 4 Jan 2019 at 04:14, Max Filippov wrote: > > > > +quiet_cmd_sysnr = SYSNR $@ > > + cmd_sysnr = $(CONFIG_SHELL) '$(sysnr)' '$<' '$@' \ > > + '$(sysnr_abis_$(basetarget))' \ > > +

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

2019-01-03 Thread Firoz Khan
by unistd.h, sys.c and sys32.c files by rep- lacing asm-generic/unistd.h file. Signed-off-by: Firoz Khan --- arch/arm64/Makefile | 3 + arch/arm64/include/asm/Kbuild| 2 + arch/arm64/include/asm/unistd32.h| 826 --- arch/arm64/include/uapi

[PATCH 2/3] arm64: assign __NR_*_Linux_syscalls generated by the scripts

2019-01-03 Thread Firoz Khan
be assigned. Otherwise the hard coded values need to be changed whenever we either add a new system call or delete a existing system call. Signed-off-by: Firoz Khan --- arch/arm64/include/asm/unistd.h | 10 ++ arch/arm64/kernel/sys.c | 4 ++-- arch/arm64/kernel/sys32.c | 4

[PATCH 1/3] arm64: add system call table generation files

2019-01-03 Thread Firoz Khan
- uirement which will be used as input for the scripts which gene- rate the uapi and kapi headers. Signed-off-by: Firoz Khan --- arch/arm64/kernel/syscalls/Makefile | 70 + arch/arm64/kernel/syscalls/syscall_arm32.tbl | 434 +++ 2 files changed, 504 insertions

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

2019-01-03 Thread Firoz Khan
/ Firoz Khan (3): arm64: add system call table generation files arm64: assign __NR_*_Linux_syscalls generated by the scripts arm64: generate uapi and kapi headers arch/arm64/Makefile | 3 + arch/arm64/include/asm/Kbuild| 2 + arch/arm64/include/asm

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

2019-01-03 Thread Firoz Khan
Hi Michal, On Thu, 3 Jan 2019 at 18:00, Michal Simek wrote: > > arch/microblaze/kernel/syscall_table.S| 2 +- > > arch/microblaze/kernel/syscalls/Makefile | 11 ++-- > > arch/microblaze/kernel/syscalls/syscallhdr.sh | 36 > > --- > >

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

2019-01-03 Thread Firoz Khan
/ Signed-off-by: Firoz Khan --- scripts/syscalls/syscall.tbl | 358 +++ 1 file changed, 358 insertions(+) create mode 100644 scripts/syscalls/syscall.tbl diff --git a/scripts/syscalls/syscall.tbl b/scripts/syscalls/syscall.tbl new file mode 100644 index 000

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

2019-01-03 Thread Firoz Khan
Hi Geert, Thanks for your feedback! On Thu, 3 Jan 2019 at 17:13, Geert Uytterhoeven wrote: > > 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. > > This doesn't really

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 to th

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 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

[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

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

2019-01-02 Thread Firoz Khan
). This 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/parisc

[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 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 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 1/3] sparc: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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(-) diff

[PATCH 2/2] sh: 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_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
). This 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/arch/sh

[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] 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 1/2] xtensa: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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/xtensa

[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] ia64: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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/kernel

[PATCH 2/2] ia64: generate uapi header and system call table 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/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 2/2] m68k: 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/syscalltable.S file. Signed-off-by: Firoz Khan --- arch/m68k/kernel/syscalls/Makefile

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

2019-01-02 Thread Firoz Khan
). This 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.sh b

[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 1/2] microblaze: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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/kernel

[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 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] alpha: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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.sh b

[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 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] 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 1/2] powerpc: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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 deletions

[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] mips: remove nargs from __SYSCALL

2019-01-02 Thread Firoz Khan
). This 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/mips

[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 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] 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

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

2018-12-23 Thread Firoz Khan
On Sun, 23 Dec 2018 at 21:51, Paul Burton wrote: > > Hi Firoz, > > On Sun, Dec 23, 2018 at 08:15:48AM -0800, Paul Burton wrote: > > Hello, > > > > Firoz Khan wrote: > > > The purpose of this patch series is, we can easily > > > add/modify/delete sys

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

2018-12-23 Thread Firoz Khan
On Sun, 23 Dec 2018 at 18:58, Michael Ellerman wrote: > > On Mon, 2018-12-17 at 10:40:32 UTC, Firoz Khan wrote: > > NR_syscalls macro holds the number of system call exist > > in powerpc architecture. We have to change the value of > > NR_syscalls, if we add or delete a

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

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

2018-12-17 Thread Firoz Khan
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.h b/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 4/5] powerpc: split compat syscall table out from native table

2018-12-17 Thread Firoz Khan
as on the 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 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-17 Thread Firoz Khan
this 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 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 0/5] powerpc: system call table generation support

2018-12-17 Thread Firoz Khan
/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 definitio

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

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 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

[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

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

2018-12-13 Thread Firoz Khan
. In 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
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/asm/unistd.h

[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 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 Signed-off-by: Firoz

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

2018-12-13 Thread Firoz Khan
"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 to __NR_syscalls in uapi header mips: remo

[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
as on the 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 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-13 Thread Firoz Khan
this 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 1/5] powerpc: add __NR_syscalls along with NR_syscalls

2018-12-13 Thread Firoz Khan
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.h b/arch

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

2018-12-13 Thread Firoz Khan
. - 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 system

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 without '64' to 'n64' co

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,

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

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, but >

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 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/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

[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

[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
as on the 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 2/5] powerpc: move macro definition from asm/systbl.h

2018-12-06 Thread Firoz Khan
this 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
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.h b/arch

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

2018-12-06 Thread Firoz Khan
call_*.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 powerpc

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

2018-11-28 Thread Firoz Khan
: - 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 powerpc:

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

2018-11-28 Thread Firoz Khan
: - 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 powerpc:

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

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

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

  1   2   3   >