diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-02-07 20:38:28 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 22:23:07 +0300 |
commit | ae99111ecf70c3003b4b1ba38b95fbe35410b2a6 (patch) | |
tree | 7f5c9a444f27b350fd9e1dc46b241d42ed2f1e8c /drivers/md/persistent-data/dm-space-map-common.h | |
parent | f8922a48291d40c4fb07d66ef88c69ea415d8cd9 (diff) | |
download | linux-ae99111ecf70c3003b4b1ba38b95fbe35410b2a6.tar.xz |
dm: favour __packed versus "__attribute__ ((packed))"
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/persistent-data/dm-space-map-common.h')
-rw-r--r-- | drivers/md/persistent-data/dm-space-map-common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/persistent-data/dm-space-map-common.h b/drivers/md/persistent-data/dm-space-map-common.h index 27bd5d9ed2e9..e83d1f225078 100644 --- a/drivers/md/persistent-data/dm-space-map-common.h +++ b/drivers/md/persistent-data/dm-space-map-common.h @@ -34,7 +34,7 @@ struct disk_index_entry { __le64 blocknr; __le32 nr_free; __le32 none_free_before; -} __attribute__ ((packed)) __aligned(8); +} __packed __aligned(8); #define MAX_METADATA_BITMAPS 255 @@ -44,7 +44,7 @@ struct disk_metadata_index { __le64 blocknr; struct disk_index_entry index[MAX_METADATA_BITMAPS]; -} __attribute__ ((packed)) __aligned(8); +} __packed __aligned(8); struct ll_disk; @@ -103,7 +103,7 @@ struct disk_sm_root { __le64 nr_allocated; __le64 bitmap_root; __le64 ref_count_root; -} __attribute__ ((packed)) __aligned(8); +} __packed __aligned(8); #define ENTRIES_PER_BYTE 4 @@ -111,7 +111,7 @@ struct disk_bitmap_header { __le32 csum; __le32 not_used; __le64 blocknr; -} __attribute__ ((packed)) __aligned(8); +} __packed __aligned(8); /*----------------------------------------------------------------*/ |