Skip to contentSkip to conversation

s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 15, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390_pci_mmio_write.2: SYNOPSIS: Add 'const' qualifier

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$

---
 man2/s390_pci_mmio_write.2 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
man2/s390_pci_mmio_write.2 +4 -4
index a9088c25f..9bee6a21f 100644
@@ -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 :
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 5 lines · Alejandro Colomar

s390_pci_mmio_write() uses 'const void *' instead of 'void *'. Fix it.

......

Quoted 7 lines

.../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$

Thanks! Patch applied.

Cheers,

Michael

Quoted 24 lines
---
 man2/s390_pci_mmio_write.2 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
man2/s390_pci_mmio_write.2 +4 -4
index a9088c25f..9bee6a21f 100644
@@ -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 :
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/