Patchwork [4/4] mtd: nand: use __packed shorthand

login
register
mail settings
Submitter Brian Norris
Date Dec. 5, 2013, 8:20 p.m.
Message ID <1386274800-22013-4-git-send-email-computersforpeace@gmail.com>
Download mbox | patch
Permalink /patch/297390/
State Accepted
Commit e2e6b7b7d64baeac1c38fa5eb0d3ec85f3d123f5
Headers show

Comments

Brian Norris - Dec. 5, 2013, 8:20 p.m.
To be consistent with the rest of include/linux/mtd/nand.h, we should
use the __packed shorthand instead of __attribute__((packed)).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 include/linux/mtd/nand.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 6e579e90955e..32213a5a6705 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -292,7 +292,7 @@  struct nand_onfi_params {
 	u8 vendor[88];
 
 	__le16 crc;
-} __attribute__((packed));
+} __packed;
 
 #define ONFI_CRC_BASE	0x4F4E