zephyr/scripts/build
Marc Herbert 16880cc381 scripts: gen_handles: silence "should it be static?" warnings
Some compilers and static analyzers warn when non-static (globals) are
not declared in some .h file. Tweak the generated code and add an
`extern` declaration before each device handle definition to make it
look it was declared in a (non-existent) .h file.

This makes the code a bit longer but it is already generated and very
repetitive anyway.

In the typical SOF configuration this silences about 150 sparse
warnings; as many as device handles.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-04-25 12:19:33 +02:00
..
dir_is_writeable.py scripts: move dir_is_writeable.py to scripts/build 2022-07-12 10:03:45 +02:00
elf_parser.py scripts: build: elf_parser: use node name for Graphviz diagrams 2022-08-04 18:36:35 +02:00
file2hex.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_app_partitions.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_cfb_font_header.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_handles.py scripts: gen_handles: silence "should it be static?" warnings 2023-04-25 12:19:33 +02:00
gen_image_info.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_isr_tables.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_kobject_list.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_kobject_placeholders.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_offset_header.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_relocate_app.py gen_relocate_app: avoid hard-coding section name fragments 2023-04-07 13:12:13 +02:00
gen_strerror_table.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_syscalls.py syscalls: skip generating mrsh.c if not userspace 2023-03-11 19:45:23 +01:00
mergehex.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
parse_syscalls.py syscall: Introduce __syscall_always_inline 2023-04-20 14:56:09 -04:00
process_gperf.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
subfolder_list.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
uf2conv.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
user_wordsize.py scripts: move user_wordsize.py to scripts/build/user_wordsize.py 2022-07-12 10:03:45 +02:00