Message ID | 381fbc430c0ccdd78b3b696cfc0c32b233526ca5.1669159392.git.mforney@mforney.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2496644wrr; Tue, 22 Nov 2022 15:44:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf543lhI+x7Pedti/Og1iSRDw/SESzXkLU3FrOK7XWD1STZlVIeEdipnz085UTVYUS/RZS3F X-Received: by 2002:a17:902:cacb:b0:186:9fc8:6688 with SMTP id y11-20020a170902cacb00b001869fc86688mr6566022pld.22.1669160683594; Tue, 22 Nov 2022 15:44:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669160683; cv=none; d=google.com; s=arc-20160816; b=iv58JviA5KQLnBGio1WYGPqojklFg4QCLHRInmKzM02ukqKkXWxXRynUAbc+S4/6nB bXtP2d505PF1vaddc3AquO2ralEywd5um2zLRN/WMU/56+EeCM6JYxR33uXpKlWiE5Lx niaBFm26XCyZDCs66BN30ziQpsxHmNffFzEsQF/GmILfQUYIbI/74sdKU9yQ68lzRivW uva6FYwzlzKJU36ovlPjqav0t85QRAmIM2zBIMXFq+TRAhL3GxaK8SThV7rNahDbju6q Er0ZDkrtJ6kXq8SOKGpjDf15JQz6Y7lXFUbdw89c0RNzIsHQ0x00el+NXbqOqbr2iOYJ hPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:date:from:message-id :dkim-signature; bh=pXREoY6IalOfAmwpvzIhPYj8XLXiTvIZQIbuCU5nvp8=; b=nmwNS+E6otSB6ImSTZEkbh9tAOMNbceZCQS5dtZr+8HfUCi6DepaNCsAb/XRc9tOJ3 wO3OGY6m8/PRdCJf/JGuULOYTf96HYcZiyTIyKUeZqQeFyWDmJKrGGj13xN16Ihogl4t kwM/KrV+12SPn92Rt+7WMUfSBFE4E6IT93TEeh7s3sGmqAWvviJqrlA3V3s1nMAuB8cO xBQHe52j7zQPy4Pm7f6jjc916ydNRkjpOrV5bOF+fA4Z7x++cWIOE70fI1JZ8jhkdPTH xtLb1DE7fqTwg2bfhdmwHOLuEZGCSKRiVge2D0MkTzPn6wioUknp2onRXidHpP01RNQ+ D44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mforney.org header.s=google header.b=Jk5QE8gq; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v184-20020a6389c1000000b00476c46ff6ebsi9259208pgd.27.2022.11.22.15.44.29; Tue, 22 Nov 2022 15:44:43 -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=@mforney.org header.s=google header.b=Jk5QE8gq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235016AbiKVXhe (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 18:37:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234815AbiKVXhb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 18:37:31 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5CFF41 for <linux-kernel@vger.kernel.org>; Tue, 22 Nov 2022 15:37:29 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id ci10so8322838pjb.1 for <linux-kernel@vger.kernel.org>; Tue, 22 Nov 2022 15:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney.org; s=google; h=cc:to:subject:date:from:message-id:from:to:cc:subject:date :message-id:reply-to; bh=pXREoY6IalOfAmwpvzIhPYj8XLXiTvIZQIbuCU5nvp8=; b=Jk5QE8gqF/vU8ZoSNIYM4ZebM9hf4ktQVyAE+s0TfAxdJug0x59/Qzx4Rqdvo+Qufw YepypkzF23DBfv7E6W2VBvVO15IV2+NP3TwNq2+ShmIy42vEK00eEu8+zffD5p+M85Qr EpmnZMrqFgo5risQhcy/MGYxF1xwj83wI22DATkvgm52IXOJR33bq5PyZzUn1mOD7HFO TtnY8MVFTtjSumXzdtpzZ+t48WuvfbxQDWx1ESpe1g3CArHeBvMuEYcqLoX6NNuakyDY kKgZU0G8M1yX7fisvzz/MDItPh2uoS72GbZI3+SV7rTEXAl5lwODK51f7aO151soa9N3 bUbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:date:from:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pXREoY6IalOfAmwpvzIhPYj8XLXiTvIZQIbuCU5nvp8=; b=r+z4ljq1N5xbrwNIOirZSCVta8L2yn2cqbHQMivejOG3s4S+oNsaO2iTWFOja3sK/N fvlD89zS2rLGEoAw8MauqxQtvSJqiYq/tmBDCc7SOa/2eRmHCnFP81Sdn2Jahd2qKYiV 4Brv6u7a3d1GjFYwn79AYO4B8nqzd/Qj+RlHAQ7YclXyINcLnxxSXzVxvk0JqHlTA6FW Ixg8tcDy3Idb3ZTpFeAHRIF77YWNGFpWFVvUY4zCYswpuhADcjRXQkBEM5iLnu6shZmg hSh1MJ4C12ndagE9NzvZHV2jUBH5t5JkiTuhEI29h4gC5cA1o5u6gGJF2JGROoAnACx/ WuZg== X-Gm-Message-State: ANoB5pmXkrc5bWtCFN/IEiULGpNaTXSWMj0LLtuZk0rlGClhZVQR9zA5 f7h6F2mmsjeJ7ZDwfwEviN4yvA== X-Received: by 2002:a17:902:db09:b0:188:7dca:6f4d with SMTP id m9-20020a170902db0900b001887dca6f4dmr19411533plx.68.1669160248980; Tue, 22 Nov 2022 15:37:28 -0800 (PST) Received: from localhost ([2601:647:6400:20b0:5605:dbff:fe00:eccc]) by smtp.gmail.com with ESMTPSA id k6-20020a170902c40600b0018911ae9dfasm7935927plk.232.2022.11.22.15.37.28 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Nov 2022 15:37:28 -0800 (PST) Message-Id: <381fbc430c0ccdd78b3b696cfc0c32b233526ca5.1669159392.git.mforney@mforney.org> From: Michael Forney <mforney@mforney.org> Date: Tue, 22 Nov 2022 14:18:25 -0800 Subject: [PATCH] iommu/amd: Fix typo in macro parameter name To: Joerg Roedel <joro@8bytes.org>, iommu@lists.linux.dev Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, linux-kernel@vger.kernel.org, Michael Forney <mforney@mforney.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750241832885393694?= X-GMAIL-MSGID: =?utf-8?q?1750241832885393694?= |
Series |
iommu/amd: Fix typo in macro parameter name
|
|
Commit Message
Michael Forney
Nov. 22, 2022, 10:18 p.m. UTC
IVRS_GET_SBDF_ID is only called with fn as the fourth parameter,
so this had no effect, but fixing the name will avoid bugs if that
ever changes.
Signed-off-by: Michael Forney <mforney@mforney.org>
---
drivers/iommu/amd/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
HI Michael, On 11/23/2022 3:48 AM, Michael Forney wrote: > IVRS_GET_SBDF_ID is only called with fn as the fourth parameter, > so this had no effect, but fixing the name will avoid bugs if that > ever changes.> > Signed-off-by: Michael Forney <mforney@mforney.org> Thanks for finding and fixing this issue. Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> -Vasant > --- > drivers/iommu/amd/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c > index 1a2d425bf568..099ca3ed7d73 100644 > --- a/drivers/iommu/amd/init.c > +++ b/drivers/iommu/amd/init.c > @@ -85,7 +85,7 @@ > > #define LOOP_TIMEOUT 2000000 > > -#define IVRS_GET_SBDF_ID(seg, bus, dev, fd) (((seg & 0xffff) << 16) | ((bus & 0xff) << 8) \ > +#define IVRS_GET_SBDF_ID(seg, bus, dev, fn) (((seg & 0xffff) << 16) | ((bus & 0xff) << 8) \ > | ((dev & 0x1f) << 3) | (fn & 0x7)) > > /*
On Tue, Nov 22, 2022 at 02:18:25PM -0800, Michael Forney wrote: > IVRS_GET_SBDF_ID is only called with fn as the fourth parameter, > so this had no effect, but fixing the name will avoid bugs if that > ever changes. > > Signed-off-by: Michael Forney <mforney@mforney.org> > --- > drivers/iommu/amd/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.
diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index 1a2d425bf568..099ca3ed7d73 100644 --- a/drivers/iommu/amd/init.c +++ b/drivers/iommu/amd/init.c @@ -85,7 +85,7 @@ #define LOOP_TIMEOUT 2000000 -#define IVRS_GET_SBDF_ID(seg, bus, dev, fd) (((seg & 0xffff) << 16) | ((bus & 0xff) << 8) \ +#define IVRS_GET_SBDF_ID(seg, bus, dev, fn) (((seg & 0xffff) << 16) | ((bus & 0xff) << 8) \ | ((dev & 0x1f) << 3) | (fn & 0x7)) /*