Re: [PATCH] PCI/VPD: fix unused pci_vpd_set_size function warning
From: Krzysztof Wilczyński
Date: Wed Apr 21 2021 - 12:54:29 EST
Hi Arnd,
> 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.
[...]
Thank you!
Reviewed-by: Krzysztof Wilczyński <kw@xxxxxxxxx>
Krzysztof