summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Vetter <jvetter@kalrayinc.com>2024-10-10 15:01:00 +0200
committerHeiko Carstens <hca@linux.ibm.com>2024-10-16 11:33:06 +0200
commitd6e48a01bb4f51afa1d9bd4fd948364545915bde (patch)
treee3286d01658035dd898a5b4b0cf366c71328e942
parent99ad39306a629e4ab59acc45c2ab7803d580731a (diff)
downloadlwn-d6e48a01bb4f51afa1d9bd4fd948364545915bde.tar.gz
lwn-d6e48a01bb4f51afa1d9bd4fd948364545915bde.zip
s390/pci: Align prototypes of zpci IO memcpy functions
The generic memcpy_{from,to}io and memset_io functions have a different prototype than the zpci_memcpy_{from,to}io and zpci_memset_io functions. But in driver code zpci functions are used as IO memcpy directly. So, align their prototypes. Signed-off-by: Julian Vetter <jvetter@kalrayinc.com> Link: https://lore.kernel.org/r/20241010130100.710005-2-jvetter@kalrayinc.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r--arch/s390/include/asm/pci_io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/include/asm/pci_io.h b/arch/s390/include/asm/pci_io.h
index 2686bee800e3..43a5ea4ee20f 100644
--- a/arch/s390/include/asm/pci_io.h
+++ b/arch/s390/include/asm/pci_io.h
@@ -143,7 +143,7 @@ static inline int zpci_get_max_io_size(u64 src, u64 dst, int len, int max)
static inline int zpci_memcpy_fromio(void *dst,
const volatile void __iomem *src,
- unsigned long n)
+ size_t n)
{
int size, rc = 0;
@@ -162,7 +162,7 @@ static inline int zpci_memcpy_fromio(void *dst,
}
static inline int zpci_memcpy_toio(volatile void __iomem *dst,
- const void *src, unsigned long n)
+ const void *src, size_t n)
{
int size, rc = 0;
@@ -187,7 +187,7 @@ static inline int zpci_memcpy_toio(volatile void __iomem *dst,
}
static inline int zpci_memset_io(volatile void __iomem *dst,
- unsigned char val, size_t count)
+ int val, size_t count)
{
u8 *src = kmalloc(count, GFP_KERNEL);
int rc;