From nobody Sun Apr 19 02:38:35 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C295C43334 for ; Thu, 7 Jul 2022 08:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235409AbiGGIuN (ORCPT ); Thu, 7 Jul 2022 04:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235285AbiGGIuG (ORCPT ); Thu, 7 Jul 2022 04:50:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B93326E3 for ; Thu, 7 Jul 2022 01:50:05 -0700 (PDT) Date: Thu, 07 Jul 2022 08:50:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657183804; 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=1RQOa6AZN76wpDxlh2rMmB/85UNHJ1nAHvAqM95/v/g=; b=soq3swKHyyA9K699WBpd2p0577kXXArb0rMqDAgD+RK2jo9lINufcF7Dex1K38BIBVu6qh lzHgRfiauKU/cr8UwSDqsBsrXYM5wHq1R+5K+k/XvdLvjbec7lsNJIzaj/LfkU6BMv+H2E I46tXzabO0Q3+ffxk7svk30ZTsl0vh8xK3xRDinnVyFDpQrXKma3hY1SNUkZb/d5U8pTcR if9VIk/aqesbwCqKLABawhmRaTZY7tX9f1fruU7brEuGb9tz/ZsgUCC9fzPaTfb9lpwLCs GN+sD6Vqs5TRGGuKT3Zy+tXkbsBHEVOuWl3Hf+BEyx83DIAWWRg8ScjkGhu+qw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657183804; 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=1RQOa6AZN76wpDxlh2rMmB/85UNHJ1nAHvAqM95/v/g=; b=LNcu7aNWxH0HoliyhWJVkm4XLeEFQDz2SI4AjiOSdw+/RKfoQxyQW3/cs/CnuwnvtzfjPr IXg9HTpdqeo8lkBA== From: "irqchip-bot for Samuel Holland" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] genirq: Refactor accessors to use irq_data_get_affinity_mask Cc: Samuel Holland , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220701200056.46555-6-samuel@sholland.org> References: <20220701200056.46555-6-samuel@sholland.org> MIME-Version: 1.0 Message-ID: <165718380303.15455.9393624084841569225.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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of ir= qchip: Commit-ID: 961343d7822624d0e329ab4167c7e1d02bb53112 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-plat= forms/961343d7822624d0e329ab4167c7e1d02bb53112 Author: Samuel Holland AuthorDate: Fri, 01 Jul 2022 15:00:53 -05:00 Committer: Marc Zyngier CommitterDate: Thu, 07 Jul 2022 09:38:04 +01:00 genirq: Refactor accessors to use irq_data_get_affinity_mask A couple of functions directly reference the affinity mask. Route them through irq_data_get_affinity_mask so they will pick up any refactoring done there. Signed-off-by: Samuel Holland Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220701200056.46555-6-samuel@sholland.org --- include/linux/irq.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/irq.h b/include/linux/irq.h index 5053082..69ee4e2 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -879,16 +879,16 @@ static inline int irq_data_get_node(struct irq_data *= d) return irq_common_data_get_node(d->common); } =20 -static inline struct cpumask *irq_get_affinity_mask(int irq) +static inline struct cpumask *irq_data_get_affinity_mask(struct irq_data *= d) { - struct irq_data *d =3D irq_get_irq_data(irq); - - return d ? d->common->affinity : NULL; + return d->common->affinity; } =20 -static inline struct cpumask *irq_data_get_affinity_mask(struct irq_data *= d) +static inline struct cpumask *irq_get_affinity_mask(int irq) { - return d->common->affinity; + struct irq_data *d =3D irq_get_irq_data(irq); + + return d ? irq_data_get_affinity_mask(d) : NULL; } =20 #ifdef CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK @@ -910,7 +910,7 @@ static inline void irq_data_update_effective_affinity(s= truct irq_data *d, static inline struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d) { - return d->common->affinity; + return irq_data_get_affinity_mask(d); } #endif