aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2023-09-10 18:48:16 +0200
committerPali Rohár <pali@kernel.org>2023-09-10 18:48:16 +0200
commit878fea5235a68342dc8327ba4d28acbcc580dc74 (patch)
tree4c1071f9ca1d4f5100429c7c6404e2506721d96d
parentdb43fb5e8f2c04c409bdd06ac2c2828685038d69 (diff)
downloadpciutils-878fea5235a68342dc8327ba4d28acbcc580dc74.tar.gz
Fix compile warnings about unused variables
sysfs.c: In function 'sysfs_read_vpd': sysfs.c:569:43: warning: unused parameter 'd' [-Wunused-parameter] static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len) ^ sysfs.c:569:50: warning: unused parameter 'pos' [-Wunused-parameter] static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len) ^~~ sysfs.c:569:61: warning: unused parameter 'buf' [-Wunused-parameter] static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len) ^~~ sysfs.c:569:70: warning: unused parameter 'len' [-Wunused-parameter] static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len) ^~~
-rw-r--r--lib/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c
index 8cab869..1bb4ae9 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -566,7 +566,7 @@ static int sysfs_write(struct pci_dev *d, int pos, byte *buf, int len)
/* pread() is not available and do_read() only works for a single fd, so we
* cannot implement read_vpd properly. */
-static int sysfs_read_vpd(struct pci_dev *d, int pos, byte *buf, int len)
+static int sysfs_read_vpd(struct pci_dev *d UNUSED, int pos UNUSED, byte *buf UNUSED, int len UNUSED)
{
return 0;
}