]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/tegra241-cmdqv: Fix unused variable warning
authorWill Deacon <will@kernel.org>
Tue, 29 Oct 2024 15:58:24 +0000 (15:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2024 09:40:56 +0000 (10:40 +0100)
commit259449873c37da3067822b1608ab04ceee985a89
tree4633f9ea4acd68504ce6ba85871f837e63987474
parenta6f9e7a0bf1185c9070c0de03bb85eafb9abd650
iommu/tegra241-cmdqv: Fix unused variable warning

commit 5492f0c4085a8fb8820ff974f17b83a7d6dab5a5 upstream.

While testing some io-pgtable changes, I ran into a compiler warning
from the Tegra CMDQ driver:

  drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c:803:23: warning: unused variable 'cmdqv_debugfs_dir' [-Wunused-variable]
    803 | static struct dentry *cmdqv_debugfs_dir;
        |                       ^~~~~~~~~~~~~~~~~
  1 warning generated.

Guard the variable declaration with CONFIG_IOMMU_DEBUGFS to silence the
warning.

Signed-off-by: Will Deacon <will@kernel.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c