Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1258977pxx; Tue, 27 Oct 2020 12:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMSZb2E08PFoF7WP4bNZ1D75WopoJEKKs3QCHiGl5baXqxICoO3t/LXstQjxWulgFhYx8b X-Received: by 2002:a17:906:4ac2:: with SMTP id u2mr3852596ejt.224.1603825403993; Tue, 27 Oct 2020 12:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603825403; cv=none; d=google.com; s=arc-20160816; b=cWtGL3cO1MUc30bsGKE3J9gPDOUQYNqP66NewReKgnezDtWpBr4oklBlgkYiHLe4os Rj0LgywLR0xDrCgZLpAk7tYqDOlXWymGc01ph48xKMhYsH1DumkzrgWO2YSeTiK57wwg McHeH0VstQIm7vreevQcqC6AbJcrk6P0bVDI92ApYUTRhYbrqsirdA8dFzMlxcsZK45F ABlDAMLCRyBy2xWtQnqfxZYUys7AOtPKiLnklGXF8VCimBRY2sFBnVwqWNT5C0n6jmL7 nYpgZJGUUhHErnmQrU0JPEwHNMZWfmA0zZAbGcMzBsT3OOs2T407roM5WZzKwC2xg55l zuaA== 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=y4Fg5gsgruecqaltqJmfNR43asgr29cg2kO4ai3U1VI=; b=exKYxzs9Bhu3e2bXP+2RxhQDlgfkSw6Y/egntwKt8QLSnVniS8/x3qseEF8QRutJ8o 6qtwLOlWlGb7lI2Bh1O7JlhP6lcF3efV9o4Vt4WzEnNX8LgrKbIT8oJBMAuTaVQTVdp9 MI3ph5b7r4hBfP58uqvrukSOTPsWfj66TAbE/T9j1usvIahy60zQWV3gLONLax19daqv SXZZIFgby3YfLMK81qi9oTnSV434AttD2rgD/GAwGA6nrr3gBBK8SbVsPLSK68JAP0Vt fxbRgoHrLJ5LJHGpoXZ3oM7IZfDE3F8Dtz90F9RrXzAnkAuXNPns4chiUxn6Azf8LXfG CPSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CGs2ehvU; 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 h27si1928021ejd.668.2020.10.27.12.03.01; Tue, 27 Oct 2020 12:03:23 -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=CGs2ehvU; 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 S2501986AbgJ0AjI (ORCPT + 99 others); Mon, 26 Oct 2020 20:39:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:50896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409221AbgJZXuw (ORCPT ); Mon, 26 Oct 2020 19:50:52 -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 03A3B21655; Mon, 26 Oct 2020 23:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756252; bh=4en1etJbfMcAJ0pImQlkn1Yva9agtXtlts5g62gS6Ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CGs2ehvUW230QjqBVUdTxe2JopiGS4DOGKpHzk/s1d8RPlZ7xkSkqY4r8Y1tjSGUo wQHICf4cZN3WvUnwxVaWncEyxvYNpvbO1KJSfxq8xQb8LxD8T3STDruvk8xxAHGp1c haqK2WNmfcS0oNw6TDuvxNE0O38KMGNHwZHLyznw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhen Lei , Marc Zyngier , Sasha Levin Subject: [PATCH AUTOSEL 5.9 087/147] genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER Date: Mon, 26 Oct 2020 19:48:05 -0400 Message-Id: <20201026234905.1022767-87-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026234905.1022767-1-sashal@kernel.org> References: <20201026234905.1022767-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 1b7f4dfee35b3..b167baef88c0b 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -1252,6 +1252,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