use PACKED macro insted of open-coding GCC-ism
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Sep 2009 22:58:11 +0000 (00:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Sep 2009 22:58:11 +0000 (00:58 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
31 files changed:
archival/libunarchive/decompress_unlzma.c
archival/libunarchive/decompress_unzip.c
util-linux/mkfs_vfat.c
util-linux/volume_id/cramfs.c
util-linux/volume_id/ext.c
util-linux/volume_id/fat.c
util-linux/volume_id/hfs.c
util-linux/volume_id/iso9660.c
util-linux/volume_id/jfs.c
util-linux/volume_id/linux_raid.c
util-linux/volume_id/linux_swap.c
util-linux/volume_id/ntfs.c
util-linux/volume_id/ocfs2.c
util-linux/volume_id/reiserfs.c
util-linux/volume_id/romfs.c
util-linux/volume_id/sysv.c
util-linux/volume_id/udf.c
util-linux/volume_id/unused_highpoint.c
util-linux/volume_id/unused_hpfs.c
util-linux/volume_id/unused_isw_raid.c
util-linux/volume_id/unused_lsi_raid.c
util-linux/volume_id/unused_lvm.c
util-linux/volume_id/unused_mac.c
util-linux/volume_id/unused_minix.c
util-linux/volume_id/unused_msdos.c
util-linux/volume_id/unused_nvidia_raid.c
util-linux/volume_id/unused_promise_raid.c
util-linux/volume_id/unused_silicon_raid.c
util-linux/volume_id/unused_ufs.c
util-linux/volume_id/unused_via_raid.c
util-linux/volume_id/xfs.c

index 4478cd2e3b0b5dd02d619b5bec881dc49354af07..ecda17481dd95916b40282470e3e6faf061991dd 100644 (file)
@@ -156,7 +156,7 @@ typedef struct {
        uint8_t pos;
        uint32_t dict_size;
        uint64_t dst_size;
-} __attribute__ ((packed)) lzma_header_t;
+} PACKED lzma_header_t;
 
 
 /* #defines will force compiler to compute/optimize each one with each usage.
index b090f26eb0d4fd52202c333b3666745089678ea0..c571ab43892754d06683cacca0d9f18009303763 100644 (file)
@@ -1117,7 +1117,7 @@ static int check_header_gzip(STATE_PARAM unpack_info_t *info)
                        uint32_t mtime;
                        uint8_t xtra_flags_UNUSED;
                        uint8_t os_flags_UNUSED;
-               } __attribute__((packed)) formatted;
+               } PACKED formatted;
        } header;
        struct BUG_header {
                char BUG_header[sizeof(header) == 8 ? 1 : -1];
index bdd4dd803d775d15826470139b4e35cc4fcde047..10de2af5b729a23c9d590d49cee6de8a5eb84224 100644 (file)
@@ -79,7 +79,7 @@ struct msdos_dir_entry {
        uint16_t date;           /* 018 date */
        uint16_t start;          /* 01a first cluster */
        uint32_t size;           /* 01c file size in bytes */
-} __attribute__ ((packed));
+} PACKED;
 
 /* Example of boot sector's beginning:
 0000  eb 58 90 4d 53 57 49 4e  34 2e 31 00 02 08 26 00  |...MSWIN4.1...&.|
@@ -96,7 +96,7 @@ struct msdos_volume_info { /* (offsets are relative to start of boot sector) */
        uint32_t volume_id32;     /* 043 volume ID number */
        char     volume_label[11];/* 047 volume label */
        char     fs_type[8];      /* 052 typically "FATnn" */
-} __attribute__ ((packed));       /* 05a end. Total size 26 (0x1a) bytes */
+} PACKED;                         /* 05a end. Total size 26 (0x1a) bytes */
 
 struct msdos_boot_sector {
        char     boot_jump[3];       /* 000 short or near jump instruction */
@@ -124,7 +124,7 @@ struct msdos_boot_sector {
        char     boot_code[0x200 - 0x5a - 2]; /* 05a */
 #define BOOT_SIGN 0xAA55
        uint16_t boot_sign;          /* 1fe */
-} __attribute__ ((packed));
+} PACKED;
 
 #define FAT_FSINFO_SIG1 0x41615252
 #define FAT_FSINFO_SIG2 0x61417272
