From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754630Ab1FHIEG (ORCPT ); Wed, 8 Jun 2011 04:04:06 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:48591 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751470Ab1FHIED (ORCPT ); Wed, 8 Jun 2011 04:04:03 -0400 Date: Wed, 8 Jun 2011 10:03:46 +0200 From: Ingo Molnar To: Andi Kleen Cc: linux-kernel@vger.kernel.org, Andi Kleen , x86@kernel.org Subject: Re: [PATCH] x86: Fix sys_call_table type in asm/syscall.h Message-ID: <20110608080346.GA11110@elte.hu> References: <1307490307-27443-1-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1307490307-27443-1-git-send-email-andi@firstfloor.org> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andi Kleen wrote: > From: Andi Kleen > > 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 > --- > 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 > #include > > -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