diff mbox series

[v4,35/35] ioctl_getfsmap.2: Make clear why exactly is each header needed

Message ID 20210403194026.102818-36-alx.manpages@gmail.com
State Not Applicable
Headers show
Series SYNOPSIS: Use syscall(SYS_...); and fix '#include's | expand

Commit Message

Alejandro Colomar \(man-pages\) April 3, 2021, 7:40 p.m. UTC
<linux/fs.h> doesn't seem to be needed!
Only the include that provides the prototype doesn't need a comment.

Also sort the includes alphabetically.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man2/ioctl_getfsmap.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/man2/ioctl_getfsmap.2 b/man2/ioctl_getfsmap.2
index 4ff1c8a90..55a9ad620 100644
--- a/man2/ioctl_getfsmap.2
+++ b/man2/ioctl_getfsmap.2
@@ -25,9 +25,9 @@ 
 ioctl_getfsmap \- retrieve the physical layout of the filesystem
 .SH SYNOPSIS
 .nf
+.BR "#include <linux/fsmap.h>" "  /* Definition of " FS_IOC_GETFSMAP ,
+.RB "                           * " FM?_OF_* ", and " *FMR_OWN_* " constants */"
 .B #include <sys/ioctl.h>
-.B #include <linux/fs.h>
-.B #include <linux/fsmap.h>
 .PP
 .BI "int ioctl(int " fd ", FS_IOC_GETFSMAP, struct fsmap_head * " arg );
 .fi