Re: [RESEND PATCH][next] fs: nfs: acl: Avoid -Wflex-array-member-not-at-end warning

2025-02-05 Thread Jeff Layton
On Tue, 2025-02-04 at 13:33 +1030, Gustavo A. R. Silva wrote: > -Wflex-array-member-not-at-end was introduced in GCC-14, and we are > getting ready to enable it, globally. > > So, in order to avoid ending up with a flexible-array member in the > middle of other structs, we use the `struct_group_ta

Re: [PATCH] NFSD: Annotate struct pnfs_block_deviceaddr with __counted_by()

2024-08-28 Thread Jeff Layton
; --- a/fs/nfsd/blocklayoutxdr.h > +++ b/fs/nfsd/blocklayoutxdr.h > @@ -47,7 +47,7 @@ struct pnfs_block_volume { > > struct pnfs_block_deviceaddr { > u32 nr_volumes; > - struct pnfs_block_volumevolumes[]; > + struct pnfs_block_volumevolumes[] __counted_by(nr_volumes); > }; > > __be32 nfsd4_block_encode_getdeviceinfo(struct xdr_stream *xdr, Acked-by: Jeff Layton

[PATCH v2 62/89] pstore: convert to new timestamp accessors

2023-10-04 Thread Jeff Layton
Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton --- fs/pstore/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index 585360706b33..d41c20d1b5e8 100644 --- a/fs/pstore/inode.c +++ b/fs

[PATCH 61/87] fs/pstore: convert to new inode {a,m}time accessors

2023-09-28 Thread Jeff Layton
Signed-off-by: Jeff Layton --- fs/pstore/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index 585360706b33..d41c20d1b5e8 100644 --- a/fs/pstore/inode.c +++ b/fs/pstore/inode.c @@ -223,7 +223,7 @@ static struct inode