mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
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
This commit is contained in:
parent
dd20946516
commit
8acf543cc6
1 changed files with 2 additions and 2 deletions
|
@ -229,7 +229,7 @@ typedef struct drm_update_draw32 {
|
|||
unsigned int num;
|
||||
/* 64-bit version has a 32-bit pad here */
|
||||
u64 data; /**< Pointer */
|
||||
} __attribute__((packed)) drm_update_draw32_t;
|
||||
} __packed drm_update_draw32_t;
|
||||
|
||||
static int compat_drm_update_draw(struct file *file, unsigned int cmd,
|
||||
unsigned long arg)
|
||||
|
@ -296,7 +296,7 @@ typedef struct drm_mode_fb_cmd232 {
|
|||
u32 pitches[4];
|
||||
u32 offsets[4];
|
||||
u64 modifier[4];
|
||||
} __attribute__((packed)) drm_mode_fb_cmd232_t;
|
||||
} __packed drm_mode_fb_cmd232_t;
|
||||
|
||||
static int compat_drm_mode_addfb2(struct file *file, unsigned int cmd,
|
||||
unsigned long arg)
|
||||
|
|
Loading…
Reference in a new issue