Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699249 > unrolled thread

[PATCH 1/5] Fix packed and aligned attribute warnings.

Started bySZ Lin <sz.lin@moxa.com>
First post2017-07-29 09:30 +0200
Last post2017-07-29 09:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/5] Fix packed and aligned attribute warnings. SZ Lin <sz.lin@moxa.com> - 2017-07-29 09:30 +0200

#1699249 — [PATCH 1/5] Fix packed and aligned attribute warnings.

FromSZ Lin <sz.lin@moxa.com>
Date2017-07-29 09:30 +0200
Subject[PATCH 1/5] Fix packed and aligned attribute warnings.
Message-ID<u8ume-7n2-3@gated-at.bofh.it>
WARNING: __packed is preferred over __attribute__((packed))
+} __attribute__((packed, aligned(8)));

WARNING: __aligned(size) is preferred over __attribute__((aligned(size)))
+} __attribute__((packed, aligned(8)));

Signed-off-by: SZ Lin <sz.lin@moxa.com>
---
 drivers/char/tpm/tpm_ibmvtpm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm_ibmvtpm.h b/drivers/char/tpm/tpm_ibmvtpm.h
index 91dfe766d080..9f708ca3dc84 100644
--- a/drivers/char/tpm/tpm_ibmvtpm.h
+++ b/drivers/char/tpm/tpm_ibmvtpm.h
@@ -25,7 +25,7 @@ struct ibmvtpm_crq {
 	__be16 len;
 	__be32 data;
 	__be64 reserved;
-} __attribute__((packed, aligned(8)));
+} __packed __aligned(8);
 
 struct ibmvtpm_crq_queue {
 	struct ibmvtpm_crq *crq_addr;
-- 
2.13.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web