diff mbox

sh: Wire up finit_module syscall

Message ID 1352872900-25112-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com (mailing list archive)
State Awaiting Upstream
Delegated to: Paul Mundt
Headers show

Commit Message

Nobuhiro Iwamatsu Nov. 14, 2012, 6:01 a.m. UTC
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
 arch/sh/include/uapi/asm/unistd_32.h |    3 ++-
 arch/sh/include/uapi/asm/unistd_64.h |    3 ++-
 arch/sh/kernel/syscalls_32.S         |    1 +
 arch/sh/kernel/syscalls_64.S         |    1 +
 4 files changed, 6 insertions(+), 2 deletions(-)

Comments

Paul Mundt Nov. 14, 2012, 6:13 a.m. UTC | #1
On Wed, Nov 14, 2012 at 03:01:40PM +0900, Nobuhiro Iwamatsu wrote:
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> ---
>  arch/sh/include/uapi/asm/unistd_32.h |    3 ++-
>  arch/sh/include/uapi/asm/unistd_64.h |    3 ++-
>  arch/sh/kernel/syscalls_32.S         |    1 +
>  arch/sh/kernel/syscalls_64.S         |    1 +
>  4 files changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
> index 9e465f2..d13a1d6 100644
> --- a/arch/sh/include/uapi/asm/unistd_32.h
> +++ b/arch/sh/include/uapi/asm/unistd_32.h
> @@ -379,7 +379,8 @@
>  #define __NR_process_vm_readv	365
>  #define __NR_process_vm_writev	366
>  #define __NR_kcmp		367
> +#define __NR_finit_module	368
>  
> -#define NR_syscalls 368
> +#define NR_syscalls 369
>  
>  #endif /* __ASM_SH_UNISTD_32_H */
> diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
> index 8e3a2ed..9f1a456 100644
> --- a/arch/sh/include/uapi/asm/unistd_64.h
> +++ b/arch/sh/include/uapi/asm/unistd_64.h
> @@ -399,7 +399,8 @@
>  #define __NR_process_vm_readv	376
>  #define __NR_process_vm_writev	377
>  #define __NR_kcmp		378
> +#define __NR_finit_module	368
>  
Copy and paste error, this needs to be 379.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Nobuhiro Iwamatsu Nov. 14, 2012, 6:26 a.m. UTC | #2
On Wed, Nov 14, 2012 at 3:13 PM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Wed, Nov 14, 2012 at 03:01:40PM +0900, Nobuhiro Iwamatsu wrote:
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>> ---
>>  arch/sh/include/uapi/asm/unistd_32.h |    3 ++-
>>  arch/sh/include/uapi/asm/unistd_64.h |    3 ++-
>>  arch/sh/kernel/syscalls_32.S         |    1 +
>>  arch/sh/kernel/syscalls_64.S         |    1 +
>>  4 files changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
>> index 9e465f2..d13a1d6 100644
>> --- a/arch/sh/include/uapi/asm/unistd_32.h
>> +++ b/arch/sh/include/uapi/asm/unistd_32.h
>> @@ -379,7 +379,8 @@
>>  #define __NR_process_vm_readv        365
>>  #define __NR_process_vm_writev       366
>>  #define __NR_kcmp            367
>> +#define __NR_finit_module    368
>>
>> -#define NR_syscalls 368
>> +#define NR_syscalls 369
>>
>>  #endif /* __ASM_SH_UNISTD_32_H */
>> diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
>> index 8e3a2ed..9f1a456 100644
>> --- a/arch/sh/include/uapi/asm/unistd_64.h
>> +++ b/arch/sh/include/uapi/asm/unistd_64.h
>> @@ -399,7 +399,8 @@
>>  #define __NR_process_vm_readv        376
>>  #define __NR_process_vm_writev       377
>>  #define __NR_kcmp            378
>> +#define __NR_finit_module    368
>>
> Copy and paste error, this needs to be 379.
Ah, I will fix.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
index 9e465f2..d13a1d6 100644
--- a/arch/sh/include/uapi/asm/unistd_32.h
+++ b/arch/sh/include/uapi/asm/unistd_32.h
@@ -379,7 +379,8 @@ 
 #define __NR_process_vm_readv	365
 #define __NR_process_vm_writev	366
 #define __NR_kcmp		367
+#define __NR_finit_module	368
 
-#define NR_syscalls 368
+#define NR_syscalls 369
 
 #endif /* __ASM_SH_UNISTD_32_H */
diff --git a/arch/sh/include/uapi/asm/unistd_64.h b/arch/sh/include/uapi/asm/unistd_64.h
index 8e3a2ed..9f1a456 100644
--- a/arch/sh/include/uapi/asm/unistd_64.h
+++ b/arch/sh/include/uapi/asm/unistd_64.h
@@ -399,7 +399,8 @@ 
 #define __NR_process_vm_readv	376
 #define __NR_process_vm_writev	377
 #define __NR_kcmp		378
+#define __NR_finit_module	368
 
-#define NR_syscalls 379
+#define NR_syscalls 380
 
 #endif /* __ASM_SH_UNISTD_64_H */
diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S
index fe97ae5..734234b 100644
--- a/arch/sh/kernel/syscalls_32.S
+++ b/arch/sh/kernel/syscalls_32.S
@@ -385,3 +385,4 @@  ENTRY(sys_call_table)
 	.long sys_process_vm_readv	/* 365 */
 	.long sys_process_vm_writev
 	.long sys_kcmp
+	.long sys_finit_module
diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S
index 5c7b1c6..579fcb9 100644
--- a/arch/sh/kernel/syscalls_64.S
+++ b/arch/sh/kernel/syscalls_64.S
@@ -405,3 +405,4 @@  sys_call_table:
 	.long sys_process_vm_readv
 	.long sys_process_vm_writev
 	.long sys_kcmp
+	.long sys_finit_module