Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'affs-for-6.12-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux

Pull affs updates from David Sterba:
"Cleanups removing unused code and updating the definition of a
flexible struct array"

* tag 'affs-for-6.12-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
affs: Replace one-element array with flexible-array member
affs: Remove unused macros GET_END_PTR, AFFS_GET_HASHENTRY

+2 -3
-2
fs/affs/affs.h
··· 14 14 15 15 /* Ugly macros make the code more pretty. */ 16 16 17 - #define GET_END_PTR(st,p,sz) ((st *)((char *)(p)+((sz)-sizeof(st)))) 18 - #define AFFS_GET_HASHENTRY(data,hashkey) be32_to_cpu(((struct dir_front *)data)->hashtable[hashkey]) 19 17 #define AFFS_BLOCK(sb, bh, blk) (AFFS_HEAD(bh)->table[AFFS_SB(sb)->s_hashsize-1-(blk)]) 20 18 21 19 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data)
+2 -1
fs/affs/amigaffs.h
··· 49 49 50 50 struct affs_root_head { 51 51 __be32 ptype; 52 + /* The following fields are not used, but kept as documentation. */ 52 53 __be32 spare1; 53 54 __be32 spare2; 54 55 __be32 hash_size; 55 56 __be32 spare3; 56 57 __be32 checksum; 57 - __be32 hashtable[1]; 58 + __be32 hashtable[]; 58 59 }; 59 60 60 61 struct affs_root_tail {