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

drm/ioc32: replace __attribute__((packed)) with __packed

__packed is preferred over __attribute__((packed)).

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20231212132557.3777281-2-jani.nikula@intel.com

+2 -2
+2 -2
drivers/gpu/drm/drm_ioc32.c
··· 229 229 unsigned int num; 230 230 /* 64-bit version has a 32-bit pad here */ 231 231 u64 data; /**< Pointer */ 232 - } __attribute__((packed)) drm_update_draw32_t; 232 + } __packed drm_update_draw32_t; 233 233 234 234 static int compat_drm_update_draw(struct file *file, unsigned int cmd, 235 235 unsigned long arg) ··· 296 296 u32 pitches[4]; 297 297 u32 offsets[4]; 298 298 u64 modifier[4]; 299 - } __attribute__((packed)) drm_mode_fb_cmd232_t; 299 + } __packed drm_mode_fb_cmd232_t; 300 300 301 301 static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd, 302 302 unsigned long arg)