From: "Suthikulpanit, Suravee" <suravee.suthikulpanit@amd.com>
To: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>,
Jerry Snitselaar <jsnitsel@redhat.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
Joerg Roedel <jroedel@suse.de>
Subject: Re: [PATCH] iommu/amd: Fix compile warning in init code
Date: Mon, 1 Aug 2022 15:37:09 +0700 [thread overview]
Message-ID: <c2e66e25-d1f1-5c93-9916-25ccbad89d2a@amd.com> (raw)
In-Reply-To: <20220729100432.22474-1-joro@8bytes.org>
On 7/29/2022 5:04 PM, Joerg Roedel wrote:
> From: Joerg Roedel <jroedel@suse.de>
>
> A recent commit introduced these compile warnings:
>
> CC drivers/iommu/amd/init.o
> drivers/iommu/amd/init.c:938:12: error: ‘iommu_init_ga_log’ defined but not used [-Werror=unused-function]
> 938 | static int iommu_init_ga_log(struct amd_iommu *iommu)
> | ^~~~~~~~~~~~~~~~~
> drivers/iommu/amd/init.c:902:12: error: ‘iommu_ga_log_enable’ defined but not used [-Werror=unused-function]
> 902 | static int iommu_ga_log_enable(struct amd_iommu *iommu)
> | ^~~~~~~~~~~~~~~~~~~
>
> The warnings appear because both functions are defined when IRQ
> remapping is not enabled, but only used when IRQ remapping is enabled.
>
> Fix it by only defining the functions when IRQ remapping is enabled.
>
> Fixes: c5e1a1eb9279 ("iommu/amd: Simplify and Consolidate Virtual APIC (AVIC) Enablement")
> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Ah... sorry. I missed this part.
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thank you,
Suravee
prev parent reply other threads:[~2022-08-01 8:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 10:04 Joerg Roedel
2022-07-29 13:10 ` Jerry Snitselaar
2022-07-29 13:28 ` kernel test robot
2022-08-01 8:37 ` Suthikulpanit, Suravee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c2e66e25-d1f1-5c93-9916-25ccbad89d2a@amd.com \
--to=suravee.suthikulpanit@amd.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=jroedel@suse.de \
--cc=jsnitsel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®