platform_bionic/libc/kernel/tools
Colin Cross 4ac332279d Replace __packed with __attribute__((__packed__)) in uapi headers
Linux uapi headers use __packed as an abbreviation for
__attribute__((__packed__)).  In the upstream kernel headers this
is defined in linux/compiler_attributes.h, but it is not defined
in the uapi headers.  Bionic defines it in sys/cdefs.h, which will
almost always provide the needed definition, but there are uapi
headers that use __packed and do not include any system headers
that would include sys/cdefs.h.  Musl's sys/cdefs.h does not
define __packed, which leads to linker errors when __packed is
treated as a variable name.

Replace __packed with __attribute__((__packed__)) when importing
uapi headers to break the dependency on sys/cdefs.h.

Test: m USE_HOST_MUSL=true on oriole-userdebug in internal master
Change-Id: I45f80f4e5aec868b80ce8eb9d757a3e08ae3e1a9
2022-12-16 11:51:40 -08:00
..
clean_header.py Remove a mips-specific hack. 2022-10-05 00:05:05 +00:00
cpp.py Modify path for python clang support package 2022-10-21 18:27:24 +00:00
defaults.py Replace __packed with __attribute__((__packed__)) in uapi headers 2022-12-16 11:51:40 -08:00
generate_uapi_headers.sh Add riscv64 to the list of uapi architectures. 2022-09-30 21:37:57 +00:00
kernel.py Fix overly-zealous strip. 2021-04-20 16:05:02 -07:00
update_all.py Add support for removing structs that cross blocks. 2022-08-09 17:49:31 -07:00
utils.py Update for python3. 2021-04-19 17:02:38 -07:00