Re: [PATCH] ntfs: avoid unnecessary padding in uapi structure

From: Namjae Jeon

Date: Wed Oct 14 2026 - 08:53:40 EST


On Wed, Oct 14, 2026 at 5:49 AM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
>
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> Building the uapi headers with -Wpadded shows a warning that
> may indicate an incompatibility:
>
> ./usr/include/linux/ntfs.h:91:1: error: padding struct size to alignment boundary with 4 bytes [-Werror=padded]
>
> This is relatively harmless here as the 64-bit members force natural
> alignment, so this is not a problem for compat ioctls, and I checked
> that the padding word is still initialized by means of using kvzalloc()
> to allocate it, but it's better to avoid the padding out of
> principle.
>
> Change the reserved member to use a 64-bit type so the name field
> starts after the structure and all padding is explicit.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Applied it to #ntfs-next.
Thanks!