projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd20946
)
drm/ioc32: replace __attribute__((packed)) with __packed
author
Jani Nikula
<jani.nikula@intel.com>
Tue, 12 Dec 2023 13:25:57 +0000
(15:25 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Thu, 14 Dec 2023 10:16:58 +0000
(12:16 +0200)
__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
drivers/gpu/drm/drm_ioc32.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_ioc32.c
b/drivers/gpu/drm/drm_ioc32.c
index 129e2b91dbfe7f785a821c165db0c0b88ff4b1c9..e6b5b06de1487be0f9b0a08892e341a49750534b 100644
(file)
--- a/
drivers/gpu/drm/drm_ioc32.c
+++ b/
drivers/gpu/drm/drm_ioc32.c
@@
-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)