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

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

[PATCH 1/4] m68k: Rename system call table file name

2018-08-08 Thread Firoz Khan
all architecture, we need to change the file name to syscall_table.S. This change will unify the implementation across all architecture. Signed-off-by: Firoz Khan --- arch/m68k/kernel/Makefile| 2 +- arch/m68k/kernel/syscall_table.S | 403 +++ arch

[PATCH 0/4] System call table generation support

2018-08-08 Thread Firoz Khan
update syscall.tbl alone w.r.to the tip of the kernel. The impact of this is, few of the system call won't work. Firoz Khan (4): m68k: Rename system call table file name m68k: Replace NR_syscalls macro from asm/unistd.h m68k: Added system call table generation support m68k: uapi header

[PATCH 4/4] m68k: uapi header and system call table file generation

2018-08-08 Thread Firoz Khan
and 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 arch/m68k/kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/m68k/Makefile

[PATCH 3/4] m68k: Added system call table generation support

2018-08-08 Thread Firoz Khan
-by: Firoz Khan --- arch/m68k/kernel/syscalls/Makefile | 37 +++ arch/m68k/kernel/syscalls/syscall.tbl | 386 arch/m68k/kernel/syscalls/syscallhdr.sh | 33 +++ arch/m68k/kernel/syscalls/syscalltbl.sh | 28 +++ 4 files changed, 484 insertions(+) create mode

[PATCH 2/4] m68k: Replace NR_syscalls macro from asm/unistd.h

2018-08-08 Thread Firoz Khan
to simplifies the implementation. Signed-off-by: Firoz Khan --- arch/m68k/68000/entry.S | 4 ++-- arch/m68k/coldfire/entry.S | 2 +- arch/m68k/include/asm/unistd.h | 3 --- arch/m68k/include/uapi/asm/unistd.h | 2 ++ arch/m68k/kernel/entry.S| 4 ++-- 5 files

Re: [PATCH 2/4] m68k: Replace NR_syscalls macro from asm/unistd.h

2018-09-18 Thread Firoz Khan
On 9 August 2018 at 13:00, Geert Uytterhoeven wrote: > Hi Firoz, > > One first comment below... > > On Thu, Aug 9, 2018 at 7:16 AM Firoz Khan wrote: >> NR_syscalls macro holds the number of system call exist in m68k >> architecture. This macro is currently the part

Re: [PATCH 2/4] m68k: Replace NR_syscalls macro from asm/unistd.h

2018-09-20 Thread Firoz Khan
Hi Geert, On 18 September 2018 at 15:34, Geert Uytterhoeven wrote: > Hi Firoz, > > On Tue, Sep 18, 2018 at 9:16 AM Firoz Khan wrote: >> On 9 August 2018 at 13:00, Geert Uytterhoeven wrote: >> > One first comment below... >> > >> > On Thu

[PATCH v2 5/5] m68k: added __IGNORE* entries in asm/unistd.h

2018-09-20 Thread Firoz Khan
-by: Firoz Khan --- arch/m68k/include/asm/unistd.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h index 5072e94..cc5f640 100644 --- a/arch/m68k/include/asm/unistd.h +++ b/arch/m68k/include/asm/unistd.h @@ -31,4 +31,11

[PATCH v2 1/5] m68k: Rename system call table file name

2018-09-20 Thread Firoz Khan
all architecture, we need to change the file name to syscall_table.S. This change will unify the implementation across all architecture. Signed-off-by: Firoz Khan --- arch/m68k/kernel/Makefile| 2 +- arch/m68k/kernel/syscall_table.S | 403 +++ arch

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

2018-09-20 Thread Firoz Khan
and 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 arch/m68k/kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/m68k/Makefile

[PATCH v2 3/5] m68k: Added system call table generation support

2018-09-20 Thread Firoz Khan
in syscall.tbl. Signed-off-by: Firoz Khan --- arch/m68k/kernel/syscalls/Makefile | 37 arch/m68k/kernel/syscalls/syscall.tbl | 369 arch/m68k/kernel/syscalls/syscallhdr.sh | 39 arch/m68k/kernel/syscalls/syscalltbl.sh | 28 +++ 4 files changed, 473

Re: [PATCH 2/4] m68k: Replace NR_syscalls macro from asm/unistd.h

2018-09-22 Thread Firoz Khan
Hi Geert, On Thu, 20 Sep 2018 at 14:54, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Thu, Sep 20, 2018 at 10:12 AM Firoz Khan wrote: > > On 18 September 2018 at 15:34, Geert Uytterhoeven > > wrote: > > > On Tue, Sep 18, 2018 at 9:16 AM Firoz Khan wrote:

Re: [PATCH v2 1/5] m68k: Rename system call table file name

2018-09-22 Thread Firoz Khan
Hi Phillippe, On Fri, 21 Sep 2018 at 11:18, Philippe De Muyter wrote: > > On Thu, Sep 20, 2018 at 08:36:09PM +0530, Firoz Khan wrote: > > The system call table entries are present in syscalltable.S. One of > > the patch in this patch series will auto-generate the system call

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

2018-09-23 Thread Firoz Khan
Hi Greg, On Mon, 24 Sep 2018 at 06:38, Greg Ungerer wrote: > > Hi Firoz, > > On 21/09/18 01:06, Firoz Khan wrote: > > The purpose of this patch series is: > > 1. We can easily add/modify/delete system call by changing entry > > in syscall.tbl file. No need to manua

Re: [PATCH v2 3/5] m68k: Added system call table generation support

