From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:48760 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727584AbeIJMXb (ORCPT ); Mon, 10 Sep 2018 08:23:31 -0400 Date: Mon, 10 Sep 2018 15:30:39 +0800 From: Guo Ren Subject: Re: [PATCH V3 10/26] csky: IRQ handling Message-ID: <20180910073039.GA4022@guoren-Inspiron-7460> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Thomas Gleixner Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, jason@lakedaemon.net, arnd@arndb.de, c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, green.hu@gmail.com Message-ID: <20180910073039.GQlKI68icZxk6cjLOF7QirEgenxAlxwP6kxMB_jocAQ@z> On Thu, Sep 06, 2018 at 03:39:01PM +0200, Thomas Gleixner wrote: > On Wed, 5 Sep 2018, Guo Ren wrote: > > > +static void (*handle_arch_irq)(struct pt_regs *regs) = NULL; > > + > > +void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) > > +{ > > + if (handle_arch_irq) > > + return; > > + > > + handle_arch_irq = handle_irq; > > +} > > Please don't introduce yet another variant of that. Please use > CONFIG_GENERIC_IRQ_MULTI_HANDLER which provides that in the generic code. Ok. > > Btw, some of your patches have tab vs. space inconsistencies, e.g. > > + siginfo_t info; > + int fault; > + unsigned long address = mmu_meh & PAGE_MASK Thx, I'll re-check. Best Regards Guo Ren