Skip to content

Commit

Permalink
ipa: rpi: pisp: Add '-Wno-address-of-packed-member' to the compiler args
Browse files Browse the repository at this point in the history
This is needed for when we start using the UAPI kernel headers which
use "__attribute__((packed))" to force structure packing as required by
the kernel. The compiler complains about taking a possibly unaligned
address of a packed structure even though the structure has been hand
packed.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Jul 9, 2024
1 parent 0eb1861 commit 93ed3ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ipa/rpi/pisp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ mod = shared_module(ipa_name,
link_with : libipa,
link_whole : pisp_ipa_libs,
install : true,
cpp_args : '-Wno-address-of-packed-member',
install_dir : ipa_install_dir)

if ipa_sign_module
Expand Down

0 comments on commit 93ed3ae

Please sign in to comment.