* [PATCH] x86: Fix sys_call_table type in asm/syscall.h
@ 2011-06-07 23:45 Andi Kleen
2011-06-08 8:03 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2011-06-07 23:45 UTC (permalink / raw)
To: linux-kernel; +Cc: Andi Kleen, x86
From: Andi Kleen <ak@linux.intel.com>
Make the sys_call_table type defined in asm/syscall.h match
the definition in syscall_64.c
Cc: x86@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
arch/x86/include/asm/syscall.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h
index c4a348f..32295b7 100644
--- a/arch/x86/include/asm/syscall.h
+++ b/arch/x86/include/asm/syscall.h
@@ -16,7 +16,8 @@
#include <linux/sched.h>
#include <linux/err.h>
-extern const unsigned long sys_call_table[];
+typedef void (*sys_call_ptr_t)(void);
+extern const sys_call_ptr_t sys_call_table[];
/*
* Only the low 32 bits of orig_ax are meaningful, so we return int.
--
1.7.4.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] x86: Fix sys_call_table type in asm/syscall.h
2011-06-07 23:45 [PATCH] x86: Fix sys_call_table type in asm/syscall.h Andi Kleen
@ 2011-06-08 8:03 ` Ingo Molnar
2011-06-08 8:17 ` Andi Kleen
0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2011-06-08 8:03 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel, Andi Kleen, x86
* Andi Kleen <andi@firstfloor.org> wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> Make the sys_call_table type defined in asm/syscall.h match
> the definition in syscall_64.c
>
> Cc: x86@kernel.org
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> arch/x86/include/asm/syscall.h | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/include/asm/syscall.h b/arch/x86/include/asm/syscall.h
> index c4a348f..32295b7 100644
> --- a/arch/x86/include/asm/syscall.h
> +++ b/arch/x86/include/asm/syscall.h
> @@ -16,7 +16,8 @@
> #include <linux/sched.h>
> #include <linux/err.h>
>
> -extern const unsigned long sys_call_table[];
> +typedef void (*sys_call_ptr_t)(void);
> +extern const sys_call_ptr_t sys_call_table[];
>
> /*
> * Only the low 32 bits of orig_ax are meaningful, so we return int.
There's an obvious problem with this patch, please fix it and resend.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86: Fix sys_call_table type in asm/syscall.h
2011-06-08 8:03 ` Ingo Molnar
@ 2011-06-08 8:17 ` Andi Kleen
2011-06-08 8:25 ` Ingo Molnar
0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2011-06-08 8:17 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Andi Kleen, linux-kernel, Andi Kleen, x86
> There's an obvious problem with this patch, please fix it and resend.
Nothing obvious to me. Can you be more specific?
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] x86: Fix sys_call_table type in asm/syscall.h
2011-06-08 8:17 ` Andi Kleen
@ 2011-06-08 8:25 ` Ingo Molnar
0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2011-06-08 8:25 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel, Andi Kleen, Thomas Gleixner, H. Peter Anvin
* Andi Kleen <andi@firstfloor.org> wrote:
> > There's an obvious problem with this patch, please fix it and resend.
>
> Nothing obvious to me. Can you be more specific?
Sure, a trivial git grep of the sys_call_ptr_t typedef you added to
syscall.h shows:
~/tip> git grep sys_call_ptr_t
arch/um/sys-x86_64/syscall_table.c:typedef void (*sys_call_ptr_t)(void);
arch/x86/include/asm/syscall.h:typedef void (*sys_call_ptr_t)(void);
arch/x86/kernel/syscall_64.c:typedef void (*sys_call_ptr_t)(void);
So you've now added a third typedef in addition to the two existing
ones. We obivously only want one in the kernel - the one you added to
the header file.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-08 8:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 23:45 [PATCH] x86: Fix sys_call_table type in asm/syscall.h Andi Kleen
2011-06-08 8:03 ` Ingo Molnar
2011-06-08 8:17 ` Andi Kleen
2011-06-08 8:25 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox