Skip to content

Commit

Permalink
erofs-utils: erofs_fs.h: Fix address of a temporary object of type 's…
Browse files Browse the repository at this point in the history
…truct z_erofs_map_header

Signed-off-by: sekaiacg <[email protected]>
  • Loading branch information
sekaiacg committed Jun 8, 2023
1 parent ec75d27 commit 268f19e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/erofs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ struct z_erofs_lcluster_index {
/* check the EROFS on-disk layout strictly at compile time */
static inline void erofs_check_ondisk_layout_definitions(void)
{
const __le64 fmh __maybe_unused =
*(__le64 *)&(struct z_erofs_map_header) {
.h_clusterbits = 1 << Z_EROFS_FRAGMENT_INODE_BIT
};
struct z_erofs_map_header zemh __maybe_unused = {
.h_clusterbits = 1 << Z_EROFS_FRAGMENT_INODE_BIT
};
const __le64 fmh __maybe_unused = *(__le64 *)&zemh;

BUILD_BUG_ON(sizeof(struct erofs_super_block) != 128);
BUILD_BUG_ON(sizeof(struct erofs_inode_compact) != 32);
Expand Down

0 comments on commit 268f19e

Please sign in to comment.