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

fscrypt: Remove __packed from fscrypt_policy

This commit removes __packed from fscrypt_policy as it does not contain
any implicit padding and does not refer to an on-disk structure. Even
though this is a change to a UAPI file, no users will be broken as the
structure doesn't change.

Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Joe Richey and committed by
Theodore Ts'o
960e6994 9c8268de

+1 -1
+1 -1
include/uapi/linux/fs.h
··· 279 279 __u8 filenames_encryption_mode; 280 280 __u8 flags; 281 281 __u8 master_key_descriptor[FS_KEY_DESCRIPTOR_SIZE]; 282 - } __packed; 282 + }; 283 283 284 284 #define FS_IOC_SET_ENCRYPTION_POLICY _IOR('f', 19, struct fscrypt_policy) 285 285 #define FS_IOC_GET_ENCRYPTION_PWSALT _IOW('f', 20, __u8[16])