Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3450246imw; Thu, 7 Jul 2022 01:52:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tOYcUGIu6wiNo6+HMzqvfewAcTcZ0jL4IsFRc+Peecksh2xxeuwqxSHMzkqgbvx7KBBXLA X-Received: by 2002:a17:907:16a2:b0:726:abbc:69bf with SMTP id hc34-20020a17090716a200b00726abbc69bfmr42833321ejc.363.1657183925003; Thu, 07 Jul 2022 01:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657183924; cv=none; d=google.com; s=arc-20160816; b=rU/GGe3s+IsT1B+/BXL1BA5p8Ljncx3vPRkboiO2RUcd6YQMPuBAx4RU9HQXlbzSGi vbpKk8Cf1mwZpFS+fhC2VnnuCK7VpsX0kWFTxr2IjRX/5kF9/u7G27jBd+DEwbTKCVGo KKw8v5imOsAAu5dU9EzhIOw4+Puy61jo6ziCo3OfeKt9ws9jxCfE4aqurJ9DQUHLDXLA r447MAQJQ4dWDtUh3oDIqsal/6pAQBcpoiHp4SwnFgbZwXKMk8VzAWZqoDGYbkSsbAly 0JA0BbrPCE5LVmkyXdZkydhg3qW2v1lGjcV3hJxrh/rMNV0zXc9RKozCec9WiDSN7UXY +UvA== 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=1RQOa6AZN76wpDxlh2rMmB/85UNHJ1nAHvAqM95/v/g=; b=NrhgUIuyS0wub3KuJzAkbBwgyhSEXA3PxvpBhfVgQtpSrpXZ3PFhGJ6JiXOF6kNFaF Z7Z2+S09VP1Ol7yso1haxBdDPOauaRS3rlyI68mMKMcdLgM81DBHKSrCuF5fQLWrp4mK UbXJdPmxUS00KNLgQ+IFzocWKLUMB0xwrDY1t1Q4+0FbmUMliXHV7ClBrc+LLSpOE4yL iuGH1esuuMv6tXCSNC4li02oUTDkASM/+Oz9TRkbqVDuAAmwADd0vovhSt1kC79/T76T bUjV/9E2t7MDiK7jfOPnc4MekS1VlQWikPsq4JKwp2RSsWJdJ5I/92Ssw99a6U+g+3Bv rA5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=soq3swKH; dkim=neutral (no key) header.i=@linutronix.de header.b=LNcu7aNW; 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 i16-20020a170906091000b00722f396c33esi187733ejd.415.2022.07.07.01.51.38; Thu, 07 Jul 2022 01:52:04 -0700 (PDT) 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=soq3swKH; dkim=neutral (no key) header.i=@linutronix.de header.b=LNcu7aNW; 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 S235408AbiGGIuL (ORCPT + 99 others); Thu, 7 Jul 2022 04:50:11 -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: 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,T_SCC_BODY_TEXT_LINE 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/irqchip-next branch of irqchip: Commit-ID: 961343d7822624d0e329ab4167c7e1d02bb53112 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/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); } -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 = irq_get_irq_data(irq); - - return d ? d->common->affinity : NULL; + return d->common->affinity; } -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 = irq_get_irq_data(irq); + + return d ? irq_data_get_affinity_mask(d) : NULL; } #ifdef CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK @@ -910,7 +910,7 @@ static inline void irq_data_update_effective_affinity(struct 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