Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5254381rwb; Tue, 17 Jan 2023 11:05:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+yZP8uak/Ons2Q34ugN2Z4JSBlmASbzzyR4T3aEldaH6rD8uYW04+rQH8u0cGxOWAlyKg X-Received: by 2002:a17:907:2392:b0:86e:c9e2:6329 with SMTP id vf18-20020a170907239200b0086ec9e26329mr3676861ejb.12.1673982328792; Tue, 17 Jan 2023 11:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673982328; cv=none; d=google.com; s=arc-20160816; b=EK7HuURL6luXx4Y8MjtrDdwDXaaXOIesOcVfmXvVkaLeIIjpXrNHOkOPGxL0O7uzOu RIPDLd/nX+c6LMLkaR7TdTe+j3/YpkL9/edrcy5kLqVrsuPIbWqpGdKA34ZiAxtJy3Vx uPJzStK+VmRwt1oCHOjk+dl1TQL6Z7W64Pkuif7I61GMFuDwsqyJvyWi7m6XO68w/Cox IO19PXM2SPNqSw9cFdndsMaz5OAO6eu5pqDDXLXAov2rs3q6tYdn7trFwZdU3QkoV2ve Xoq+rqWZnsaDe53RqneZaaviR1oXeZqjAnFKfNAMY4iltQ+09+Vt9V5tz5sRpHbyyQV+ d5sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=a5gAG4zyi44i/U2VPhKM2izw3dl4jUTO1hKiLKOHNZE=; b=SJa286uV8F11Vqoy9E+RL+nxYRYvmJAbs2ifzZfa0ff895oY8l5AG+A1dt6BzOLPk0 ny7TJngLU/Fwtl8oxOQxtWlh2TvK4DDbCLuvriD1yt90WcAdLW3EXIZMbAtJsweX4FOn mRWNgvloUPVI7qL2oPsxDZzH2W+av5e3AU10W9zpKNSGeA0FPkDqPU4ZzlkEdVKHUrAg ECM3ypZzTCCyrgzfdy5V2K/P05tBWgIa5fK+Yol5mDa3eUF5HcH4LtmTEYRQfiabFdMt R081vclCqpMjdPU7fMZ/V76OmC4+7W/mY0K7s6gVDw65mw2bnEJp2czmX2kDFW6z+QF5 DHNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kLjJ0YBJ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a05640205cd00b004841817039asi40865333edx.614.2023.01.17.11.05.09; Tue, 17 Jan 2023 11:05:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kLjJ0YBJ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230355AbjAQSSe (ORCPT + 47 others); Tue, 17 Jan 2023 13:18:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233218AbjAQSOE (ORCPT ); Tue, 17 Jan 2023 13:14:04 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E1684F844; Tue, 17 Jan 2023 09:55:04 -0800 (PST) Date: Tue, 17 Jan 2023 17:54:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1673978098; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5gAG4zyi44i/U2VPhKM2izw3dl4jUTO1hKiLKOHNZE=; b=kLjJ0YBJv5dQhPkTkqqj/b+ve9EBXYOvIVHAETb1zN43J5PfM4ARKXeQbwrZWAj3s+FJr2 w6opu9sT82JDHz6nWgm0RpOgl77bQlzG0f3lf0pU0Hq6e/HrIJmSKaz6KBEjeJsAfVpQwH mL9NuWK/0MdMs/3VFq7D+8KMsnVxkFj+HIdZRFKdtYpcju4TsZUq7ixF/bEImdsVKXTS4p WVG9BEIKhKa3jfM839rqRwJhwtjIIinFWehEYcjkD9lDPd2L68W+POQVPyKnxEc2xWCL/u yo4WyDi3gj6A2jKSSRz2DGNN0R1Hc4HTVXo0RvU2+geM8IUqwNXS3DT/AGRf3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1673978098; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a5gAG4zyi44i/U2VPhKM2izw3dl4jUTO1hKiLKOHNZE=; b=RP52s0euAx0igtcaDP4h2GderM3mikD8ITObWo0GCyT9jtE7eRH2GbqVx5Mn+Ig66pXWUk XbkajuGQefTvm5AA== From: "tip-bot2 for Ming Lei" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks Cc: Ming Lei , Thomas Gleixner , Christoph Hellwig , John Garry , Jens Axboe , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20221227022905.352674-2-ming.lei@redhat.com> References: <20221227022905.352674-2-ming.lei@redhat.com> MIME-Version: 1.0 Message-ID: <167397809817.4906.18299720094794858383.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 The following commit has been merged into the irq/core branch of tip: Commit-ID: cdf07f0ea48a3b52f924714d477366ac510ee870 Gitweb: https://git.kernel.org/tip/cdf07f0ea48a3b52f924714d477366ac510ee870 Author: Ming Lei AuthorDate: Tue, 27 Dec 2022 10:29:00 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 17 Jan 2023 18:50:06 +01:00 genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks The 'firstvec' parameter is always same with the parameter of 'startvec', so use 'startvec' directly inside irq_build_affinity_masks(). Signed-off-by: Ming Lei Signed-off-by: Thomas Gleixner Reviewed-by: Christoph Hellwig Reviewed-by: John Garry Reviewed-by: Jens Axboe Link: https://lore.kernel.org/r/20221227022905.352674-2-ming.lei@redhat.com --- kernel/irq/affinity.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c index d9a5c1d..3361e36 100644 --- a/kernel/irq/affinity.c +++ b/kernel/irq/affinity.c @@ -337,10 +337,10 @@ static int __irq_build_affinity_masks(unsigned int startvec, * 2) spread other possible CPUs on these vectors */ static int irq_build_affinity_masks(unsigned int startvec, unsigned int numvecs, - unsigned int firstvec, struct irq_affinity_desc *masks) { unsigned int curvec = startvec, nr_present = 0, nr_others = 0; + unsigned int firstvec = startvec; cpumask_var_t *node_to_cpumask; cpumask_var_t nmsk, npresmsk; int ret = -ENOMEM; @@ -463,8 +463,7 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) unsigned int this_vecs = affd->set_size[i]; int ret; - ret = irq_build_affinity_masks(curvec, this_vecs, - curvec, masks); + ret = irq_build_affinity_masks(curvec, this_vecs, masks); if (ret) { kfree(masks); return NULL;