All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx.manpages@gmail.com>
To: mtk.manpages@gmail.com
Cc: Alejandro Colomar <alx.manpages@gmail.com>, linux-man@vger.kernel.org
Subject: [PATCH 4/8] s390_pci_mmio_write.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes too
Date: Sat, 15 May 2021 20:20:24 +0200	[thread overview]
Message-ID: <20210515182027.186403-4-alx.manpages@gmail.com> (raw)
In-Reply-To: <20210515182027.186403-1-alx.manpages@gmail.com>

This function doesn't use any flags or special types, so there's
no reason to include <asm/unistd.h>; remove it.  Add the includes
needed for syscall(2) only.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/s390_pci_mmio_write.2 | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/man2/s390_pci_mmio_write.2 b/man2/s390_pci_mmio_write.2
index 57eb54601..4e34889db 100644
--- a/man2/s390_pci_mmio_write.2
+++ b/man2/s390_pci_mmio_write.2
@@ -28,16 +28,19 @@ s390_pci_mmio_write, s390_pci_mmio_read \- transfer data to/from PCI
 MMIO memory page
 .SH SYNOPSIS
 .nf
-.B #include <asm/unistd.h>
+.BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
+.B #include <unistd.h>
 .PP
-.BI "int s390_pci_mmio_write(unsigned long " mmio_addr ,
+.BI "int syscall(SYS_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 "int syscall(SYS_s390_pci_mmio_read, unsigned long " mmio_addr ,
 .BI "                       void *" user_buffer ", size_t " length );
 .fi
 .PP
 .IR Note :
-There are no glibc wrappers for these system calls; see NOTES.
+glibc provides no wrappers for these system calls,
+necessitating the use of
+.BR syscall (2).
 .SH DESCRIPTION
 The
 .BR s390_pci_mmio_write ()
@@ -102,8 +105,5 @@ These system calls are available since Linux 3.19.
 .SH CONFORMING TO
 This Linux-specific system call is available only on the s390 architecture.
 The required PCI support is available beginning with System z EC12.
-.SH NOTES
-Glibc does not provide wrappers for these system calls; call them using
-.BR syscall (2)
 .SH SEE ALSO
 .BR syscall (2)
-- 
2.31.1


  parent reply	other threads:[~2021-05-15 18:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15 18:20 [PATCH 1/8] rename.2: ffix Alejandro Colomar
2021-05-15 18:20 ` [PATCH 2/8] rt_sigqueueinfo.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-15 18:20 ` [PATCH 3/8] s390_guarded_storage.2: " Alejandro Colomar
2021-05-15 18:20 ` Alejandro Colomar [this message]
2021-05-15 18:20 ` [PATCH 5/8] s390_runtime_instr.2: " Alejandro Colomar
2021-05-15 18:20 ` [PATCH 6/8] s390_sthyi.2: Replace numeric constant by its name (macro) Alejandro Colomar
2021-05-15 18:20 ` [PATCH 7/8] s390_sthyi.2: Use syscall(SYS_...); for system calls without a wrapper Alejandro Colomar
2021-05-15 18:20 ` [PATCH 8/8] sched_setattr.2: " Alejandro Colomar
2021-05-17  4:55 ` [PATCH 1/8] rename.2: ffix Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210515182027.186403-4-alx.manpages@gmail.com \
    --to=alx.manpages@gmail.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.