2018-09-24 Thread Firoz Khan
Hi Geert, On Mon, 24 Sep 2018 at 12:33, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Thu, Sep 20, 2018 at 5:07 PM Firoz Khan wrote: > > The system call tables are in different format in all > > architecture and it will be difficult to manually add or >

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

2018-09-24 Thread Firoz Khan
On Mon, 24 Sep 2018 at 12:35, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Thu, Sep 20, 2018 at 5:07 PM Firoz Khan wrote: > > System call table generation script must be run to generate > > unistd_32.h and syscall_table.h files. This patch will have > > changes

[PATCH v3 1/5] m68k: rename system call table file name

2018-10-01 Thread Firoz Khan
all architecture, we need to change the file name to syscall_table.S. This change will unify the implementation across all architecture. Signed-off-by: Firoz Khan --- arch/m68k/kernel/Makefile| 2 +- arch/m68k/kernel/{syscalltable.S => syscall_table.S} | 0 2 fi

[PATCH v3 2/5] m68k: replace NR_syscalls macro from asm/unistd.h

2018-10-01 Thread Firoz Khan
with #ifdef __KERNEL__ to avoid side effects. Signed-off-by: Firoz Khan --- arch/m68k/include/asm/unistd.h | 3 +-- arch/m68k/include/uapi/asm/unistd.h | 4 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h index

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

2018-10-01 Thread Firoz Khan
/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): m68k: rename system call table file name m68k: replace NR_syscalls macro from asm/unistd.h m68k: add system call

[PATCH v3 4/5] m68k: uapi header and system call table file generation

2018-10-01 Thread Firoz Khan
and 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 arch/m68k/kernel/syscall_table.S file. Signed-off-by: Firoz Khan --- arch/m68k/Makefile

[PATCH v3 3/5] m68k: add system call table generation support

2018-10-01 Thread Firoz Khan
in syscall.tbl. Signed-off-by: Firoz Khan --- arch/m68k/kernel/syscalls/Makefile | 38 arch/m68k/kernel/syscalls/syscall.tbl | 369 arch/m68k/kernel/syscalls/syscallhdr.sh | 35 +++ arch/m68k/kernel/syscalls/syscalltbl.sh | 34 +++ 4 files changed, 476

[PATCH v3 5/5] m68k: add __IGNORE* entries in asm/unistd.h

2018-10-01 Thread Firoz Khan
-by: Firoz Khan --- arch/m68k/include/asm/unistd.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/m68k/include/asm/unistd.h b/arch/m68k/include/asm/unistd.h index 5072e94..cc5f640 100644 --- a/arch/m68k/include/asm/unistd.h +++ b/arch/m68k/include/asm/unistd.h @@ -31,4 +31,11

[PATCH v4 1/4] m68k: rename system call table file name

2018-10-25 Thread Firoz Khan
all architecture, we need to change the file name to syscall- _table.S. This change will unify the system call table gener- tion implementation across all architecture. Signed-off-by: Firoz Khan --- arch/m68k/kernel/Makefile| 2 +- arch/m68k/kernel/{syscalltable.S

[PATCH v4 3/4] m68k: add system call table generation support

2018-10-25 Thread Firoz Khan
and 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/m68k/kernel/syscalls/Makefile | 38

[PATCH v4 2/4] m68k: add __NR_syscalls along with NR_syscalls

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

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

2018-10-25 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_table.S file. Signed-off-by: Firoz Khan --- arch/m68k/Makefile | 3

[PATCH v4 0/4] m68k: system call table generation support

2018-10-25 Thread Firoz Khan
by adding new entry in the syscall.tbl. Firoz Khan (4): m68k: rename system call table file name m68k: add __NR_syscalls along with NR_syscalls m68k: add system call table generation support m68k: generate uapi header and syscall table header files arch/m68k/Makefile | 3

Re: [PATCH v4 0/4] m68k: system call table generation support

2018-10-28 Thread Firoz Khan
Hi Geert, On Sat, 27 Oct 2018 at 20:17, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Fri, Oct 26, 2018 at 7:06 AM Firoz Khan wrote: > > The purpose of this patch series is, we can easily add/modify/delete > > system call table support by changing entry in sysc

[PATCH v5 1/3] m68k: add __NR_syscalls along with NR_syscalls

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

[PATCH v5 2/3] m68k: add system call table generation support

2018-11-12 Thread Firoz Khan
and 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/m68k/kernel/syscalls/Makefile | 38 arch

Re: [PATCH v5 2/3] m68k: add system call table generation support

2018-12-03 Thread Firoz Khan
Hi Geert, On Sun, 2 Dec 2018 at 19:27, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Tue, Nov 13, 2018 at 7:01 AM Firoz Khan wrote: > > The system call tables are in different format in all > > architecture and it will be difficult to manually add, > > modi

Re: [PATCH v5 2/3] m68k: add system call table generation support

2018-12-04 Thread Firoz Khan
Hi Geert, On Tue, 4 Dec 2018 at 13:26, Geert Uytterhoeven wrote: > > Hi Firoz, > > On Tue, Dec 4, 2018 at 4:22 AM Firoz Khan wrote: > > On Sun, 2 Dec 2018 at 19:27, Geert Uytterhoeven > > wrote: > > > On Tue, Nov 13, 2018 at 7:01 AM Firoz Khan wrot

Re: [PATCH v5 0/3] m68k: system call table generation support

2018-12-04 Thread Firoz Khan
Hi Geert, On Tue, 4 Dec 2018 at 14:22, Geert Uytterhoeven wrote: > > On Tue, Nov 13, 2018 at 7:01 AM 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

[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