Received: by 10.223.176.46 with SMTP id f43csp1867673wra; Thu, 25 Jan 2018 01:08:04 -0800 (PST) X-Google-Smtp-Source: AH8x225NFRdtP0AN8zyvLxhp/zKDGBB8EqBOK+jpEAONooYLKV30BLDwJBFZ+3WLRnB5NX6+5Yp9 X-Received: by 10.101.69.141 with SMTP id o13mr13017985pgq.204.1516871284706; Thu, 25 Jan 2018 01:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516871284; cv=none; d=google.com; s=arc-20160816; b=nMZwXUo0nWgMES4teGBAFYYm6SkvQUhsklILlppnYUv2DT5ZkqYQYXaGwyRtbf/E0s NYbI41Y1ZUYnkjWcnBOPIVoYZtbIu8rlHLiiSCyqmnnMv7AjVEX003qD7apu28XDeUVr f4ndZIOuTCgNCepu3ObMH+FxAK2dyKLqTKFBM0QqWIyMsW7hI/OJMuche2CBygnz4Zwp 90gGe8hqWCDDPzyKGNqr7JeVszB1O3hSoewbLsOlajyg4JSYphZCWXUQLMNsJ+emOsaz fgSpkf10CXW+mSbE84JggjjjbQcPqQy/T73XyWmico4yIi4UyN86hP+9RNP2SqUoV1D5 v56w== 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 :arc-authentication-results; bh=y7fm6Cc1BkJ57EtRux7WXKAHMrMjVyb0ZhWudyh6pF8=; b=wU6ugxT862K3rVUge9Bfz6v14AJYde8w3KSegpUF7gLdleF45SjhLEFQ2OQirTz2nY y+/xHgYKVGWukN4NF/Gk1OHV2uFWX13TzaNDWLe1O+Gfsyeuls8JDJDO0TGtL8VSH5xt m+FyCpyxcYVVNnuEJV1iaQ6ZRuZK2q0cSxMix1S6F72Ddc2FgZY0ONgG1JR4hnyzMh0+ nFM7/27usSvC3Qiki2g8pIWJkqzcM4zcmCgL6NGQrxAUifhv/aqxuGPIDEDWX5hWFVym KM//gqchwyBrK6zM0TOcHYQnzzNigRPacMaJY7A0nQpeRumNk+FF54r1tbawg1JsM0Dd BgHA== 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 f90-v6si1470205plf.0.2018.01.25.01.07.50; Thu, 25 Jan 2018 01:08:04 -0800 (PST) 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 S1751465AbeAYJGz (ORCPT + 99 others); Thu, 25 Jan 2018 04:06:55 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:34229 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbeAYJGw (ORCPT ); Thu, 25 Jan 2018 04:06:52 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eedRE-0007Nj-Rd; Thu, 25 Jan 2018 10:03:16 +0100 Date: Thu, 25 Jan 2018 10:05:57 +0100 (CET) From: Thomas Gleixner To: Palmer Dabbelt cc: linux@armlinux.org.uk, catalin.marinas@arm.com, Will Deacon , jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, Christoph Hellwig , Arnd Bergmann , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, patches@groups.riscv.org Subject: Re: [PATCH v2 1/4] arm: Make set_handle_irq and handle_arch_irq generic In-Reply-To: <20180125030756.21787-2-palmer@sifive.com> Message-ID: References: <20180125030756.21787-1-palmer@sifive.com> <20180125030756.21787-2-palmer@sifive.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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, 24 Jan 2018, Palmer Dabbelt wrote: > It looks like this same irqchip registration mechanism has been copied > into a handful of ports, including aarch64 and openrisc. I want to use > this in the RISC-V port, so I thought it would be good to make this > generic instead. > > This patch simply moves set_handle_irq and handle_arch_irq from arch/arm > to kernel/irq/handle.c. > > Signed-off-by: Palmer Dabbelt > --- > arch/arm/Kconfig | 5 ----- > arch/arm/include/asm/irq.h | 5 ----- > arch/arm/kernel/entry-armv.S | 6 ------ > arch/arm/kernel/irq.c | 10 ---------- > include/linux/irq.h | 18 ++++++++++++++++++ > kernel/irq/Kconfig | 5 +++++ > kernel/irq/handle.c | 10 ++++++++++ Please split the patches into two pieces: 1) Add the infrastructure to the generic code and have a new Kconfig symbol GENERIC_IRQ_MULTI_HANDLER or something which fits in the GENERIC_IRQ_ name space. That also makes sure that the build does not fail after patch 1 for the non converted arch. With your change this breaks arm64 build with only patch 1 applied because the Kconfig symbol is defined twice and the code is defined twice. See drivers/irqchip/Kconfig ARM_GIC_V3 .... 2) Convert both arm and arm64 over along with the select statements in the arch and irqchip Kconfigs Thanks, tglx