Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1270290lfc; Wed, 1 Jun 2022 13:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1SltZJGiz6EiqaQc0Wvbss9jorZrshb0qUIpxA40cz/doVu52CgNJMWZr++zST4McWlZB X-Received: by 2002:a17:902:a507:b0:162:2a77:7363 with SMTP id s7-20020a170902a50700b001622a777363mr1246283plq.115.1654116223371; Wed, 01 Jun 2022 13:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654116223; cv=none; d=google.com; s=arc-20160816; b=SVVzHuLe3zkrnv/bECxtP8SY2ifnUh3ubs3bbamoCiNzL4HjDQdkal8mGW3EiHsuhZ Oz9gAO93V0qTuJqitEVZGApjR9W7kfgBDHKeNn82QFg9N8xRFGBBzU/kTKibBjZOtajk oFNrscAdhk1ble3AeYYCQnU4BkJwPw7nqfNuJHuyh6PfzOW1LaXw/0PbFsM+5HmNrQbK KI6qU5MSCcWXfNZhWYwCS0cEfEAd2IiJdkBYCdRkP1Hj6tHhnNnJJqhf7p8/sXw0dr+Q M3j5Dn3HGy/fO1jqtsR33S54TF0V4Irls5IB5qrDWbkLByqVd6+p0Twn+e+45vcMbpoe Bsvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=0XjGKcz50nGenmNIxdLNy27/3re77DIlIrd7gqENl9Q=; b=oKSBS7p2FEQoOTwz8HRTLe8qtC9LxE1hBHmO8GqLh1p3AWv+ERthnMmqv7An4G+cQQ pThZD8Cx6dbZLGjeADqUMWlJ3zt8hDipwfmez9z08Pl5o/V2/rkmw8STVUoV20/Y5Bug Ns08VG/hyKX6R0Wvkq4sCkED/7qrUR8YMOgzLv4DZX5dJiS9X02D5lQ9cNNRwSRxjrGV 72MtB/Q4LCeMIqWXk+WEwjQs+cxehfMmaxMccmLtBuzuA0acfCW0lXpuDzQ9rgWuq8hF G8EXUYGeGLfBODaSwvyECeDY+Mk+pxGIGIRy2psFnNVcrRO/JtL0489Prhqg25vH8EC4 7VMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=K+f1gsDR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lKE1BQVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q12-20020a170902dacc00b0016406e6ff4asi4014546plx.102.2022.06.01.13.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm2 header.b=K+f1gsDR; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=lKE1BQVe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9BB5F1F77C6; Wed, 1 Jun 2022 12:51:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240457AbiFAMKG (ORCPT + 99 others); Wed, 1 Jun 2022 08:10:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiFAMKE (ORCPT ); Wed, 1 Jun 2022 08:10:04 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AFE656764; Wed, 1 Jun 2022 05:10:02 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CAF6B5C0306; Wed, 1 Jun 2022 08:10:01 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute4.internal (MEProxy); Wed, 01 Jun 2022 08:10:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1654085401; x= 1654171801; bh=0XjGKcz50nGenmNIxdLNy27/3re77DIlIrd7gqENl9Q=; b=K +f1gsDRS2FFGo+XYiLO+0BBPFOLGEZcpmDqlfxkmk1ZAhgk7xLU7itci/jDjoZL1 ZlXHsJmPlFPPMLsZpVOGAOJWl0a3LUleA0Rm6mBLVwy9n1T3whkFJzP2VlaycL+V e35baOTglilbBImQxAYieqe3HQOr3075DG0+AiDtJTKasZt8yDCBGqevupUr3r8v 8Y33VuJX2Emw7DaKARqqK8qUT3dNis6O9TDF5kL7KyT6GkStVUXYz63bU1tvmLRd 9qxfugES228HOQ2T9Dgni8DYG/bhPfLOxjtFsvpdIqIeaoU3Z3+7f3zUjeI1Hlm/ QufLDAoJW73/MkohZgzMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1654085401; x= 1654171801; bh=0XjGKcz50nGenmNIxdLNy27/3re77DIlIrd7gqENl9Q=; b=l KE1BQVeIJAOygcswiLzC4glM/fnK86lZBAINK/64dDInPezpQb3YqN6chLRQpCAI OvW14214k6LiATSdGAzMKwqXc0Wcr/uV2E9IM0mOFtKY5D1yz8XMbJ82qFhcUoKV Ktz49SdOsfDjZsX8xvx11ZCtP9ZnNujTOIQu8TSBBlCo9vy3zrQgFlmEn1F1pxex as+SLxiIhUcEKkFfGJuqYETktBCg2aJJ4X/mo/A3znV2pdT84H7uAG0/322jbuPR s5gY8iy10o3TUkXvfw26ZZU/bUfGlhu4ABLX+pwHfV7j/O50w7e+T5v0JSO0ZIQf 4m+NuSX7rvCGhQSnjnwWw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrledtgdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedflfhi rgiguhhnucgjrghnghdfuceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh eqnecuggftrfgrthhtvghrnhepudefgeeftedugeehffdtheefgfevffelfefghefhjeeu geevtefhudduvdeihefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D84B536A006D; Wed, 1 Jun 2022 08:10:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-Id: <6e7da218-be6c-449d-92ea-be416ed12da5@www.fastmail.com> In-Reply-To: <20220601100005.2989022-3-chenhuacai@loongson.cn> References: <20220601100005.2989022-1-chenhuacai@loongson.cn> <20220601100005.2989022-3-chenhuacai@loongson.cn> Date: Wed, 01 Jun 2022 13:09:40 +0100 From: "Jiaxun Yang" 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" , "Stephen Rothwell" Subject: Re: [PATCH V12 02/24] irqchip/loongson-liointc: Fix build error for LoongArch Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 =E5=9C=A82022=E5=B9=B46=E6=9C=881=E6=97=A5=E5=85=AD=E6=9C=88 =E4=B8=8A=E5= =8D=8810:59=EF=BC=8CHuacai Chen=E5=86=99=E9=81=93=EF=BC=9A > liointc driver is shared by MIPS and LoongArch, this patch adjust the > code to fix build error for LoongArch. > > Signed-off-by: Huacai Chen Reviewed-by: Jiaxun Yang > --- > drivers/irqchip/irq-loongson-liointc.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-loongson-liointc.c=20 > 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 >=20 > +#ifdef CONFIG_MIPS > #include > +#else > +#include > +#endif >=20 > #define LIOINTC_CHIP_IRQ 32 > #define LIOINTC_NUM_PARENT 4 > @@ -53,7 +57,7 @@ static void liointc_chained_handle_irq(struct irq_de= sc *desc) > struct liointc_handler_data *handler =3D irq_desc_get_handler_data(d= esc); > struct irq_chip *chip =3D irq_desc_get_chip(desc); > struct irq_chip_generic *gc =3D handler->priv->gc; > - int core =3D get_ebase_cpunum() % LIOINTC_NUM_CORES; > + int core =3D cpu_logical_map(smp_processor_id()) % LIOINTC_NUM_CORES; > u32 pending; >=20 > chained_irq_enter(chip, desc); > --=20 > 2.27.0 --=20 - Jiaxun