Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp916355pxx; Tue, 27 Oct 2020 03:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKsT0XSSXE1TttcKJFLe+yvXJOrvtnHaoBVD/VSGj8LMh9UoLIvpwkPzn5Vf1W+ZyMRdmJ X-Received: by 2002:a05:6402:32f:: with SMTP id q15mr1567002edw.230.1603796185815; Tue, 27 Oct 2020 03:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603796185; cv=none; d=google.com; s=arc-20160816; b=mJnmWl1KLxPZSO1J1lqhtEt8EXz35zqVROy6Ue8d9OoqOWuPF6M4jiPwwk/5zHnsWD /1jsLeGCy5UgqZYpeRcUOsDudiJCNbXbjpd5Wv1ViVjU+rOwOI41LPMoDWEVKf8OeErd sfrqdO0wZr/1ZjIqXClnI8y2VHrXFeV8sfSzsxDuQ2mYV84g9mtmnSjqrR2f8Y6AH1pV QGWREcCrI3SoBN6ZteqByuj/2PirqWcJEmHr/STkxX4PQQ4iv3Ci1vf2iS7MmHaWKpR6 YIgnHYUGl/+2s8XDhY2n4AA0QRTl18nQC/0Z8dpRQuKqSbbwc9NLJcma+EyTQr+wDboE IqDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HAiTqdiIaP0Hhsd3eBshpa6eWeKbxl2G+GD+NnHyCTM=; b=jGyk52tmU6i1wGLCZuoy4xM6uuQn0o+L3GslFaGfEvQOToMLHPvhIfW6nBktv560Cn Fa0EPbLY7QClcsb5XY+OACSwguEs4GMt4yaUAtJzSjiei/CltLnkZIgi/GCz7PIrp89Y JyuE7mUof3g20N08OpQryXRfVE/dQW+iMgMc82xf9eHWQMo2DZJ1Xps5S2S+pcmRTZX7 BPI91KydNC512dtybtzFwJlRRomIeD9m2+9EUHyjZqScCra88fAP+gZoi3xYVvsFseck y5dhXUABRQHsSxytAbeyEGG8m4/o7z423ZrrE+HdAkvd89JVc/b7o9mx+wQyXR+JP3LR 9ZHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tON3J4x7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si736485ejd.359.2020.10.27.03.56.03; Tue, 27 Oct 2020 03:56:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tON3J4x7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732165AbgJ0ACx (ORCPT + 99 others); Mon, 26 Oct 2020 20:02:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:35344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411063AbgJZX4N (ORCPT ); Mon, 26 Oct 2020 19:56:13 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1BA32222C; Mon, 26 Oct 2020 23:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756573; bh=T9ukAjORjEUpFo1dtup9GpXhoavLAgNSdh3cC+7TZtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tON3J4x7ftCv8wJTgxOdYTE0WpNKuVKDt/eMYCeWC5MV+L52ILPdDR8YGSZJCp72C Gk5gcUn2Taif9EeVDrU/dSmmfuwoVmdjevUxR3oudK/tPHY7kH22TUcVEYxLH29k/p 4tFg9Z+qUCtoBWqfcq6s9RiVo53KE6Ziyd55y1cI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhen Lei , Marc Zyngier , Sasha Levin Subject: [PATCH AUTOSEL 5.4 47/80] genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER Date: Mon, 26 Oct 2020 19:54:43 -0400 Message-Id: <20201026235516.1025100-47-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhen Lei [ Upstream commit ea0c80d1764449acf2f70fdb25aec33800cd0348 ] In order to avoid compilation errors when a driver references set_handle_irq(), but that the architecture doesn't select GENERIC_IRQ_MULTI_HANDLER, add a stub function that will just WARN_ON_ONCE() if ever used. Signed-off-by: Zhen Lei [maz: commit message] Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20200924071754.4509-2-thunder.leizhen@huawei.com Signed-off-by: Sasha Levin --- include/linux/irq.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index e9e69c511ea92..437eb143f9f44 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -1235,6 +1235,12 @@ int __init set_handle_irq(void (*handle_irq)(struct pt_regs *)); * top-level IRQ handler. */ extern void (*handle_arch_irq)(struct pt_regs *) __ro_after_init; +#else +#define set_handle_irq(handle_irq) \ + do { \ + (void)handle_irq; \ + WARN_ON(1); \ + } while (0) #endif #endif /* _LINUX_IRQ_H */ -- 2.25.1