[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181107022324.11994-1-rafaelgoncalves@riseup.net>
Date: Wed, 7 Nov 2018 00:23:24 -0200
From: rafaelgoncalves@...eup.net
To: digetx@...il.com, mchehab@...nel.org, gregkh@...uxfoundation.org,
thierry.reding@...il.com, jonathanh@...dia.com,
linux-media@...r.kernel.org, linux-tegra@...r.kernel.org,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
lkcamp@...ts.libreplanetbr.org
Cc: Rafael Goncalves <rafaelgoncalves@...eup.net>
Subject: [PATCH] media: staging: tegra-vde: Change from __attribute to __packed.
From: Rafael Goncalves <rafaelgoncalves@...eup.net>
Correct the following warnings from checkpatch.pl:
WARNING: __packed is preferred over __attribute__((packed))
+} __attribute__((packed));
WARNING: __packed is preferred over __attribute__((packed))
+} __attribute__((packed));
Signed-off-by: Rafael Goncalves <rafaelgoncalves@...eup.net>
---
Hi.
It's my first patch submission, please let me know if there is something
that I can improve.
---
drivers/staging/media/tegra-vde/uapi.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/media/tegra-vde/uapi.h b/drivers/staging/media/tegra-vde/uapi.h
index a50c7bcae057..5ffa4afa4047 100644
--- a/drivers/staging/media/tegra-vde/uapi.h
+++ b/drivers/staging/media/tegra-vde/uapi.h
@@ -29,7 +29,7 @@ struct tegra_vde_h264_frame {
__u32 flags;
__u32 reserved;
-} __attribute__((packed));
+} __packed;
struct tegra_vde_h264_decoder_ctx {
__s32 bitstream_data_fd;
@@ -61,7 +61,7 @@ struct tegra_vde_h264_decoder_ctx {
__u8 num_ref_idx_l1_active_minus1;
__u32 reserved;
-} __attribute__((packed));
+} __packed;
#define VDE_IOCTL_BASE ('v' + 0x20)
--
2.19.1
Powered by blists - more mailing lists