nvme: fix unused variable warning
PATCH 1/1 nvme: fix unused variable warning
From: Arnd Bergmann <[email protected]>
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]
--- drivers/pci/quirks.c | 2 -- 1 file changed, 2 deletions(-)
drivers/pci/quirks.c +0 -2
@@ -309,8 +309,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8151_0, quirk_nopcistatic void quirk_amd_nvme_fixup (struct pci_dev *dev) { -struct pci_dev *rdev; - dev->dev_flags |=PCI_DEV_FLAGS_AMD_NVME_SIMPLE_SUSPEND ;pci_info (dev,"AMD simple suspend opt enabled\n" );
Signature · 1 line
2.29.2
[+cc Bixuan]
Hi Arnd,
Quoted 6 lines
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]Fixes 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path")
[...]
A simialr patch was sent recently, as per:
https://lore.kernel.org/linux-pci/[email protected]/
Other than that,
Krzysztof
Quoted 8 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]Fixes 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path")
I guess this refers to https://lore.kernel.org/linux-nvme/[email protected]/
But I don't know what the SHA1 means; I can't find it in linux-next or my tree.
Quoted 21 lines
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/pci/quirks.c | 2 -- 1 file changed, 2 deletions(-)drivers/pci/quirks.c +0
-2@@ -309,8 +309,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8151_0, quirk_nopcistatic void quirk_amd_nvme_fixup (struct pci_dev *dev) { -struct pci_dev *rdev; - dev->dev_flags |=PCI_DEV_FLAGS_AMD_NVME_SIMPLE_SUSPEND ;pci_info (dev,"AMD simple suspend opt enabled\n" );Signature · 1 line
2.29.2
Quoted 8 lines · Bjorn Helgaas
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]
Quoted 6 lines
Quoted 1 line
Fixes 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path")I guess this refers to https://lore.kernel.org/linux-nvme/[email protected]/
But I don't know what the SHA1 means; I can't find it in linux-next or my tree.
$ git tag --contains 9597624ef606 next-20210416 next-20210419 next-20210420
Something is wrong with your tree.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 16 lines · Andy Shevchenko
Quoted 8 lines · Bjorn Helgaas
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]Quoted 6 lines
Quoted 1 line
Fixes 9597624ef606 ("nvme: put some AMD PCIE downstream NVME device to simple suspend/resume path")I guess this refers to https://lore.kernel.org/linux-nvme/[email protected]/
But I don't know what the SHA1 means; I can't find it in linux-next or my tree.
Quoted 6 lines
$ git tag --contains 9597624ef606 next-20210416 next-20210419 next-20210420Something is wrong with your tree.
I think what's wrong is that it doesn't appear in the *current* linux-next (next-20210430) and I don't have all the old linux-next objects.
It was in next-20210420, but seems to have been dropped since then:
[AMD Public Use]
Quoted 60 lines
-----Original Message-----
From: Bjorn Helgaas <[email protected]>
Sent: Friday, April 30, 2021 3:01 PM
To: Andy Shevchenko <[email protected]>
Cc: Arnd Bergmann <[email protected]>; Bjorn Helgaas <[email protected]>; Liang, Prike <[email protected]>; S-k, Shyam- sundar <[email protected]>; Deucher, Alexander <[email protected]>; Chaitanya Kulkarni <[email protected]>; Arnd Bergmann <[email protected]>; Lorenzo Pieralisi <[email protected]>; Kai-Heng Feng <[email protected]>; Krzysztof Wilczyński <[email protected]>; Rajat Jain <[email protected]>; Andy Shevchenko <[email protected]>; linux-pci <linux- [email protected]>; Linux Kernel Mailing List <linux- [email protected]>
Subject: Re: [PATCH] nvme: fix unused variable warningQuoted 10 lines · Andy Shevchenko
Quoted 9 lines · Bjorn Helgaas
Quoted 8 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The function was introduced with a variable that is never referenced:
drivers/pci/quirks.c: In function 'quirk_amd_nvme_fixup':drivers/pci/quirks.c:312:25: warning: unused variable 'rdev' [-Wunused-variable]Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Fixes 9597624ef606 ("nvme: put some AMD PCIE downstream NVMEdevice to simple suspend/resume path")
I guess this refers to
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flo
Quoted 1 line
Quoted 1 line
re.kernel.org%2Flinux-nvme%2F1618458725-17164-1-git-send-email-
Prike
Quoted 1 line
Quoted 1 line
.Liang%40amd.com%2F&data=04%7C01%7Calexander.deucher%40amd. com%7
Quoted 1 line
Quoted 1 line
C23a1908e8a394d957ce908d90c0a4b06%7C3dd8961fe4884e608e11a82d994e1 83d
Quoted 1 line
Quoted 1 line
%7C0%7C0%7C637554060633362710%7CUnknown%7CTWFpbGZsb3d8eyJWIj oiMC4wLj
Quoted 1 line
Quoted 1 line
AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000& sdat
Quoted 1 line
Quoted 1 line
a=Ztcffnpa8rchwe%2Fb6HuHeRASSlNI7uMwAKZuoH5k6CY%3D&reserv ed=0
Quoted 9 lines
Quoted 3 lines
But I don't know what the SHA1 means; I can't find it in linux-next or my tree.
$ git tag --contains 9597624ef606 next-20210416 next-20210419 next-20210420
Quoted 6 lines
Quoted 1 line
Something is wrong with your tree.
I think what's wrong is that it doesn't appear in the *current* linux-next (next-20210430) and I don't have all the old linux-next objects.
It was in next-20210420, but seems to have been dropped since then:
It was in my tree briefly to facilitate testing, but I since dropped it.
Alex
Quoted 10 lines
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.k
ernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Fnext%2Flinux- next.git%2Fcommit%2Finclude%2Flinux%2Fpci.h%3Fh%3Dnext- 20210420%26id%3D9597624ef6067bab1500d0273a43d4f90e62e929&data =04%7C01%7Calexander.deucher%40amd.com%7C23a1908e8a394d957ce908 d90c0a4b06%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C6375540 60633362710%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQ IjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0Rb%2 F9p8VhmiPu4QP3mEJTUCPe4NNcroFHDhyiYb8h40%3D&reserved=0