Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1312703ybm; Sat, 30 May 2020 05:17:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrN7CSGquRRQKVZPUdHc1bF7bpU2H/n80H0/GoZvCKdvJeaN/JCO+WMyZApp6BbHaKURrc X-Received: by 2002:a17:907:441c:: with SMTP id om20mr11106697ejb.62.1590841055615; Sat, 30 May 2020 05:17:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590841055; cv=none; d=google.com; s=arc-20160816; b=gQ5GBAmK0g9SHNsDzX2aABR4CEM76RY7jWapw1m0fRUiFikFmZWa6OIMA4BYhSQRUv 1nz9jXzEZ3txcekDoCnvozdW0M0QRqR5lMmPl8jxYtgd2oJARq4ao3NGkVLFY953HZQ9 +fwHH9uzK202lHZHoW0jfdKBJg3AXbpOLikI5hlf3Ld4IIdpij7DFnQgrVEhYmW2zCBu 7a5wmvvfdbj7FfftV/c1bHZ+LgPaQRQCZuyS5ewaBAdS3ZBdShJ6k5dRSl5FLNd/SE/e 5FNbGd4Q7tcV9BGnSOudjh3SO0goQnowHFKeamXh1MucWd6TCQQrqGvoCpyi2HXhRioG Peng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GfXutgs13AVE8qSwtkD+apyPNPMpjclyAD/g9VJwRbw=; b=DCX1SAVGy/4pXp9yH+tpbR0Tmg/APUkySJsYJwWV9sADdDytpzQtvn+mYr1HOE5Odz SZexsuuN99magB+zuUdHaiLJiOAjApcvU1MjhUo93wfxB13b2zYCPgVICCdQqvi1HFk1 EqmJwNDP9BKTzUwgL7dXyeQ4ZWvTs2El8Gm8XRLXi3DLG6DHMZELm3HOft3heeCI3BXy G+1+hmT8rr4aCkhK6Hjc89xrLMtuxYjF9F47c30vt+qZQv75fCbE9QNNIaJJY9z4fP41 MEIV31tZDQQx/aZDSr1nmBfhTebq7I2K12X+b/g2p4GUvzYbFaymZoqBoHSUbCmmE+MR yueA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=OrxsZdnk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si7416681edb.473.2020.05.30.05.17.12; Sat, 30 May 2020 05:17:35 -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=fail header.i=@flygoat.com header.s=vultr header.b=OrxsZdnk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728927AbgE3MMm (ORCPT + 99 others); Sat, 30 May 2020 08:12:42 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:34832 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbgE3MMl (ORCPT ); Sat, 30 May 2020 08:12:41 -0400 Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 104382049F; Sat, 30 May 2020 12:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590840760; bh=RhxbuWVF5/BR2ngcqWUZOZr7VrX7V9c6h1vaBiVfIZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OrxsZdnkrNOCiBM2XgWbxvVUMJmwCqQteyoPfGNIhaXFWby8ubXFwDcOt85p4FH37 VKo7SvPM7fDGxQW8qIT0w5vT4UFTNvdBaZUHlbwv+X6euK1Da/BNSrWuo0hTXk5fXA YOUNbBmm8fm/my8HBa9IMLuzoinFH5sxgj5Ael6Nulb78ljeFZfDtjRwT2xL4zT8zs Wuk8L2ayMpExGCOJ4R/dG+a+HoqI7hmN8kxYGN+lZTiGuEoojfZMi3RxxDJklCQ7eV 1E1WuQQXhpL8zEt77l41Czt9kr5ay2ab7W8qgqrib9Vi30uAOxdPVOU3Oiz7MClonD DwoIGBG/Cvn6A== From: Jiaxun Yang To: maz@kernel.org Cc: Jiaxun Yang , kbuild test robot , Thomas Gleixner , Jason Cooper , Huacai Chen , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH 2/2] irqchip: loongson-*: Fix COMPILE_TEST Date: Sat, 30 May 2020 20:11:13 +0800 Message-Id: <20200530121113.1797678-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0.rc0 In-Reply-To: <20200530121113.1797678-1-jiaxun.yang@flygoat.com> References: <20200530121113.1797678-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org spurious_interrupt helper only exists on MIPS and x86, so define a dummy function on other architectures to fix COMPILE_TEST. Reported-by: kbuild test robot Signed-off-by: Jiaxun Yang --- drivers/irqchip/irq-loongson-htpic.c | 4 ++++ drivers/irqchip/irq-loongson-htvec.c | 4 ++++ drivers/irqchip/irq-loongson-liointc.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/drivers/irqchip/irq-loongson-htpic.c b/drivers/irqchip/irq-loongson-htpic.c index dd018c22ea83..7f38fdb2cb43 100644 --- a/drivers/irqchip/irq-loongson-htpic.c +++ b/drivers/irqchip/irq-loongson-htpic.c @@ -26,6 +26,10 @@ struct loongson_htpic { static struct loongson_htpic *htpic; +#if !defined(CONFIG_MIPS) && !defined(CONFIG_X86) +static inline void spurious_interrupt(void) { } +#endif + static void htpic_irq_dispatch(struct irq_desc *desc) { struct loongson_htpic *priv = irq_desc_get_handler_data(desc); diff --git a/drivers/irqchip/irq-loongson-htvec.c b/drivers/irqchip/irq-loongson-htvec.c index 1ece9337c78d..03c3973d7525 100644 --- a/drivers/irqchip/irq-loongson-htvec.c +++ b/drivers/irqchip/irq-loongson-htvec.c @@ -33,6 +33,10 @@ struct htvec { raw_spinlock_t htvec_lock; }; +#if !defined(CONFIG_MIPS) && !defined(CONFIG_X86) +static inline void spurious_interrupt(void) { } +#endif + static void htvec_irq_dispatch(struct irq_desc *desc) { int i; diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c index 63b61474a0cc..e31744e2d800 100644 --- a/drivers/irqchip/irq-loongson-liointc.c +++ b/drivers/irqchip/irq-loongson-liointc.c @@ -46,6 +46,10 @@ struct liointc_priv { bool has_lpc_irq_errata; }; +#if !defined(CONFIG_MIPS) && !defined(CONFIG_X86) +static inline void spurious_interrupt(void) { } +#endif + static void liointc_chained_handle_irq(struct irq_desc *desc) { struct liointc_handler_data *handler = irq_desc_get_handler_data(desc); -- 2.27.0.rc0