Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2425782imm; Mon, 10 Sep 2018 00:32:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKanSJAM0rL6VWFrbI8Fur1j9kJhTj2GWjUtnadrim6c4g+ILCI+H6WiPQVR62XWlMUFMY X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr20741838plc.118.1536564735315; Mon, 10 Sep 2018 00:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536564735; cv=none; d=google.com; s=arc-20160816; b=MKwR4tYDByN0hf/I3qp2tKmHv3ez6FbHjuNavOQpEYN8GdshS4ZzqUvZx6Ku71ku32 1+Wmx+ZgKM+AwIJ76pzHyWV9IlXSdxUr319hWW2nmOzcTyySPa5Nt4a3nrh0zXXrUgQr RMnSRg8cSBbRZVHOduEGBym/EF6q3zZ6Pbl4LVOb4Dq76+k+5MMnOKJ4atyEUsdQxuSG A7dLyr8ZIGlNNR7yvalF/vLZTgu4ST7nvBENUXB/C8fBDTs0Ut7HsQv3pDGKIyy8dQuv Ykg7UN6T1oU7qjcm6JC3a8+szBWPlIFMN8NxINzH90tWVRhd6fM1JhLV38TjKHtCTAQ2 3BNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iRBioW3rsfkUvFOjrvHvpAsPrmucdnsXPfuyHsVY3W8=; b=NZBqvsi3JlcDVD9HAPbpULbQIpP+4Gwlz0JA/vLca3AnWZ6W0y2wse3g4l9wpns0lq e283pVCrxuRgRE3NqDYkrH4dNiUcc5o8B/qjqBcMTtjiXYi3OaI2h2Y2pjUoUfx49Q0B BUDRPSGW7TKI1jpckBtcQPHLC9sR1Y1+4Ee/Aj1o9puXYAoj5KiFVvg8DCmV8w72UJ1x n/CHrcQws1KWXLvkB/WPTGfwRKGFznSdaw5oRhbp+W9xHEl/ZbEi9Hw1FjrF8PhoQ6mB 2gg2F6soBgmZwXL/cdBT3XDJFEcSC6x8I+mf1B4E+G+C0KcN2MOsSu6ZR86mHaJQi0qr zpXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd4-v6si17015186plb.516.2018.09.10.00.31.59; Mon, 10 Sep 2018 00:32:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbeIJMXb (ORCPT + 99 others); Mon, 10 Sep 2018 08:23:31 -0400 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 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08141791|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03273;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.CoocMlg_1536564640; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:SMTPD_---.CoocMlg_1536564640) by smtp.aliyun-inc.com(10.147.41.120); Mon, 10 Sep 2018 15:30:41 +0800 Date: Mon, 10 Sep 2018 15:30:39 +0800 From: Guo Ren 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 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: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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