@@ -137,7 +137,7 @@ struct fat32_fsinfo {
        uint32_t reserved2[3];
        uint16_t reserved3;          /* 1fc */
        uint16_t boot_sign;          /* 1fe */
-} __attribute__ ((packed));
+} PACKED;
 
 struct bug_check {
        char BUG1[sizeof(struct msdos_dir_entry  ) == 0x20 ? 1 : -1];
index dd939e4949bc75104cd15c0d3e1cea9a055d462c..37b991105e15e704670d3ec4f2dbc7070a34f9c6 100644 (file)
@@ -31,9 +31,9 @@ struct cramfs_super {
                uint32_t        edition;
                uint32_t        blocks;
                uint32_t        files;
-       } __attribute__((__packed__)) info;
+       } PACKED info;
        uint8_t         name[16];
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/)
 {
index b052e04ce45ff37568b5a0f7ba8c467252b8d68d..e4097737b4d9b0440efa28bfff313ce082102789 100644 (file)
@@ -37,7 +37,7 @@ struct ext2_super_block {
        uint32_t        feature_ro_compat;
        uint8_t uuid[16];
        uint8_t volume_name[16];
-} __attribute__((__packed__));
+} PACKED;
 
 #define EXT3_FEATURE_COMPAT_HAS_JOURNAL                0x00000004
 #define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV      0x00000008
index 352040f57148ad64ddbd06bb9e2acb8c28834979..8cf429ec56a4df63099ca33cb33cf5441d4c7dcc 100644 (file)
@@ -54,7 +54,7 @@ struct vfat_super_block {
                        uint8_t         magic[8];
                        uint8_t         dummy2[192];
                        uint8_t         pmagic[2];
-               } __attribute__((__packed__)) fat;
+               } PACKED fat;
                struct fat32_super_block {
                        uint32_t        fat32_length;
                        uint16_t        flags;
@@ -69,9 +69,9 @@ struct vfat_super_block {
                        uint8_t         magic[8];
                        uint8_t         dummy2[164];
                        uint8_t         pmagic[2];
-               } __attribute__((__packed__)) fat32;
-       } __attribute__((__packed__)) type;
-} __attribute__((__packed__));
+               } PACKED fat32;
+       } PACKED type;
+} PACKED;
 
 struct vfat_dir_entry {
        uint8_t         name[11];
@@ -85,7 +85,7 @@ struct vfat_dir_entry {
        uint16_t        date_write;
        uint16_t        cluster_low;
        uint32_t        size;
-} __attribute__((__packed__));
+} PACKED;
 
 static uint8_t *get_attr_volume_id(struct vfat_dir_entry *dir, int count)
 {
index f99b895c48b8217fc7e5170d63fb58026e0b868f..71a5e8b09072bb9297a35d172694073ee5b4cd2f 100644 (file)
@@ -28,7 +28,7 @@ struct hfs_finder_info{
        uint32_t        reserved;
        uint32_t        osx_folder;
        uint8_t         id[8];
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfs_mdb {
        uint8_t         signature[2];
@@ -58,7 +58,7 @@ struct hfs_mdb {
        uint8_t         embed_sig[2];
        uint16_t        embed_startblock;
        uint16_t        embed_blockcount;
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfsplus_bnode_descriptor {
        uint32_t        next;
@@ -67,7 +67,7 @@ struct hfsplus_bnode_descriptor {
        uint8_t         height;
        uint16_t        num_recs;
        uint16_t        reserved;
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfsplus_bheader_record {
        uint16_t        depth;
@@ -76,19 +76,19 @@ struct hfsplus_bheader_record {
        uint32_t        leaf_head;
        uint32_t        leaf_tail;
        uint16_t        node_size;
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfsplus_catalog_key {
        uint16_t        key_len;
        uint32_t        parent_id;
        uint16_t        unicode_len;
        uint8_t         unicode[255 * 2];
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfsplus_extent {
        uint32_t        start_block;
        uint32_t        block_count;
-} __attribute__((__packed__));
+} PACKED;
 
 #define HFSPLUS_EXTENT_COUNT           8
 struct hfsplus_fork {
@@ -96,7 +96,7 @@ struct hfsplus_fork {
        uint32_t        clump_size;
        uint32_t        total_blocks;
        struct hfsplus_extent extents[HFSPLUS_EXTENT_COUNT];
-} __attribute__((__packed__));
+} PACKED;
 
 struct hfsplus_vol_header {
        uint8_t         signature[2];
@@ -125,7 +125,7 @@ struct hfsplus_vol_header {
        struct hfsplus_fork cat_file;
        struct hfsplus_fork attr_file;
        struct hfsplus_fork start_file;
-} __attribute__((__packed__));
+} PACKED;
 
 #define HFS_SUPERBLOCK_OFFSET          0x400
 #define HFS_NODE_LEAF                  0xff
index 82f5e4846070c266b37c47c9adc931386767a712..76fa546bf0340ef6c9ad2e2841be402b70b6d406 100644 (file)
@@ -38,14 +38,14 @@ struct iso_volume_descriptor {
        uint8_t         unused[8];
        uint8_t         space_size[8];
        uint8_t         escape_sequences[8];
-} __attribute__((__packed__));
+} PACKED;
 
 struct high_sierra_volume_descriptor {
        uint8_t         foo[8];
        uint8_t         type;
        uint8_t         id[4];
        uint8_t         version;
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/)
 {
index 4c39e537af0b679cbf7c1e3c51cef7a8dce08754..eb6008fc45cda469b418f728cbb656eb33094644 100644 (file)
@@ -31,7 +31,7 @@ struct jfs_super_block {
        uint8_t         uuid[16];
        uint8_t         label[16];
        uint8_t         loguuid[16];
-} __attribute__((__packed__));
+} PACKED;
 
 #define JFS_SUPERBLOCK_OFFSET                  0x8000
 
index cc024692cef7fcb987ae13d7782ef080f9c8e906..b691f2037d7bd60610f39863b67108b323f7cefe 100644 (file)
@@ -37,7 +37,7 @@ struct mdp_super_block {
        uint32_t        set_uuid1;
        uint32_t        set_uuid2;
        uint32_t        set_uuid3;
-} __attribute__((packed));
+} PACKED;
 
 #define MD_RESERVED_BYTES              0x10000
 #define MD_MAGIC                       0xa92b4efc
index c9b62e9bf6bdb3c5a075206e986d0daf41af99e9..7ae451649739aa5f4266809245150cb41d1aad15 100644 (file)
@@ -27,7 +27,7 @@ struct swap_header_v1_2 {
        uint32_t        nr_badpages;
        uint8_t         uuid[16];
        uint8_t         volume_name[16];
-} __attribute__((__packed__));
+} PACKED;
 
 #define LARGEST_PAGESIZE                       0x4000
 
index 6e8f1dd3d9a6c2bf14299b8e11eec18c5f594036..3b3e9734729810d6d25742090cf9cba58b90aee9 100644 (file)
@@ -45,7 +45,7 @@ struct ntfs_super_block {
        uint8_t         reserved2[3];
        uint8_t         volume_serial[8];
        uint16_t        checksum;
-} __attribute__((__packed__));
+} PACKED;
 
 struct master_file_table_record {
        uint8_t         magic[4];
@@ -58,7 +58,7 @@ struct master_file_table_record {
        uint16_t        flags;
        uint32_t        bytes_in_use;
        uint32_t        bytes_allocated;
-} __attribute__((__packed__));
+} PACKED;
 
 struct file_attribute {
        uint32_t        type;
@@ -70,13 +70,13 @@ struct file_attribute {
        uint16_t        instance;
        uint32_t        value_len;
        uint16_t        value_offset;
-} __attribute__((__packed__));
+} PACKED;
 
 struct volume_info {
        uint64_t        reserved;
        uint8_t         major_ver;
        uint8_t         minor_ver;
-} __attribute__((__packed__));
+} PACKED;
 
 #define MFT_RECORD_VOLUME                      3
 #define MFT_RECORD_ATTR_VOLUME_NAME            0x60
index 8417d91bb204506a6b7bdb02bcc788f30a15b088..14573caa1df491d04e71df9ac5f9e70344fdd7d6 100644 (file)
@@ -78,7 +78,7 @@ struct ocfs2_super_block {
        uint64_t        s_first_cluster_group;          /* Block offset of 1st cluster group header */
        uint8_t         s_label[OCFS2_MAX_VOL_LABEL_LEN];       /* Label for mounting, etc. */
        uint8_t         s_uuid[OCFS2_VOL_UUID_LEN];     /* 128-bit uuid */
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_ocfs2(struct volume_id *id /*,uint64_t off*/)
 {
index b8cdc98096908a30f6fd6f4e918623317a989978..1298f86ae823ef5d428ba3aa5ad3569f364634a8 100644 (file)
@@ -35,7 +35,7 @@ struct reiserfs_super_block {
        uint32_t        dummy4[5];
        uint8_t         uuid[16];
        uint8_t         label[16];
-} __attribute__((__packed__));
+} PACKED;
 
 struct reiser4_super_block {
        uint8_t         magic[16];
@@ -43,7 +43,7 @@ struct reiser4_super_block {
        uint8_t         uuid[16];
        uint8_t         label[16];
        uint64_t        dummy2;
-} __attribute__((__packed__));
+} PACKED;
 
 #define REISERFS1_SUPERBLOCK_OFFSET            0x2000
 #define REISERFS_SUPERBLOCK_OFFSET             0x10000
index 2c061bdfc3d4ef4dbbf296220904c84413ed4628..4ed13191e2d9c41750384f34a240647bd1625ce7 100644 (file)
@@ -25,7 +25,7 @@ struct romfs_super {
        uint32_t size;
        uint32_t checksum;
        uint8_t name[0];
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/)
 {
index 7a99cd6c75bb05ac9a6cac8dd40a7522b96d5f72..0e650729173d0d6112f2e04a320d7422156836ec 100644 (file)
@@ -48,7 +48,7 @@ struct sysv_super {
        uint32_t        s_state;
        uint32_t        s_magic;
        uint32_t        s_type;
-} __attribute__((__packed__));
+} PACKED;
 
 #define XENIX_NICINOD                          100
 #define XENIX_NICFREE                          100
@@ -74,7 +74,7 @@ struct xenix_super {
        uint8_t         s_fill[371];
        uint32_t        s_magic;
        uint32_t        s_type;
-} __attribute__((__packed__));
+} PACKED;
 
 #define SYSV_SUPERBLOCK_BLOCK                  0x01
 #define SYSV_MAGIC                             0xfd187e20
index e272e1923809b528dc3c9b928e2ef366dfec68da..a6e719a3c5c196b9469ccee8f284e03ec2aa00cb 100644 (file)
@@ -30,28 +30,28 @@ struct volume_descriptor {
                uint16_t        crc;
                uint16_t        crc_len;
                uint32_t        location;
-       } __attribute__((__packed__)) tag;
+       } PACKED tag;
        union {
                struct anchor_descriptor {
                        uint32_t        length;
                        uint32_t        location;
-               } __attribute__((__packed__)) anchor;
+               } PACKED anchor;
                struct primary_descriptor {
                        uint32_t        seq_num;
                        uint32_t        desc_num;
                        struct dstring {
                                uint8_t clen;
                                uint8_t c[31];
-                       } __attribute__((__packed__)) ident;
-               } __attribute__((__packed__)) primary;
-       } __attribute__((__packed__)) type;
-} __attribute__((__packed__));
+                       } PACKED ident;
+               } PACKED primary;
+       } PACKED type;
+} PACKED;
 
 struct volume_structure_descriptor {
        uint8_t         type;
        uint8_t         id[5];
        uint8_t         version;
-} __attribute__((__packed__));
+} PACKED;
 
 #define UDF_VSD_OFFSET                 0x8000
 
index 57c5cadc40ae2323d2b03de80838db0541f46ed3..6fd58b787907c9472d50c7b396675f82fec5262a 100644 (file)
 struct hpt37x_meta {
        uint8_t         filler1[32];
        uint32_t        magic;
-} __attribute__((packed));
+} PACKED;
 
 struct hpt45x_meta {
        uint32_t        magic;
-} __attribute__((packed));
+} PACKED;
 
 #define HPT37X_CONFIG_OFF              0x1200
 #define HPT37X_MAGIC_OK                        0x5a7816f0
index 9d5244f5726325e934cc841fe9ffb288421d732d..8c7897a7707d75facaff84a001f7fe5f1aaf297f 100644 (file)
@@ -23,7 +23,7 @@
 struct hpfs_super {
        uint8_t         magic[4];
        uint8_t         version;
-} __attribute__((__packed__));
+} PACKED;
 
 #define HPFS_SUPERBLOCK_OFFSET                 0x2000
 
index d928245fbaf1144bee7db9d93e08166675cfa160..b31a124a2a31a72fefbd2bb73f1f1d5ce4117588 100644 (file)
@@ -26,7 +26,7 @@ struct isw_meta {
        uint32_t        mpb_size;
        uint32_t        family_num;
        uint32_t        generation_num;
-} __attribute__((packed));
+} PACKED;
 
 #define ISW_SIGNATURE          "Intel Raid ISM Cfg Sig. "
 
index 730a3134e8dc658e3a8b1eb806d21e4af22ffbba..6899900db57f77cdaf98ecfdfb0ef0e98132874e 100644 (file)
@@ -22,7 +22,7 @@
 
 struct lsi_meta {
        uint8_t         sig[6];
-} __attribute__((packed));
+} PACKED;
 
 #define LSI_SIGNATURE          "$XIDE$"
 
index caee04ba50b6f99063874935c41eb81308615351..c3270681e632b8f7a239dfda527d4280241760d4 100644 (file)
@@ -22,7 +22,7 @@
 
 struct lvm1_super_block {
        uint8_t id[2];
-} __attribute__((packed));
+} PACKED;
 
 struct lvm2_super_block {
        uint8_t         id[8];
@@ -30,7 +30,7 @@ struct lvm2_super_block {
        uint32_t        crc_xl;
        uint32_t        offset_xl;
        uint8_t         type[8];
-} __attribute__((packed));
+} PACKED;
 
 #define LVM1_SB_OFF                    0x400
 
index 8eaa17344a5a6397a3e40da0fb69bee85a615bd7..c4732ee0d555064f150f33f1c939c9f4ac2e9bbf 100644 (file)
@@ -24,7 +24,7 @@ struct mac_driver_desc {
        uint8_t         signature[2];
        uint16_t        block_size;
        uint32_t        block_count;
-} __attribute__((__packed__));
+} PACKED;
 
 struct mac_partition {
        uint8_t         signature[2];
@@ -34,7 +34,7 @@ struct mac_partition {
        uint32_t        block_count;
        uint8_t         name[32];
        uint8_t         type[32];
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_mac_partition_map(struct volume_id *id, uint64_t off)
 {
index 2f5209333ad981409d67b8b159f72b25346830fe..4f4f8a72083acf26213794ee1d318145e86651f3 100644 (file)
@@ -31,7 +31,7 @@ struct minix_super_block {
        uint16_t        s_magic;
        uint16_t        s_state;
        uint32_t        s_zones;
-} __attribute__((__packed__));
+} PACKED;
 
 #define MINIX_SUPERBLOCK_OFFSET                        0x400
 
index 097ee67281004a4817fd4eaab1ad5efb7a0d667b..465f22dc37ea22512380e9bc6fa5f5c3f392aeba 100644 (file)
@@ -31,7 +31,7 @@ struct msdos_partition_entry {
        uint8_t         end_cyl;
        uint32_t        start_sect;
        uint32_t        nr_sects;
-} __attribute__((packed));
+} PACKED;
 
 #define MSDOS_PARTTABLE_OFFSET         0x1be
 #define MSDOS_SIG_OFF                  0x1fe
index 692aad111448d86ec799574030abe4201b189eff..b65cec41d137d7921ca3fbaa501f69c78640853e 100644 (file)
@@ -25,7 +25,7 @@ struct nvidia_meta {
        uint32_t        size;
        uint32_t        chksum;
        uint16_t        version;
-} __attribute__((packed));
+} PACKED;
 
 #define NVIDIA_SIGNATURE               "NVIDIA"
 
index 75c6f89d4ae73c2b01e3b1c699a6354ca4a68168..4a15ddaf1371b638717768aa64634d4182f682d6 100644 (file)
@@ -22,7 +22,7 @@
 
 struct promise_meta {
        uint8_t sig[24];
-} __attribute__((packed));
+} PACKED;
 
 #define PDC_CONFIG_OFF         0x1200
 #define PDC_SIGNATURE          "Promise Technology, Inc."
index 51431124b77ef3ef962203dd3378cfd2e0e824e3..6ce4037c6bd0df6eca1f7c93b2547e6d49784ddd 100644 (file)
@@ -37,7 +37,7 @@ struct silicon_meta {
        uint16_t        vendor_id;
        uint16_t        minor_ver;
        uint16_t        major_ver;
-} __attribute__((packed));
+} PACKED;
 
 #define SILICON_MAGIC          0x2F000000
 
index 86937585ffc89f449a9fdf661163f3d3ad0a44a7..e05e93380b71caafb818507f28c2054c574797a5 100644 (file)
@@ -73,7 +73,7 @@ struct ufs_super_block {
                uint32_t        cs_nbfree;
                uint32_t        cs_nifree;
                uint32_t        cs_nffree;
-       } __attribute__((__packed__)) fs_cstotal;
+       } PACKED fs_cstotal;
        int8_t          fs_fmod;
        int8_t          fs_clean;
        int8_t          fs_ronly;
@@ -86,7 +86,7 @@ struct ufs_super_block {
                        uint32_t        fs_maxcluster;
                        uint32_t        fs_cpc;
                        uint16_t        fs_opostbl[16][8];
-               } __attribute__((__packed__)) fs_u1;
+               } PACKED fs_u1;
                struct {
                        int8_t          fs_fsmnt[468];
                        uint8_t         fs_volname[32];
@@ -109,17 +109,17 @@ struct ufs_super_block {
                                uint64_t        cs_nffree;
                                uint64_t        cs_numclusters;
                                uint64_t        cs_spare[3];
-                       } __attribute__((__packed__)) fs_cstotal;
+                       } PACKED fs_cstotal;
                        struct ufs_timeval {
                                int32_t         tv_sec;
                                int32_t         tv_usec;
-                       } __attribute__((__packed__)) fs_time;
+                       } PACKED fs_time;
                        int64_t         fs_size;
                        int64_t         fs_dsize;
                        uint64_t        fs_csaddr;
                        int64_t         fs_pendingblocks;
                        int32_t         fs_pendinginodes;
-               } __attribute__((__packed__)) fs_u2;
+               } PACKED fs_u2;
        }  fs_u11;
        union {
                struct {
@@ -129,7 +129,7 @@ struct ufs_super_block {
                        int32_t         fs_state;
                        uint32_t        fs_qbmask[2];
                        uint32_t        fs_qfmask[2];
-               } __attribute__((__packed__)) fs_sun;
+               } PACKED fs_sun;
                struct {
                        int32_t         fs_sparecon[53];
                        int32_t         fs_reclaim;
@@ -137,7 +137,7 @@ struct ufs_super_block {
                        uint32_t        fs_npsect;
                        uint32_t        fs_qbmask[2];
                        uint32_t        fs_qfmask[2];
-               } __attribute__((__packed__)) fs_sunx86;
+               } PACKED fs_sunx86;
                struct {
                        int32_t         fs_sparecon[50];
                        int32_t         fs_contigsumsize;
@@ -147,7 +147,7 @@ struct ufs_super_block {
                        uint32_t        fs_qbmask[2];
                        uint32_t        fs_qfmask[2];
                        int32_t         fs_state;
-               } __attribute__((__packed__)) fs_44;
+               } PACKED fs_44;
        } fs_u2;
        int32_t         fs_postblformat;
        int32_t         fs_nrpos;
@@ -155,7 +155,7 @@ struct ufs_super_block {
        int32_t         fs_rotbloff;
        uint32_t        fs_magic;
        uint8_t         fs_space[1];
-} __attribute__((__packed__));
+} PACKED;
 
 #define UFS_MAGIC                      0x00011954
 #define UFS2_MAGIC                     0x19540119
index 4332946993501177f43163fb00afbbab5782ec9e..21ed315baef211e2f7b3d55a3a9c689d7550c271 100644 (file)
@@ -29,10 +29,10 @@ struct via_meta {
                uint32_t        capacity_low;
                uint32_t        capacity_high;
                uint32_t        serial_checksum;
-       } __attribute((packed)) array;
+       } PACKED array;
        uint32_t        serial_checksum[8];
        uint8_t         checksum;
-} __attribute__((packed));
+} PACKED;
 
 #define VIA_SIGNATURE          0xAA55
 
index 646c81d3b6e5b87376bcb7250d3c4af0736dd64f..389074c3533111e43fa109ad5f1f51a44fb43d32 100644 (file)
@@ -33,7 +33,7 @@ struct xfs_super_block {
        uint64_t        icount;
        uint64_t        ifree;
        uint64_t        fdblocks;
-} __attribute__((__packed__));
+} PACKED;
 
 int volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/)
 {