mtd: nand: use __packed shorthand

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 28 00:59:07 EST 2014


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e2e6b7b7d64baeac1c38fa5eb0d3ec85f3d123f5
Commit:     e2e6b7b7d64baeac1c38fa5eb0d3ec85f3d123f5
Parent:     8429bb3975ef81c114cde4da111e64d224d19f83
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Dec 5 12:06:54 2013 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon Jan 13 23:13:31 2014 -0800

    mtd: nand: use __packed shorthand
    
    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 at gmail.com>
    Acked-by: Huang Shijie <b32955 at freescale.com>
---
 include/linux/mtd/nand.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 3080a8c..05fcdfe 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
 



More information about the linux-mtd-cvs mailing list