Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp976073imm; Thu, 6 Sep 2018 13:11:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmAa4dD0I9E3Gjznws/d9kiqG1QbSzfNRVh8tUa7wlX/cwOU07GSB+QuSGe+hRl1g9zaqD X-Received: by 2002:a63:115f:: with SMTP id 31-v6mr4597442pgr.53.1536264693850; Thu, 06 Sep 2018 13:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536264693; cv=none; d=google.com; s=arc-20160816; b=J3MQqJQyAWAziaPelqoxFCQ3rYKqmjsKsStrWWyRf5UrgyApCUKGSsYS6yEFs+54IQ nmwr+z7LrJ+DOHc327TzQKdp63VQvjDx7jCnaad3QngBgdw3PD3YtWG6b8iDoE6Ka9+w cGADpXjHGVtRdCfcAGaIdVjEz51GknmHrq+LDw5/Tft5Hg6jVrPnPnlZJqalJb8sl2VA JyD3+D4yMHLuWntmjUer0/31yzDB7/C2y05SeydYkPdm4eN9zHd374kVGjwzyofw5Aps nHtBEZmuPSCS/0rwCWnjhws/puks64BAymmW75UhJc9kuYh93w83w32rIFYHQ1Y/37/b x35w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=P4j/ZdlBnC7mox9+Z+HhZVyNNI/pEX1gIcK40NlsKUc=; b=s3jOgkj9W/YEJ/OVOag4T9R99xmyVp5DiNJBJD4sicYzBhHSC/7VkSXhY476Id1ZKi qLRIz7lJavYmOUWOVNWItBoq7MUn58hLrXGXvIOawEET8vnONpowJcVpmOHAOmVhzf6P rtT8vdOiJfHimdcRd+H6LMtC56u3YGi+3pybHtSVomZhl+xPPB52/AFBFFMA78rdT1Nh VTaCEVjChBgRPNB6Y2Mepm2I4cfIQsWiZYdR8u/0+EUT6staBvWcTpuSwyimEBidy5zQ XSpytrd7u2G+w2kUFrQLp5A6nedWtH2lCQQvjixNNiExsi6DPpWtKkuZbV7V0AyfCamm XQXQ== 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 y9-v6si6057112pgi.691.2018.09.06.13.11.15; Thu, 06 Sep 2018 13:11:33 -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 S1729724AbeIFSOl (ORCPT + 99 others); Thu, 6 Sep 2018 14:14:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:34039 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbeIFSOk (ORCPT ); Thu, 6 Sep 2018 14:14:40 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fxuUv-0008H9-Qn; Thu, 06 Sep 2018 15:39:01 +0200 Date: Thu, 6 Sep 2018 15:39:01 +0200 (CEST) From: Thomas Gleixner To: Guo Ren 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 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Btw, some of your patches have tab vs. space inconsistencies, e.g. + siginfo_t info; + int fault; + unsigned long address = mmu_meh & PAGE_MASK; Thanks, tglx