Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: dri-devel@lists.freedesktop.org
Cc: Jani Nikula <jani.nikula@intel.com>, intel-gfx@lists.freedesktop.org
Subject: [PATCH 2/2] drm/ioc32: replace __attribute__((packed)) with __packed
Date: Tue, 12 Dec 2023 15:25:57 +0200	[thread overview]
Message-ID: <20231212132557.3777281-2-jani.nikula@intel.com> (raw)
In-Reply-To: <20231212132557.3777281-1-jani.nikula@intel.com>

__packed is preferred over __attribute__((packed)).

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/drm_ioc32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_ioc32.c b/drivers/gpu/drm/drm_ioc32.c
index 129e2b91dbfe..e6b5b06de148 100644
--- 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)
-- 
2.39.2


  reply	other threads:[~2023-12-12 13:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-12 13:25 [PATCH 1/2] drm/edid: replace __attribute__((packed)) with __packed Jani Nikula
2023-12-12 13:25 ` Jani Nikula [this message]
2023-12-12 13:49 ` ✗ Fi.CI.SPARSE: warning for series starting with [1/2] " Patchwork
2023-12-12 14:08 ` ✗ Fi.CI.BAT: failure " Patchwork
2023-12-12 16:31 ` ✗ Fi.CI.SPARSE: warning for series starting with [1/2] drm/edid: replace __attribute__((packed)) with __packed (rev2) Patchwork
2023-12-12 16:50 ` ✗ Fi.CI.BAT: failure " Patchwork
2023-12-12 16:56   ` Jani Nikula
2023-12-13  6:58     ` Musial, Ewelina
2023-12-13 14:38       ` Illipilli, TejasreeX
2023-12-13 14:10 ` ✓ Fi.CI.BAT: success " Patchwork
2023-12-13 15:03 ` ✓ Fi.CI.IGT: " Patchwork
2023-12-14 10:20 ` [PATCH 1/2] drm/edid: replace __attribute__((packed)) with __packed Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231212132557.3777281-2-jani.nikula@intel.com \
    --to=jani.nikula@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox