summaryrefslogtreecommitdiff
path: root/src/mtd_probe/mtd_probe.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-18 19:29:00 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-03-18 19:29:00 -0400
commit60e1a981160cd280e9cbbab61d0174f3ec86b02d (patch)
treea1540bd7be40446f18cb3421603415ad8d5632c4 /src/mtd_probe/mtd_probe.h
parent3fa57f4051e01953be9185f0ec55e16dc4cf0673 (diff)
tree-wide: use _packed_ macro instead of raw gcc __attribute__
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/mtd_probe/mtd_probe.h')
-rw-r--r--src/mtd_probe/mtd_probe.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mtd_probe/mtd_probe.h b/src/mtd_probe/mtd_probe.h
index 2a37ede578..e048a01229 100644
--- a/src/mtd_probe/mtd_probe.h
+++ b/src/mtd_probe/mtd_probe.h
@@ -19,6 +19,8 @@
#include <mtd/mtd-user.h>
+#include "macro.h"
+
/* Full oob structure as written on the flash */
struct sm_oob {
uint32_t reserved;
@@ -28,8 +30,7 @@ struct sm_oob {
uint8_t ecc2[3];
uint8_t lba_copy2[2];
uint8_t ecc1[3];
-} __attribute__((packed));
-
+} _packed_;
/* one sector is always 512 bytes, but it can consist of two nand pages */
#define SM_SECTOR_SIZE 512
@@ -45,5 +46,4 @@ struct sm_oob {
#define SM_SMALL_PAGE 256
#define SM_SMALL_OOB_SIZE 8
-
void probe_smart_media(int mtd_fd, mtd_info_t *info);