projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8bd29b
)
PCI: Return int from pciconfig_read() syscall
author
Krzysztof Wilczyński
<kw@linux.com>
Thu, 29 Jul 2021 23:37:55 +0000
(23:37 +0000)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Tue, 3 Aug 2021 21:55:48 +0000
(16:55 -0500)
Change pciconfig_read() syscall "err" return value from long to int. This
makes it consistent with pciconfig_write().
[bhelgaas: commit log]
Link:
https://lore.kernel.org/r/20210729233755.1509616-2-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/syscall.c
patch
|
blob
|
history
diff --git
a/drivers/pci/syscall.c
b/drivers/pci/syscall.c
index c9f03418e71e09ad1a38c3eae2ffd82d91bccf75..61a6fe3cde21cf227c7cc34529576758f801e4b5 100644
(file)
--- a/
drivers/pci/syscall.c
+++ b/
drivers/pci/syscall.c
@@
-19,8
+19,7
@@
SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn,
u8 byte;
u16 word;
u32 dword;
- long err;
- int cfg_ret;
+ int err, cfg_ret;
err = -EPERM;
dev = NULL;