[PATCH 0/2] xfs: don't take addresses of packed structures

Eric Sandeen
2020-01-29T17:41:36Z

newer gcc complains when we try to get the address of a packed structure:

xfs_format.h:790:3: warning: taking address of packed member of ‘struct xfs_agfl’ may result in an unaligned pointer value [-Waddress-of-packed-member]

xfs_rmap_btree.c:188:15: warning: taking address of packed member of ‘struct xfs_rmap_key’ may result in an unaligned pointer value [-Waddress-of-packed-member]

Dave had sent a patch to turn the warning off globally, but that seems
like a big hammer, I dunno. Here are 2 patches to work around it instead.

Not tested yet, just seeing how loud people may scream at the ideas.