Re: [PATCH] man/man2/statmount.2: Fix incorrect function signature

Alejandro Colomar <[email protected]>
Newsgroups org.kernel.vger.linux-man,org.kernel.vger.linux-fsdevel
Message-ID <aomZfSXwrctrBbqX@devuan>
Hi Bhavik,

> Date: 2026-08-17 11:07:45+0200
> From: Alejandro Colomar <[email protected]>
>
> Hi Bhavik, Josef,
> 
> > 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!
> 
> > Fixes: c011cc992510 (2024-07-09; "statmount.2: Add page")
> 
> Please CC the people involved in that commit.  (I've done it now.)
> 
> > Signed-off-by: Bhavik Sachdev <[email protected]>

Thanks!  I've applied the patch.


Have a lovely day!
Alex

> > ---
> >  man/man2/statmount.2 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/man/man2/statmount.2 b/man/man2/statmount.2
> > index b6d9dc2a1..a365002dd 100644
> > --- a/man/man2/statmount.2
> > +++ b/man/man2/statmount.2
> > @@ -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
> 
> >  .P
> >  .B #include <linux/mount.h>
> >  .fi
> > -- 
> > 2.53.0
> > 
> > 
> 
> -- 
> <https://www.alejandro-colomar.es>



-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmqJm4kACgkQ64mZXMKQ
wqnTShAAmSr/Mh/QNl+pG4/EHFNYWErWbv8zXGTDOxmXLVfguzI8T8806GoirDl3
/d3zvR6LS/G8fftOOGzEkLDGGQRmmm+2GE7LaElfHUs4jUClzCHpUAkJX2UUyMzo
hk3kywZiC0BNnRYQAUxrWXsarR5r4xK+fMqJroK0otmb50BDdDTZ9Zhi3FAGjNnD
7m99qNhGOIxuomgPb3CDGZwPnpY2Xv7YjiBMPdBh6SPiwmgA4nbAWuZeP1vI9vhL
g7GrOQtApgtZJ6/rH29ZZVx+vRXoQsHEnSYYzM8VV34bAZ4iERrzbnWGCiJPOGPa
OjfNc50ZOKJZc9/ubcTwUZwE5wn2unmVSYkEf3yflcpjzxZ3DkCh9hWIU3rAfIPx
mTwgwJ/kwvQv4rimBIxp7bmn3VZMFOfC4hySIbEIyhafqX4UeYY4zwXM8kwkBXNB
jvTdtGGQLTesC61BAJeBCZQbvij2EjCADvv4ONaiaOlSeHne90vfX25zhKh7c0Mh
uZErOTjHGiS4v17tKWvhNcx/gXCy6g05TSZ4asvte9M5+v+tDptSQhQafu592jmL
8YilRgCnIHRdAA8KosYYbpbhzck4n+M+xAnhf7/JBPCd/08KcUn8xt3IZ0Smij7X
hZbUNGX5eIK3j6kWxbl1x04FiXi1rE3FGysmI2BqWPKhbh8Ui9A=
=in4K
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.