[lkml]   [2021]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] PCI/VPD: fix unused pci_vpd_set_size function warning
On Wed, Apr 21, 2021 at 8:56 PM Arnd Bergmann <> wrote:
> From: Arnd Bergmann <>
> The only user of this function is now in an #ifdef, causing
> a warning when that symbol is not defined:
> drivers/pci/vpd.c:289:13: error: 'pci_vpd_set_size' defined but not used [-Werror=unused-function]
> 289 | static void pci_vpd_set_size(struct pci_dev *dev, size_t len)
> Move the function into that #ifdef block.
> Fixes: f349223f076e ("PCI/VPD: Remove pci_set_vpd_size()")
> Signed-off-by: Arnd Bergmann <>

Reviewed-by: Geert Uytterhoeven <>



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

 \ /
  Last update: 2021-04-27 12:33    [W:0.065 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site