* [PATCH 0/1] s390: Align prototypes of zpci IO memcpy functions
@ 2024-10-10 13:00 Julian Vetter
2024-10-10 13:01 ` [PATCH 1/1] " Julian Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Julian Vetter @ 2024-10-10 13:00 UTC (permalink / raw)
To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
Christian Borntraeger, Sven Schnelle, Niklas Schnelle
Cc: linux-s390, linux-kernel, Julian Vetter
As discussed with Niklas Schnelle, I have dropped all the unnecessary
code from the patch and have just aligned the prototypes with the
generic ones from asm-generic/io.h.
Signed-off-by: Julian Vetter <jvetter@kalrayinc.com>
---
Julian Vetter (1):
s390: Align prototypes of zpci IO memcpy functions
arch/s390/include/asm/pci_io.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] s390: Align prototypes of zpci IO memcpy functions
2024-10-10 13:00 [PATCH 0/1] s390: Align prototypes of zpci IO memcpy functions Julian Vetter
@ 2024-10-10 13:01 ` Julian Vetter
2024-10-10 14:58 ` Heiko Carstens
0 siblings, 1 reply; 3+ messages in thread
From: Julian Vetter @ 2024-10-10 13:01 UTC (permalink / raw)
To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
Christian Borntraeger, Sven Schnelle, Niklas Schnelle
Cc: linux-s390, linux-kernel, Julian Vetter
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>
---
arch/s390/include/asm/pci_io.h | 6 +++---
1 file 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;
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] s390: Align prototypes of zpci IO memcpy functions
2024-10-10 13:01 ` [PATCH 1/1] " Julian Vetter
@ 2024-10-10 14:58 ` Heiko Carstens
0 siblings, 0 replies; 3+ messages in thread
From: Heiko Carstens @ 2024-10-10 14:58 UTC (permalink / raw)
To: Julian Vetter
Cc: Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
Sven Schnelle, Niklas Schnelle, linux-s390, linux-kernel
On Thu, Oct 10, 2024 at 03:01:00PM +0200, Julian Vetter wrote:
> 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>
> ---
> arch/s390/include/asm/pci_io.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-10 14:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 13:00 [PATCH 0/1] s390: Align prototypes of zpci IO memcpy functions Julian Vetter
2024-10-10 13:01 ` [PATCH 1/1] " Julian Vetter
2024-10-10 14:58 ` Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox