* [PATCH] s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier
@ 2021-02-15 13:15 Alejandro Colomar
2021-02-15 19:57 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2021-02-15 13:15 UTC (permalink / raw)
To: mtk.manpages; +Cc: Alejandro Colomar, linux-man
s390_pci_mmio_write() uses 'const void *' instead of 'void *'.
Fix it.
......
.../linux$ grep_syscall s390_pci_mmio_write
arch/s390/pci/pci_mmio.c:119:
SYSCALL_DEFINE3(s390_pci_mmio_write, unsigned long, mmio_addr,
const void __user *, user_buffer, size_t, length)
.../linux$
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
man2/s390_pci_mmio_write.2 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/man2/s390_pci_mmio_write.2 b/man2/s390_pci_mmio_write.2
index a9088c25f..9bee6a21f 100644
--- a/man2/s390_pci_mmio_write.2
+++ b/man2/s390_pci_mmio_write.2
@@ -30,10 +30,10 @@ MMIO memory page
.nf
.B #include <asm/unistd.h>
.PP
-.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ","
-.BI " void *" user_buffer ", size_t " length ");"
-.BI "int s390_pci_mmio_read(unsigned long " mmio_addr ","
-.BI " void *" user_buffer ", size_t " length ");"
+.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ,
+.BI " const void *" user_buffer ", size_t " length );
+.BI "int s390_pci_mmio_read(unsigned long " mmio_addr ,
+.BI " void *" user_buffer ", size_t " length );
.fi
.PP
.IR Note :
--
2.30.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier
2021-02-15 13:15 [PATCH] s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier Alejandro Colomar
@ 2021-02-15 19:57 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2021-02-15 19:57 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: mtk.manpages, linux-man
Hi Alex,
On 2/15/21 2:15 PM, Alejandro Colomar wrote:
> s390_pci_mmio_write() uses 'const void *' instead of 'void *'.
> Fix it.
>
> ......
>
> .../linux$ grep_syscall s390_pci_mmio_write
> arch/s390/pci/pci_mmio.c:119:
> SYSCALL_DEFINE3(s390_pci_mmio_write, unsigned long, mmio_addr,
> const void __user *, user_buffer, size_t, length)
> .../linux$
>
> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Thanks! Patch applied.
Cheers,
Michael
> ---
> man2/s390_pci_mmio_write.2 | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/man2/s390_pci_mmio_write.2 b/man2/s390_pci_mmio_write.2
> index a9088c25f..9bee6a21f 100644
> --- a/man2/s390_pci_mmio_write.2
> +++ b/man2/s390_pci_mmio_write.2
> @@ -30,10 +30,10 @@ MMIO memory page
> .nf
> .B #include <asm/unistd.h>
> .PP
> -.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ","
> -.BI " void *" user_buffer ", size_t " length ");"
> -.BI "int s390_pci_mmio_read(unsigned long " mmio_addr ","
> -.BI " void *" user_buffer ", size_t " length ");"
> +.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ,
> +.BI " const void *" user_buffer ", size_t " length );
> +.BI "int s390_pci_mmio_read(unsigned long " mmio_addr ,
> +.BI " void *" user_buffer ", size_t " length );
> .fi
> .PP
> .IR Note :
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-15 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-15 13:15 [PATCH] s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier Alejandro Colomar
2021-02-15 19:57 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox