Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1284371lfc; Wed, 1 Jun 2022 14:12:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmxRCF0Ho4GV6e91fPi7YXtonl84QNMgQmmXaMf7wAwHZUdHfwuoPCPfH7ZtZx4nX15Z4r X-Received: by 2002:a17:903:283:b0:163:be9d:483a with SMTP id j3-20020a170903028300b00163be9d483amr1347410plr.166.1654117959573; Wed, 01 Jun 2022 14:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654117959; cv=none; d=google.com; s=arc-20160816; b=BTOULKuiCvajYW0hg8WfD+c09GotJojqbcwQ6GWo4Lqz1m84NsMcERGkPimPwTicnv W4RmMpgp5o67UOKABs1aecEDfZhTKeonuJNAe/fUMuG/QPQQL+xMYjfNw9hGUSN3Kthu pHMGZnM31Dxj/zMwUpONgF15J8FxfshrOxUq2in1RbJl8+ilY3Ns0obtUFiEoZCFgTXP 8gEw1aaW4DJWY6ePr/4t7rUWzIx9bcz1sVkMycMPleAaD5iP954nGz9TGg1wDvjNPhaI oryM2XoNI5qLxXVvU+r1bLQavY5wnjkcREgkjiGrNctFBRk4gXgK06XSdfDJHuDqbkeV F1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gGdxIdlSta114KOQeUK31BbrqoIhyxVYl7VvMj/uOaM=; b=NMMXw06PY+RqbtZrZqKLTJNg6m/Ao0IkCXpC697OpdyKN3ot1Di9YxmwjsFNtOp2BB qi3jwp0OXFd83wzLKrDUImSB5IXTkWKWTHYU5A1ZXtVEMVHqIYfnq56dLjj/5Y6TN0pb vOs/Rtixif3tLhAbogmKX73kquCJynmaptt0+PA9Mlnri+YJEdFx5gyAgxcCyXlQ3OVL klVx+Tec06aA8dVWBxb90/RDxX1gZhwTwNl5PdlWD0qJUplzWyHHhomPshKxlYhvnJoJ Kl9ZDxX/OG5tPgTYGO4UJU9hszu7Nzt9Q3WVlUOEP8gpyFhs8sm+oQWSRGhigW9wOSWM dGPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=ubGvyNDj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i123-20020a639d81000000b003f60a405a01si3649669pgd.620.2022.06.01.14.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:12:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=ubGvyNDj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E6C82D935B; Wed, 1 Jun 2022 13:05:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350974AbiFAKhu (ORCPT + 99 others); Wed, 1 Jun 2022 06:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352073AbiFAKhs (ORCPT ); Wed, 1 Jun 2022 06:37:48 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3518D7E1EF; Wed, 1 Jun 2022 03:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1654079863; bh=YcjpCe19/pVR4de7LNXBIwhHExjMgtkhxajw/KiCdKA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ubGvyNDjkBH6aTlakteo1aAcEg/qRtt3STkoqt+hwaZGEDt315BDKmIInQ4eQ7Obr EETh1gedqvTd9nEeMirE7wDDnTCqqlPpr3pCEY65WM69mmDvVRCI0R6pv6yXr/1kIq LXPQMK8d3tslnt9a+2w6tYgBy6y9H7OVTLdK8Ox0= Received: from [192.168.9.172] (unknown [101.88.28.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 54CD860104; Wed, 1 Jun 2022 18:37:43 +0800 (CST) Message-ID: <61034cb8-8847-0ca5-897d-a607f24bc6ba@xen0n.name> Date: Wed, 1 Jun 2022 18:37:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Thunderbird/103.0a1 Subject: Re: [PATCH V12 02/24] irqchip/loongson-liointc: Fix build error for LoongArch Content-Language: en-US To: Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds Cc: linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell References: <20220601100005.2989022-1-chenhuacai@loongson.cn> <20220601100005.2989022-3-chenhuacai@loongson.cn> From: WANG Xuerui In-Reply-To: <20220601100005.2989022-3-chenhuacai@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/22 17:59, Huacai Chen wrote: > liointc driver is shared by MIPS and LoongArch, this patch adjust the > code to fix build error for LoongArch. > > Signed-off-by: Huacai Chen > --- > drivers/irqchip/irq-loongson-liointc.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-loongson-liointc.c b/drivers/irqchip/irq-loongson-liointc.c > index 649c58391618..aed88857d90f 100644 > --- a/drivers/irqchip/irq-loongson-liointc.c > +++ b/drivers/irqchip/irq-loongson-liointc.c > @@ -16,7 +16,11 @@ > #include > #include > > +#ifdef CONFIG_MIPS > #include > +#else > +#include > +#endif > > #define LIOINTC_CHIP_IRQ 32 > #define LIOINTC_NUM_PARENT 4 > @@ -53,7 +57,7 @@ static void liointc_chained_handle_irq(struct irq_desc *desc) > struct liointc_handler_data *handler = irq_desc_get_handler_data(desc); > struct irq_chip *chip = irq_desc_get_chip(desc); > struct irq_chip_generic *gc = handler->priv->gc; > - int core = get_ebase_cpunum() % LIOINTC_NUM_CORES; > + int core = cpu_logical_map(smp_processor_id()) % LIOINTC_NUM_CORES; > u32 pending; > > chained_irq_enter(chip, desc); Trivial enough. Reviewed-by: WANG Xuerui