Skip to contentSkip to conversation

man/man2/statmount.2: Fix incorrect function signature

PATCH In review Bhavik Sachdev 2 participants 3 messages Aug 15 – Aug 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man/man2/statmount.2: Fix incorrect function signature

flags argument is an unsigned int not an unsigned long [1].

[1]:
<https://github.com/torvalds/linux/blob/master/fs/namespace.c#L5961>

Fixes c011cc992510 (2024-07-09; "statmount.2: Add page")
---
 man/man2/statmount.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man/man2/statmount.2 +1 -1
index b6d9dc2a1..a365002dd 100644
@@ -16,7 +16,7 @@ Standard C library
 .P
 .BI "int syscall(SYS_statmount, struct mnt_id_req *" req ,
 .BI "            struct statmount *" smbuf ", size_t " bufsize ,
-.BI "            unsigned long " flags );
+.BI "            unsigned int " flags );
 .P
 .B #include <linux/mount.h>
 .fi
Signature · 1 line
2.53.0
#1 lore raw

Hi Bhavik, Josef,

Quoted 7 lines

Date: 2026-08-15 13:15:26+0530
From: Bhavik Sachdev <[email protected]>

flags argument is an unsigned int not an unsigned long [1].

[1]:
<https://github.com/torvalds/linux/blob/master/fs/namespace.c#L5961>

Thanks!

Quoted 1 line
Fixes c011cc992510 (2024-07-09; "statmount.2: Add page")

Please CC the people involved in that commit. (I've done it now.)

Quoted 10 lines
---
 man/man2/statmount.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man/man2/statmount.2 +0 -0
index b6d9dc2a1..a365002dd 100644

man/man2/statmount.2 Standard C library · line 19

Quoted 5 lines
man/man2/statmount.2 +1 -1
@@ -16,7 +16,7 @@ Standard C library
 .P
 .BI "int syscall(SYS_statmount, struct mnt_id_req *" req ,
 .BI "            struct statmount *" smbuf ", size_t " bufsize ,
-.BI "            unsigned long " flags );
+.BI "            unsigned int " flags );

LGTM.

$ grepc -tfld statmount . | head -n4
./fs/namespace.c:SYSCALL_DEFINE4(statmount, const struct mnt_id_req __user *, req,
		struct statmount __user *, buf, size_t, bufsize,
		unsigned int, flags)
{

Josef, was it just a typo, or is there anything that needs checking?

Have a lovely day!
Alex

Quoted 7 lines
man/man2/statmount.2 +0 -0
 .P
 .B #include <linux/mount.h>
 .fi
Signature · 1 line
2.53.0
Signature · 1 line
<https://www.alejandro-colomar.es>
#2 lore raw

Hi Bhavik,

Quoted 10 lines

Date: 2026-08-17 11:07:45+0200
From: Alejandro Colomar <[email protected]>

Hi Bhavik, Josef,

Quoted 5 lines

Date: 2026-08-15 13:15:26+0530
From: Bhavik Sachdev <[email protected]>

flags argument is an unsigned int not an unsigned long [1].

Quoted 10 lines
Quoted 2 lines

[1]:
<https://github.com/torvalds/linux/blob/master/fs/namespace.c#L5961>

Thanks!

Quoted 1 line
Fixes c011cc992510 (2024-07-09; "statmount.2: Add page")

Please CC the people involved in that commit. (I've done it now.)

Quoted 1 line

Thanks! I've applied the patch.

Have a lovely day!
Alex

Quoted 40 lines
Quoted 9 lines
---
 man/man2/statmount.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man/man2/statmount.2 +0 -0
index b6d9dc2a1..a365002dd 100644

man/man2/statmount.2 Standard C library · line 19

Quoted 5 lines
man/man2/statmount.2 +1 -1
@@ -16,7 +16,7 @@ Standard C library
 .P
 .BI "int syscall(SYS_statmount, struct mnt_id_req *" req ,
 .BI "            struct statmount *" smbuf ", size_t " bufsize ,
-.BI "            unsigned long " flags );
+.BI "            unsigned int " flags );

LGTM.

$ grepc -tfld statmount . | head -n4
./fs/namespace.c:SYSCALL_DEFINE4(statmount, const struct mnt_id_req __user *, req,
		struct statmount __user *, buf, size_t, bufsize,
		unsigned int, flags)
{

Josef, was it just a typo, or is there anything that needs checking?

Have a lovely day!
Alex

Quoted 7 lines
man/man2/statmount.2 +0 -0
 .P
 .B #include <linux/mount.h>
 .fi
Signature · 1 line
2.53.0
Signature · 1 line
<https://www.alejandro-colomar.es>
Signature · 1 line
<https://www.alejandro-colomar.es>