Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754065AbaLDMh7 (ORCPT ); Thu, 4 Dec 2014 07:37:59 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:62719 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753666AbaLDMh5 convert rfc822-to-8bit (ORCPT ); Thu, 4 Dec 2014 07:37:57 -0500 MIME-Version: 1.0 In-Reply-To: <1417692197-18518-1-git-send-email-chunyan.zhang@spreadtrum.com> References: <1417692197-18518-1-git-send-email-chunyan.zhang@spreadtrum.com> Date: Thu, 4 Dec 2014 20:37:56 +0800 Message-ID: Subject: Re: [PATCH] arm64/include/asm: Fixed a warning about 'struct pt_regs' From: Lyra Zhang To: Chunyan Zhang Cc: zhiming.yang@spreadtrum.com, "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, All I'm sorry that this is an accident from our IT-service, because they all use M$ software, and didn't familiar with git send-email. You can ignore this email. . Please forgive that persons who are only able to use M$ products. Thanks, Chunyan 2014-12-04 19:23 GMT+08:00 Chunyan Zhang : > If I include asm/irq.h on the top of my code, and set ARCH=arm64, > I'll get a compile warning, details are below: > warning: ‘struct pt_regs’ > declared inside parameter list [enabled by default] > > This patch is suggested by Arnd, see: > http://lists.infradead.org/pipermail/linux-arm-kernel/2014-December/308270.html > > Signed-off-by: Chunyan Zhang > --- > arch/arm64/include/asm/irq.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h > index e1f7ecd..acedc7e 100644 > --- a/arch/arm64/include/asm/irq.h > +++ b/arch/arm64/include/asm/irq.h > @@ -3,6 +3,8 @@ > > #include > > +struct pt_regs; > + > extern void (*handle_arch_irq)(struct pt_regs *); > extern void migrate_irqs(void); > extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/