diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e9fc7280a9e..7cb3ed7c7fb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,15 @@ add_library(zephyr_interface INTERFACE) # flags that come with zephyr_interface. zephyr_library_named(zephyr) +if(CONFIG_LEGACY_GENERATED_INCLUDE_PATH) + zephyr_include_directories(${PROJECT_BINARY_DIR}/include/generated/zephyr) + message(WARNING " + Warning: CONFIG_LEGACY_GENERATED_INCLUDE_PATH is currently enabled by default + so that user applications can continue to use the legacy include paths for the + generated headers. This Kconfig will be deprecated and eventually removed in + the future releases.") +endif() + zephyr_include_directories( include ${PROJECT_BINARY_DIR}/include/generated @@ -541,9 +550,9 @@ if(ZEPHYR_GIT_INDEX) endif() add_custom_command( - OUTPUT ${PROJECT_BINARY_DIR}/include/generated/version.h + OUTPUT ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h COMMAND ${CMAKE_COMMAND} -DZEPHYR_BASE=${ZEPHYR_BASE} - -DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/version.h + -DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h -DVERSION_TYPE=KERNEL -DVERSION_FILE=${ZEPHYR_BASE}/VERSION -DKERNEL_VERSION_CUSTOMIZATION="$" @@ -552,13 +561,13 @@ add_custom_command( DEPENDS ${ZEPHYR_BASE}/VERSION ${git_dependency} COMMAND_EXPAND_LISTS ) -add_custom_target(version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/version.h) +add_custom_target(version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h) if(EXISTS ${APPLICATION_SOURCE_DIR}/VERSION) add_custom_command( - OUTPUT ${PROJECT_BINARY_DIR}/include/generated/app_version.h + OUTPUT ${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h COMMAND ${CMAKE_COMMAND} -DZEPHYR_BASE=${ZEPHYR_BASE} - -DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/app_version.h + -DOUT_FILE=${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h -DVERSION_TYPE=APP -DVERSION_FILE=${APPLICATION_SOURCE_DIR}/VERSION -DAPP_VERSION_CUSTOMIZATION="$" @@ -567,7 +576,9 @@ if(EXISTS ${APPLICATION_SOURCE_DIR}/VERSION) DEPENDS ${APPLICATION_SOURCE_DIR}/VERSION ${git_dependency} COMMAND_EXPAND_LISTS ) - add_custom_target(app_version_h DEPENDS ${PROJECT_BINARY_DIR}/include/generated/app_version.h) + add_custom_target( + app_version_h + DEPENDS ${PROJECT_BINARY_DIR}/include/generated/zephyr/app_version.h) add_dependencies(zephyr_interface app_version_h) endif() @@ -622,8 +633,8 @@ set(ZEPHYR_CURRENT_CMAKE_DIR) get_property(LIBC_LINK_LIBRARIES TARGET zephyr_interface PROPERTY LIBC_LINK_LIBRARIES) zephyr_link_libraries(${LIBC_LINK_LIBRARIES}) -set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h) -set(edk_syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/edk/include/generated/syscall_list.h) +set(syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/include/generated/zephyr/syscall_list.h) +set(edk_syscall_list_h ${CMAKE_CURRENT_BINARY_DIR}/edk/include/generated/zephyr/syscall_list.h) set(syscalls_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/syscalls.json) set(struct_tags_json ${CMAKE_CURRENT_BINARY_DIR}/misc/generated/struct_tags.json) @@ -761,7 +772,7 @@ add_custom_target(${SYSCALL_LIST_H_TARGET} DEPENDS ${syscall_list_h} ${picolibc_ set_property(TARGET ${SYSCALL_LIST_H_TARGET} APPEND PROPERTY ADDITIONAL_CLEAN_FILES - ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscalls + ${CMAKE_CURRENT_BINARY_DIR}/include/generated/zephyr/syscalls ) add_custom_target(${PARSE_SYSCALLS_TARGET} @@ -781,19 +792,30 @@ if(CONFIG_TIMEOUT_64BIT) set(SYSCALL_SPLIT_TIMEOUT_ARG --split-type k_timeout_t --split-type k_ticks_t) endif() +# percepio/TraceRecorder/kernelports/Zephyr/scripts/tz_parse_syscalls.py hardcodes the path +# to the `syscall_list.h`, make a copy of the generated file so that percepio is able to build +if(CONFIG_LEGACY_GENERATED_INCLUDE_PATH) + set(LEGACY_SYSCALL_LIST_H_ARGS + ${CMAKE_COMMAND} -E copy + ${syscall_list_h} + ${CMAKE_CURRENT_BINARY_DIR}/include/generated/syscall_list.h) +endif() + add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h} - # Also, some files are written to include/generated/syscalls/ + # Also, some files are written to include/generated/zephyr/syscalls/ COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/gen_syscalls.py --json-file ${syscalls_json} # Read this file - --base-output include/generated/syscalls # Write to this dir + --base-output include/generated/zephyr/syscalls # Write to this dir --syscall-dispatch include/generated/syscall_dispatch.c # Write this file --syscall-export-llext include/generated/syscall_export_llext.c --syscall-list ${syscall_list_h} $<$:--gen-mrsh-files> ${SYSCALL_LONG_REGISTERS_ARG} ${SYSCALL_SPLIT_TIMEOUT_ARG} + COMMAND + ${LEGACY_SYSCALL_LIST_H_ARGS} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${PARSE_SYSCALLS_TARGET} ) @@ -801,7 +823,7 @@ add_custom_command(OUTPUT include/generated/syscall_dispatch.c ${syscall_list_h} # This is passed into all calls to the gen_kobject_list.py script. set(gen_kobject_list_include_args --include-subsystem-list ${struct_tags_json}) -set(DRV_VALIDATION ${PROJECT_BINARY_DIR}/include/generated/driver-validation.h) +set(DRV_VALIDATION ${PROJECT_BINARY_DIR}/include/generated/zephyr/driver-validation.h) add_custom_command( OUTPUT ${DRV_VALIDATION} COMMAND @@ -834,7 +856,7 @@ add_dependencies(zephyr_generated_headers set(OFFSETS_LIB offsets) set(OFFSETS_C_PATH ${ARCH_DIR}/${ARCH}/core/offsets/offsets.c) -set(OFFSETS_H_PATH ${PROJECT_BINARY_DIR}/include/generated/offsets.h) +set(OFFSETS_H_PATH ${PROJECT_BINARY_DIR}/include/generated/zephyr/offsets.h) add_library( ${OFFSETS_LIB} OBJECT ${OFFSETS_C_PATH}) target_include_directories(${OFFSETS_LIB} PRIVATE @@ -1197,7 +1219,7 @@ if(CONFIG_USERSPACE) PUBLIC $ ) - set(KOBJECT_LINKER_HEADER_DATA "${PROJECT_BINARY_DIR}/include/generated/linker-kobject-prebuilt-data.h") + set(KOBJECT_LINKER_HEADER_DATA "${PROJECT_BINARY_DIR}/include/generated/zephyr/linker-kobject-prebuilt-data.h") add_custom_command( OUTPUT ${KOBJECT_LINKER_HEADER_DATA} @@ -1205,7 +1227,7 @@ if(CONFIG_USERSPACE) ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/gen_kobject_placeholders.py --object $ - --outdir ${PROJECT_BINARY_DIR}/include/generated + --outdir ${PROJECT_BINARY_DIR}/include/generated/zephyr --datapct ${CONFIG_KOBJECT_DATA_AREA_RESERVE_EXTRA_PERCENT} --rodata ${CONFIG_KOBJECT_RODATA_AREA_EXTRA_BYTES} $<$:--verbose> @@ -1962,7 +1984,7 @@ if(LOG_DICT_DB_NAME_ARG) ${ZEPHYR_BASE}/scripts/logging/dictionary/database_gen.py ${KERNEL_ELF_NAME} ${LOG_DICT_DB_NAME_ARG}=${LOG_DICT_DB_NAME} - --build-header ${PROJECT_BINARY_DIR}/include/generated/version.h + --build-header ${PROJECT_BINARY_DIR}/include/generated/zephyr/version.h WORKING_DIRECTORY ${PROJECT_BINARY_DIR} COMMENT "Generating logging dictionary database: ${LOG_DICT_DB_NAME}" DEPENDS ${logical_target_for_zephyr_elf} @@ -2093,12 +2115,12 @@ add_custom_command( OUTPUT ${llext_edk_file} # Regenerate syscalls in case CONFIG_LLEXT_EDK_USERSPACE_ONLY COMMAND ${CMAKE_COMMAND} - -E make_directory edk/include/generated + -E make_directory edk/include/generated/zephyr COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/build/gen_syscalls.py --json-file ${syscalls_json} # Read this file - --base-output edk/include/generated/syscalls # Write to this dir + --base-output edk/include/generated/zephyr/syscalls # Write to this dir --syscall-dispatch edk/include/generated/syscall_dispatch.c # Write this file --syscall-list ${edk_syscall_list_h} $<$:--userspace-only> diff --git a/Kconfig.zephyr b/Kconfig.zephyr index e44cd327cb5f..01b5f4497e09 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -1048,3 +1048,20 @@ config BOOTLOADER_BOSSA_ADAFRUIT_UF2 endchoice endmenu + +menu "Compatibility" + +config LEGACY_GENERATED_INCLUDE_PATH + bool "Legacy include path for generated headers" + default y + help + Allow applications and libraries to use the Zephyr legacy include + path for the generated headers which does not use the `zephyr/` prefix. + + From now on, i.e., the preferred way to include the `version.h` header is to + use , this Kconfig is currently enabled by default so that + user applications won't immediately fail to compile. + + This Kconfig will be deprecated and eventually removed in the future releases. + +endmenu diff --git a/arch/arc/include/offsets_short_arch.h b/arch/arc/include/offsets_short_arch.h index 5bf2c23fc3a3..f461112ae792 100644 --- a/arch/arc/include/offsets_short_arch.h +++ b/arch/arc/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include /* kernel */ diff --git a/arch/arm/include/offsets_short_arch.h b/arch/arm/include/offsets_short_arch.h index 4ceb1fc3f7ae..ea6af4db92df 100644 --- a/arch/arm/include/offsets_short_arch.h +++ b/arch/arm/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include /* kernel */ diff --git a/arch/arm64/core/reset.S b/arch/arm64/core/reset.S index 5e406bea1323..a01139ad7009 100644 --- a/arch/arm64/core/reset.S +++ b/arch/arm64/core/reset.S @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include "boot.h" #include "macro_priv.inc" diff --git a/arch/arm64/core/vector_table.S b/arch/arm64/core/vector_table.S index 1a1b649d4f29..499dbd292a53 100644 --- a/arch/arm64/core/vector_table.S +++ b/arch/arm64/core/vector_table.S @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include diff --git a/arch/arm64/include/offsets_short_arch.h b/arch/arm64/include/offsets_short_arch.h index abd93bba7bac..11dd5f642561 100644 --- a/arch/arm64/include/offsets_short_arch.h +++ b/arch/arm64/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_ARM64_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include #define _thread_offset_to_exception_depth \ (___thread_t_arch_OFFSET + ___thread_arch_t_exception_depth_OFFSET) diff --git a/arch/mips/include/offsets_short_arch.h b/arch/mips/include/offsets_short_arch.h index bd64deef114f..8440f0ff7013 100644 --- a/arch/mips/include/offsets_short_arch.h +++ b/arch/mips/include/offsets_short_arch.h @@ -9,7 +9,7 @@ #ifndef ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_MIPS_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include #define _thread_offset_to_sp \ (___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET) diff --git a/arch/nios2/include/offsets_short_arch.h b/arch/nios2/include/offsets_short_arch.h index b3f60972c3b8..3b961e1fcb92 100644 --- a/arch/nios2/include/offsets_short_arch.h +++ b/arch/nios2/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include /* kernel */ diff --git a/arch/posix/include/offsets_short_arch.h b/arch/posix/include/offsets_short_arch.h index b33414b3f6e1..5281d68e092d 100644 --- a/arch/posix/include/offsets_short_arch.h +++ b/arch/posix/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_POSIX_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include /* kernel */ diff --git a/arch/riscv/core/fatal.c b/arch/riscv/core/fatal.c index 2624edbec909..b8736f36144f 100644 --- a/arch/riscv/core/fatal.c +++ b/arch/riscv/core/fatal.c @@ -263,6 +263,6 @@ static void z_vrfy_user_fault(unsigned int reason) z_impl_user_fault(reason); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/arch/riscv/core/fpu.S b/arch/riscv/core/fpu.S index 2708d11fec1c..981bd576cb77 100644 --- a/arch/riscv/core/fpu.S +++ b/arch/riscv/core/fpu.S @@ -7,7 +7,7 @@ #include #include -#include +#include #ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION #define LOAD fld diff --git a/arch/riscv/core/reset.S b/arch/riscv/core/reset.S index e9424e7a8e2a..89c488faa947 100644 --- a/arch/riscv/core/reset.S +++ b/arch/riscv/core/reset.S @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include "asm_macros.inc" /* exports */ diff --git a/arch/riscv/include/offsets_short_arch.h b/arch/riscv/include/offsets_short_arch.h index 3d3a878f16ea..27c01a77461d 100644 --- a/arch/riscv/include/offsets_short_arch.h +++ b/arch/riscv/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_RISCV_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_RISCV_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include #define _thread_offset_to_sp \ (___thread_t_callee_saved_OFFSET + ___callee_saved_t_sp_OFFSET) diff --git a/arch/sparc/include/offsets_short_arch.h b/arch/sparc/include/offsets_short_arch.h index c53f2b3705be..0f9272f332b6 100644 --- a/arch/sparc/include/offsets_short_arch.h +++ b/arch/sparc/include/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_SPARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ -#include +#include #define _thread_offset_to_y \ (___thread_t_callee_saved_OFFSET + ___callee_saved_t_y_OFFSET) diff --git a/arch/x86/include/ia32/offsets_short_arch.h b/arch/x86/include/ia32/offsets_short_arch.h index 2033a5585f71..cb5cdb218f0a 100644 --- a/arch/x86/include/ia32/offsets_short_arch.h +++ b/arch/x86/include/ia32/offsets_short_arch.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_X86_INCLUDE_IA32_OFFSETS_SHORT_ARCH_H_ -#include +#include /* kernel */ diff --git a/arch/x86/include/intel64/offsets_short_arch.h b/arch/x86/include/intel64/offsets_short_arch.h index 4252ac687dba..1ffabc899c20 100644 --- a/arch/x86/include/intel64/offsets_short_arch.h +++ b/arch/x86/include/intel64/offsets_short_arch.h @@ -6,7 +6,7 @@ #ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_OFFSETS_SHORT_ARCH_H_ #define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_OFFSETS_SHORT_ARCH_H_ -#include +#include #define _thread_offset_to_rsp \ (___thread_t_callee_saved_OFFSET + ___callee_saved_t_rsp_OFFSET) diff --git a/arch/xtensa/core/CMakeLists.txt b/arch/xtensa/core/CMakeLists.txt index 4c2ce8173ca5..56ca1071b013 100644 --- a/arch/xtensa/core/CMakeLists.txt +++ b/arch/xtensa/core/CMakeLists.txt @@ -48,7 +48,7 @@ add_subdirectory(startup) # are the official places where we find core-isa.h. (Also that we # undefine __XCC_ because that compiler actually trips an error trying # to build this file to protect against mismatched versions.) -set(CORE_ISA_DM ${CMAKE_BINARY_DIR}/zephyr/include/generated/core-isa-dM.h) +set(CORE_ISA_DM ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/core-isa-dM.h) set(CORE_ISA_IN ${CMAKE_BINARY_DIR}/zephyr/include/generated/core-isa-dM.c) file(WRITE ${CORE_ISA_IN} "#include \n") add_custom_command(OUTPUT ${CORE_ISA_DM} @@ -73,7 +73,7 @@ else() endif() # Generates a list of device-specific scratch register choices -set(ZSR_H ${CMAKE_BINARY_DIR}/zephyr/include/generated/zsr.h) +set(ZSR_H ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/zsr.h) add_custom_command(OUTPUT ${ZSR_H} DEPENDS ${CORE_ISA_DM} COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/gen_zsr.py $<$:--mmu> diff --git a/arch/xtensa/core/coredump.c b/arch/xtensa/core/coredump.c index a2eec6207743..7f010eb1954a 100644 --- a/arch/xtensa/core/coredump.c +++ b/arch/xtensa/core/coredump.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #define ARCH_HDR_VER 1 #define XTENSA_BLOCK_HDR_VER 2 diff --git a/arch/xtensa/core/debug_helpers_asm.S b/arch/xtensa/core/debug_helpers_asm.S index 3dacc1a4587f..6ed5ced8c61a 100644 --- a/arch/xtensa/core/debug_helpers_asm.S +++ b/arch/xtensa/core/debug_helpers_asm.S @@ -10,7 +10,7 @@ #include #include -#include +#include .section .iram1, "ax" .align 4 diff --git a/arch/xtensa/core/fatal.c b/arch/xtensa/core/fatal.c index 6ec5549f2e46..0d5da1ca8179 100644 --- a/arch/xtensa/core/fatal.c +++ b/arch/xtensa/core/fatal.c @@ -154,6 +154,6 @@ static void z_vrfy_xtensa_user_fault(unsigned int reason) z_impl_xtensa_user_fault(reason); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/arch/xtensa/core/irq_offload.c b/arch/xtensa/core/irq_offload.c index ad35ef4cd0e4..c142bfc5fc66 100644 --- a/arch/xtensa/core/irq_offload.c +++ b/arch/xtensa/core/irq_offload.c @@ -5,7 +5,7 @@ #include #include -#include +#include #include static struct { diff --git a/arch/xtensa/core/userspace.S b/arch/xtensa/core/userspace.S index 1578e3be971a..507ae17267e8 100644 --- a/arch/xtensa/core/userspace.S +++ b/arch/xtensa/core/userspace.S @@ -5,10 +5,10 @@ */ #include -#include +#include #include #include -#include +#include #include diff --git a/arch/xtensa/core/vector_handlers.c b/arch/xtensa/core/vector_handlers.c index f0b0a9175ff2..dd3c0c00f524 100644 --- a/arch/xtensa/core/vector_handlers.c +++ b/arch/xtensa/core/vector_handlers.c @@ -12,8 +12,8 @@ #include #include #include -#include -#include +#include +#include #include #ifdef CONFIG_XTENSA_GEN_HANDLERS diff --git a/arch/xtensa/core/window_vectors.S b/arch/xtensa/core/window_vectors.S index 90eba495bde8..6c4e8c448032 100644 --- a/arch/xtensa/core/window_vectors.S +++ b/arch/xtensa/core/window_vectors.S @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include -#include +#include /* WINDOW OVERFLOW AND UNDERFLOW EXCEPTION VECTORS AND ALLOCA EXCEPTION * HANDLER diff --git a/arch/xtensa/core/xtensa_asm2_util.S b/arch/xtensa/core/xtensa_asm2_util.S index dad8f1993594..58ca9b46eec3 100644 --- a/arch/xtensa/core/xtensa_asm2_util.S +++ b/arch/xtensa/core/xtensa_asm2_util.S @@ -4,8 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ #include -#include -#include +#include +#include #if defined(CONFIG_SIMULATOR_XTENSA) || defined(XT_SIMULATOR) #include diff --git a/arch/xtensa/core/xtensa_hifi.S b/arch/xtensa/core/xtensa_hifi.S index 3c311acab0f4..dff714cce183 100644 --- a/arch/xtensa/core/xtensa_hifi.S +++ b/arch/xtensa/core/xtensa_hifi.S @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include #include diff --git a/arch/xtensa/include/kernel_arch_func.h b/arch/xtensa/include/kernel_arch_func.h index 48599f0e7692..29a8982660a0 100644 --- a/arch/xtensa/include/kernel_arch_func.h +++ b/arch/xtensa/include/kernel_arch_func.h @@ -14,7 +14,7 @@ #include #include #include -#include +#include #ifdef __cplusplus extern "C" { diff --git a/arch/xtensa/include/xtensa_asm2_s.h b/arch/xtensa/include/xtensa_asm2_s.h index dddf7bb309c6..0af8c4cb51fd 100644 --- a/arch/xtensa/include/xtensa_asm2_s.h +++ b/arch/xtensa/include/xtensa_asm2_s.h @@ -7,10 +7,10 @@ #ifndef ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H #define ZEPHYR_ARCH_XTENSA_INCLUDE_XTENSA_ASM2_S_H -#include +#include #include "xtensa_asm2_context.h" -#include +#include /* Assembler header! This file contains macros designed to be included * only by the assembler. diff --git a/boards/qemu/x86/qemu_x86_tiny.ld b/boards/qemu/x86/qemu_x86_tiny.ld index 623a11fb4169..3b3ecde113cc 100644 --- a/boards/qemu/x86/qemu_x86_tiny.ld +++ b/boards/qemu/x86/qemu_x86_tiny.ld @@ -6,7 +6,7 @@ */ #include -#include +#include #include #include #include diff --git a/cmake/ide/eclipse_cdt4_generator_amendment.cmake b/cmake/ide/eclipse_cdt4_generator_amendment.cmake index 1bad729118e3..5fd32a2ddd3d 100644 --- a/cmake/ide/eclipse_cdt4_generator_amendment.cmake +++ b/cmake/ide/eclipse_cdt4_generator_amendment.cmake @@ -9,7 +9,7 @@ # # Solution: # The amendment function generates a macro header file -# ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h +# ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h # based on INTERFACE_COMPILE_DEFINITIONS and appends the # defines from the file to # CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS. @@ -88,7 +88,7 @@ else(${_param_defs} EQUAL 1) message(" ${_work_mode}") endif(${_param_defs} EQUAL 1) -set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h) +set(OUTPUT_FILE ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h) file(WRITE ${OUTPUT_FILE} "/* Generated by eclipse_cd4_generator_amendment.cmake */\n") file(APPEND ${OUTPUT_FILE} "/* The header contains the defines collected from the */\n") file(APPEND ${OUTPUT_FILE} "/* INTERFACE_COMPILE_DEFINITIONS target property */\n") @@ -104,7 +104,7 @@ if (${_work_mode} STREQUAL "C and CXX includes, defines in Eclipse with project message(" -------------------------------------------------------------------------") message(" Add the following two command line parameters:") message("") - message(" -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h") + message(" -imacros ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h") message(" -imacros ${AUTOCONF_H}") message("") message(" to 'CDT cross GCC Built-in Compiler Settings' provider command definition") @@ -125,7 +125,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .settings - [EXPERI file(APPEND ${OUTPUT_FILE} "\t\t\t\n") file(APPEND ${OUTPUT_FILE} "\t\t\t\n") if (${_work_mode} STREQUAL "C and CXX includes, defines in .settings with project defines - [EXPERIMENTAL]") - file(APPEND ${OUTPUT_FILE} "\t\t\t\n") + file(APPEND ${OUTPUT_FILE} "\t\t\t\n") else () file(APPEND ${OUTPUT_FILE} "\t\t\t\n") endif () @@ -167,7 +167,7 @@ if ( (${_work_mode} STREQUAL "C and CXX includes, defines in .cproject without _ endif() - file(STRINGS ${CMAKE_BINARY_DIR}/zephyr/include/generated/cmake_intdef.h _int_comp_def) + file(STRINGS ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/cmake_intdef.h _int_comp_def) set (_resultDefines "${CMAKE_EXTRA_GENERATOR_C_SYSTEM_DEFINED_MACROS}") foreach( d ${_int_comp_def} ) string(REGEX MATCH "^#define +([A-Za-z_][A-Za-z0-9_]*) *(.*) *$" _dummy "${d}") diff --git a/cmake/kobj.cmake b/cmake/kobj.cmake index dc693509b119..22fa36ae44af 100644 --- a/cmake/kobj.cmake +++ b/cmake/kobj.cmake @@ -2,9 +2,9 @@ function(gen_kobj gen_dir_out) if (PROJECT_BINARY_DIR) - set(gen_dir ${PROJECT_BINARY_DIR}/include/generated) + set(gen_dir ${PROJECT_BINARY_DIR}/include/generated/zephyr) else () - set(gen_dir ${CMAKE_BINARY_DIR}/include/generated) + set(gen_dir ${CMAKE_BINARY_DIR}/include/generated/zephyr) endif () set(KOBJ_TYPES ${gen_dir}/kobj-types-enum.h) @@ -30,6 +30,7 @@ function(gen_kobj gen_dir_out) ) add_custom_target(${KOBJ_TYPES_H_TARGET} DEPENDS ${KOBJ_TYPES} ${KOBJ_OTYPE}) + cmake_path(GET gen_dir PARENT_PATH gen_dir) set(${gen_dir_out} ${gen_dir} PARENT_SCOPE) endfunction () diff --git a/cmake/modules/generated_file_directories.cmake b/cmake/modules/generated_file_directories.cmake index 9b18e1794de0..986529687963 100644 --- a/cmake/modules/generated_file_directories.cmake +++ b/cmake/modules/generated_file_directories.cmake @@ -7,7 +7,7 @@ include_guard(GLOBAL) # # Outcome: # - BINARY_DIR_INCLUDE is set to ${PROJECT_BINARY_DIR}/include -# - BINARY_DIR_INCLUDE_GENERATED is set to ${BINARY_DIR_INCLUDE}/generated +# - BINARY_DIR_INCLUDE_GENERATED is set to ${BINARY_DIR_INCLUDE}/generated/zephyr # - BINARY_DIR_INCLUDE_GENERATED is a directory # # Required variables: @@ -20,5 +20,5 @@ include_guard(GLOBAL) # None set(BINARY_DIR_INCLUDE ${PROJECT_BINARY_DIR}/include) -set(BINARY_DIR_INCLUDE_GENERATED ${BINARY_DIR_INCLUDE}/generated) +set(BINARY_DIR_INCLUDE_GENERATED ${BINARY_DIR_INCLUDE}/generated/zephyr) file(MAKE_DIRECTORY ${BINARY_DIR_INCLUDE_GENERATED}) diff --git a/cmake/modules/kconfig.cmake b/cmake/modules/kconfig.cmake index 01fbdf73f3c0..4606f71cc767 100644 --- a/cmake/modules/kconfig.cmake +++ b/cmake/modules/kconfig.cmake @@ -5,7 +5,8 @@ include_guard(GLOBAL) include(extensions) include(python) -# autoconf.h is generated by Kconfig and placed in /zephyr/include/generated/autoconf.h. +# autoconf.h is generated by Kconfig and placed in +# /zephyr/include/generated/autoconf.h. # A project may request a custom location by setting AUTOCONF_H explicitly before # calling 'find_package(Zephyr)' or loading this module. set_ifndef(AUTOCONF_H ${PROJECT_BINARY_DIR}/include/generated/autoconf.h) diff --git a/cmake/modules/unittest.cmake b/cmake/modules/unittest.cmake index 892358999cfc..de5b0f3eeb61 100644 --- a/cmake/modules/unittest.cmake +++ b/cmake/modules/unittest.cmake @@ -59,7 +59,7 @@ add_dependencies(test_interface ${KOBJ_TYPES_H_TARGET}) gen_kobj(KOBJ_GEN_DIR) # Generates empty header files to build -set(INCL_GENERATED_DIR ${APPLICATION_BINARY_DIR}/zephyr/include/generated) +set(INCL_GENERATED_DIR ${APPLICATION_BINARY_DIR}/zephyr/include/generated/zephyr) set(INCL_GENERATED_SYSCALL_DIR ${INCL_GENERATED_DIR}/syscalls) list(APPEND INCL_GENERATED_HEADERS ${INCL_GENERATED_DIR}/devicetree_generated.h diff --git a/doc/build/cmake/index.rst b/doc/build/cmake/index.rst index 534c3ff34e10..ee9bde7206ff 100644 --- a/doc/build/cmake/index.rst +++ b/doc/build/cmake/index.rst @@ -88,7 +88,7 @@ Devicetree The preprocessed devicetree sources are parsed by :zephyr_file:`gen_defines.py ` to generate a - :file:`build/zephyr/include/generated/devicetree_generated.h` header with + :file:`build/zephyr/include/generated/zephyr/devicetree_generated.h` header with preprocessor macros. Source code should access preprocessor macros generated from devicetree by diff --git a/doc/build/dts/howtos.rst b/doc/build/dts/howtos.rst index c6ee5a80d302..8875e9cfc425 100644 --- a/doc/build/dts/howtos.rst +++ b/doc/build/dts/howtos.rst @@ -42,7 +42,7 @@ CMake prints the input and output file locations like this: -- Found BOARD.dts: .../zephyr/boards/arm/qemu_cortex_m3/qemu_cortex_m3.dts -- Generated zephyr.dts: .../zephyr/build/zephyr/zephyr.dts - -- Generated devicetree_generated.h: .../zephyr/build/zephyr/include/generated/devicetree_generated.h + -- Generated devicetree_generated.h: .../zephyr/build/zephyr/include/generated/zephyr/devicetree_generated.h The :file:`zephyr.dts` file is the final devicetree in DTS format. diff --git a/doc/build/dts/intro-input-output.rst b/doc/build/dts/intro-input-output.rst index 698012d5821f..d069ae4660c9 100644 --- a/doc/build/dts/intro-input-output.rst +++ b/doc/build/dts/intro-input-output.rst @@ -129,7 +129,7 @@ These are created in your application's build directory. input to :file:`gen_defines.py` and used to create :file:`zephyr.dts` and :file:`devicetree_generated.h`. -:file:`/zephyr/include/generated/devicetree_generated.h` +:file:`/zephyr/include/generated/zephyr/devicetree_generated.h` The generated macros and additional comments describing the devicetree. Included by ``devicetree.h``. diff --git a/doc/build/dts/troubleshooting.rst b/doc/build/dts/troubleshooting.rst index 54169b3ab425..71521a3026bc 100644 --- a/doc/build/dts/troubleshooting.rst +++ b/doc/build/dts/troubleshooting.rst @@ -66,7 +66,7 @@ Below, ```` means your build directory. To find the devicetree node you need to check, use the number ```` from the linker error. Look for this number in the list of nodes at the top of -:file:`/zephyr/include/generated/devicetree_generated.h`. For example, if +:file:`/zephyr/include/generated/zephyr/devicetree_generated.h`. For example, if ```` is 15, and your :file:`devicetree_generated.h` file looks like this, the node you are interested in is ``/soc/i2c@deadbeef``: diff --git a/doc/build/dts/zephyr_dt_inputs_outputs.svg b/doc/build/dts/zephyr_dt_inputs_outputs.svg index 833353aa654c..3aace1d0fb8f 100644 --- a/doc/build/dts/zephyr_dt_inputs_outputs.svg +++ b/doc/build/dts/zephyr_dt_inputs_outputs.svg @@ -1,4 +1,4 @@ -
FILE_1.overlay
...
FILE_n.overlay
FILE_1.overlay...
Devicetree overlays:
optional DTS format files
which override <BOARD>.dts.
Devi...
In board directory.
The "base" devicetree.
Includes SoC .dtsi file,
may include other files.
In...
<BOARD>.dts
<BOARD>.dts
BINDING_1.yaml
...
BINDING_n.yaml
BINDING_1.yaml...
Devicetree bindings:
contain rules for devicetree's
contents.
Devi...
Devicetree scripts in scripts/dts/
Devicetree scri...
Intermediate output in build/zephyr/. C preprocessor output of including <BOARD>.dts and overlays.
Intermediate output in bu...
Generated C header files, in
build/zephyr/include/generated/.

Access these via <devicetree.h>
Gene...
Generated C headers
Generated C headers
zephyr.dts.pre
zephyr.dts.pre
zephyr.dts
zephyr.dts
Final merged devicetree in
build/zephyr/. Useful for debugging. Passed to dtc if it is installed.
Final merged devicetree i...
dtc (optional, just for errors/warnings)
dtc (optional, just...
Viewer does not support full SVG 1.1
\ No newline at end of file +
FILE_1.overlay
...
FILE_n.overlay
FILE_1.overlay...
Devicetree overlays:
optional DTS format files
which override <BOARD>.dts.
Devi...
In board directory.
The "base" devicetree.
Includes SoC .dtsi file,
may include other files.
In...
<BOARD>.dts
<BOARD>.dts
BINDING_1.yaml
...
BINDING_n.yaml
BINDING_1.yaml...
Devicetree bindings:
contain rules for devicetree's
contents.
Devi...
Devicetree scripts in scripts/dts/
Devicetree scri...
Intermediate output in build/zephyr/. C preprocessor output of including <BOARD>.dts and overlays.
Intermediate output in bu...
Generated C header files, in
build/zephyr/include/generated/zephyr/.

Access these via <devicetree.h>
Gene...
Generated C headers
Generated C headers
zephyr.dts.pre
zephyr.dts.pre
zephyr.dts
zephyr.dts
Final merged devicetree in
build/zephyr/. Useful for debugging. Passed to dtc if it is installed.
Final merged devicetree i...
dtc (optional, just for errors/warnings)
dtc (optional, just...
Viewer does not support full SVG 1.1
diff --git a/doc/kernel/drivers/index.rst b/doc/kernel/drivers/index.rst index fcc2e6676501..96574e089953 100644 --- a/doc/kernel/drivers/index.rst +++ b/doc/kernel/drivers/index.rst @@ -203,7 +203,7 @@ A device-specific API definition typically looks like this: __syscall int specific_from_user(const struct device *dev, int bar); /* Only needed when extensions include syscalls */ - #include + #include A driver implementing extensions to the subsystem will define the real implementation of both the subsystem API and the specific APIs: @@ -243,7 +243,7 @@ implementation of both the subsystem API and the specific APIs: return z_impl_specific_do_that(dev, bar) } - #include + #include #endif /* CONFIG_USERSPACE */ diff --git a/doc/kernel/usermode/syscalls.rst b/doc/kernel/usermode/syscalls.rst index 8b35ce809918..1490a758db5e 100644 --- a/doc/kernel/usermode/syscalls.rst +++ b/doc/kernel/usermode/syscalls.rst @@ -87,7 +87,7 @@ bottom of ``include/sensor.h``: .. code-block:: c - #include + #include C prototype functions must be declared in one of the directories listed in the CMake variable ``SYSCALL_INCLUDE_DIRS``. This list @@ -143,7 +143,7 @@ C and header files by the :ref:`gen_syscalls.py` script, all of which can be fou the project out directory under ``include/generated/``: * The system call is added to the enumerated type of system call IDs, - which is expressed in ``include/generated/syscall_list.h``. It is the name + which is expressed in ``include/generated/zephyr/syscall_list.h``. It is the name of the API in uppercase, prefixed with ``K_SYSCALL_``. * An entry for the system call is created in the dispatch table @@ -172,7 +172,7 @@ The body of the API is created in the generated system header. Using the example of :c:func:`k_sem_init()`, this API is declared in ``include/kernel.h``. At the bottom of ``include/kernel.h`` is:: - #include + #include Inside this header is the body of :c:func:`k_sem_init()`:: @@ -362,7 +362,7 @@ For example: K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM)); return z_impl_k_sem_take(sem, timeout); } - #include + #include Verification Memory Access Policies diff --git a/doc/services/retention/blinfo.rst b/doc/services/retention/blinfo.rst index 6f34b0f9a356..6d18b1d8688d 100644 --- a/doc/services/retention/blinfo.rst +++ b/doc/services/retention/blinfo.rst @@ -122,7 +122,7 @@ this mode: #include #include - #include + #include #include API Reference diff --git a/drivers/adc/adc_handlers.c b/drivers/adc/adc_handlers.c index 2b00c2d95a9f..c2f0fd4aef2f 100644 --- a/drivers/adc/adc_handlers.c +++ b/drivers/adc/adc_handlers.c @@ -21,7 +21,7 @@ static inline int z_vrfy_adc_channel_setup(const struct device *dev, return z_impl_adc_channel_setup((const struct device *)dev, &channel_cfg); } -#include +#include static bool copy_sequence(struct adc_sequence *dst, struct adc_sequence_options *options, @@ -66,7 +66,7 @@ static inline int z_vrfy_adc_read(const struct device *dev, return z_impl_adc_read((const struct device *)dev, &sequence); } -#include +#include #ifdef CONFIG_ADC_ASYNC static inline int z_vrfy_adc_read_async(const struct device *dev, @@ -89,5 +89,5 @@ static inline int z_vrfy_adc_read_async(const struct device *dev, return z_impl_adc_read_async((const struct device *)dev, &sequence, (struct k_poll_signal *)async); } -#include +#include #endif /* CONFIG_ADC_ASYNC */ diff --git a/drivers/auxdisplay/auxdisplay_handlers.c b/drivers/auxdisplay/auxdisplay_handlers.c index 5c88e7afa09b..45b22303ec3a 100644 --- a/drivers/auxdisplay/auxdisplay_handlers.c +++ b/drivers/auxdisplay/auxdisplay_handlers.c @@ -12,21 +12,21 @@ static inline int z_vrfy_auxdisplay_display_on(const struct device *dev) K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_display_on(dev); } -#include +#include static inline int z_vrfy_auxdisplay_display_off(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_display_off(dev); } -#include +#include static inline int z_vrfy_auxdisplay_cursor_set_enabled(const struct device *dev, bool enabled) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_cursor_set_enabled(dev, enabled); } -#include +#include static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct device *dev, bool enabled) @@ -34,7 +34,7 @@ static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct d K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_position_blinking_set_enabled(dev, enabled); } -#include +#include static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, uint8_t direction, bool display_shift) @@ -42,7 +42,7 @@ static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, u K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_cursor_shift_set(dev, direction, display_shift); } -#include +#include static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev, enum auxdisplay_position type, @@ -51,7 +51,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_cursor_position_set(dev, type, x, y); } -#include +#include static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev, int16_t *x, int16_t *y) @@ -59,7 +59,7 @@ static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_cursor_position_get(dev, x, y); } -#include +#include static inline int z_vrfy_auxdisplay_display_position_set(const struct device *dev, enum auxdisplay_position type, @@ -68,7 +68,7 @@ static inline int z_vrfy_auxdisplay_display_position_set(const struct device *de K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_display_position_set(dev, type, x, y); } -#include +#include static inline int z_vrfy_auxdisplay_display_position_get(const struct device *dev, int16_t *x, int16_t *y) @@ -76,7 +76,7 @@ static inline int z_vrfy_auxdisplay_display_position_get(const struct device *de K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_display_position_get(dev, x, y); } -#include +#include static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev, struct auxdisplay_capabilities *capabilities) @@ -84,14 +84,14 @@ static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_capabilities_get(dev, capabilities); } -#include +#include static inline int z_vrfy_auxdisplay_clear(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_clear(dev); } -#include +#include static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev, uint8_t *brightness) @@ -99,7 +99,7 @@ static inline int z_vrfy_auxdisplay_brightness_get(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_brightness_get(dev, brightness); } -#include +#include static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev, uint8_t brightness) @@ -107,7 +107,7 @@ static inline int z_vrfy_auxdisplay_brightness_set(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_brightness_set(dev, brightness); } -#include +#include static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev, uint8_t *backlight) @@ -115,7 +115,7 @@ static inline int z_vrfy_auxdisplay_backlight_get(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_backlight_get(dev, backlight); } -#include +#include static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev, uint8_t backlight) @@ -123,14 +123,14 @@ static inline int z_vrfy_auxdisplay_backlight_set(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_backlight_set(dev, backlight); } -#include +#include static inline int z_vrfy_auxdisplay_is_busy(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_is_busy(dev); } -#include +#include static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *dev, struct auxdisplay_character *character) @@ -138,7 +138,7 @@ static inline int z_vrfy_auxdisplay_custom_character_set(const struct device *de K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_custom_character_set(dev, character); } -#include +#include static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_t *data, uint16_t len) @@ -146,7 +146,7 @@ static inline int z_vrfy_auxdisplay_write(const struct device *dev, const uint8_ K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_write(dev, data, len); } -#include +#include static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev, struct auxdisplay_custom_data *data) @@ -154,4 +154,4 @@ static inline int z_vrfy_auxdisplay_custom_command(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); return z_impl_auxdisplay_custom_command(dev, data); } -#include +#include diff --git a/drivers/bbram/bbram_handlers.c b/drivers/bbram/bbram_handlers.c index 14e4abe21b35..2fc26954014a 100644 --- a/drivers/bbram/bbram_handlers.c +++ b/drivers/bbram/bbram_handlers.c @@ -12,21 +12,21 @@ static inline int z_vrfy_bbram_check_invalid(const struct device *dev) K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM)); return z_impl_bbram_check_invalid(dev); } -#include +#include static inline int z_vrfy_bbram_check_standby_power(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM)); return z_impl_bbram_check_standby_power(dev); } -#include +#include static inline int z_vrfy_bbram_check_power(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_BBRAM)); return z_impl_bbram_check_power(dev); } -#include +#include static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size) { @@ -34,7 +34,7 @@ static inline int z_vrfy_bbram_get_size(const struct device *dev, size_t *size) K_OOPS(K_SYSCALL_MEMORY_WRITE(size, sizeof(size_t))); return z_impl_bbram_get_size(dev, size); } -#include +#include static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset, size_t size, uint8_t *data) @@ -43,7 +43,7 @@ static inline int z_vrfy_bbram_read(const struct device *dev, size_t offset, K_OOPS(K_SYSCALL_MEMORY_WRITE(data, size)); return z_impl_bbram_read(dev, offset, size, data); } -#include +#include static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset, size_t size, const uint8_t *data) @@ -52,4 +52,4 @@ static inline int z_vrfy_bbram_write(const struct device *dev, size_t offset, K_OOPS(K_SYSCALL_MEMORY_READ(data, size)); return z_impl_bbram_write(dev, offset, size, data); } -#include +#include diff --git a/drivers/cache/cache_handlers.c b/drivers/cache/cache_handlers.c index 2005124136f7..692ec1306d9c 100644 --- a/drivers/cache/cache_handlers.c +++ b/drivers/cache/cache_handlers.c @@ -13,7 +13,7 @@ static inline int z_vrfy_sys_cache_data_flush_range(void *addr, size_t size) return z_impl_sys_cache_data_flush_range(addr, size); } -#include +#include static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size) { @@ -21,7 +21,7 @@ static inline int z_vrfy_sys_cache_data_invd_range(void *addr, size_t size) return z_impl_sys_cache_data_invd_range(addr, size); } -#include +#include static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t size) { @@ -29,4 +29,4 @@ static inline int z_vrfy_sys_cache_data_flush_and_invd_range(void *addr, size_t return z_impl_sys_cache_data_flush_and_invd_range(addr, size); } -#include +#include diff --git a/drivers/can/can_handlers.c b/drivers/can/can_handlers.c index b762b80d9209..c67ce015330d 100644 --- a/drivers/can/can_handlers.c +++ b/drivers/can/can_handlers.c @@ -21,7 +21,7 @@ static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *r return err; } -#include +#include static inline int z_vrfy_can_set_timing(const struct device *dev, const struct can_timing *timing) @@ -33,7 +33,7 @@ static inline int z_vrfy_can_set_timing(const struct device *dev, return z_impl_can_set_timing(dev, &timing_copy); } -#include +#include static inline int z_vrfy_can_get_core_clock(const struct device *dev, uint32_t *rate) @@ -43,7 +43,7 @@ static inline int z_vrfy_can_get_core_clock(const struct device *dev, return z_impl_can_get_core_clock(dev, rate); } -#include +#include static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev) { @@ -51,7 +51,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev) return z_impl_can_get_bitrate_min(dev); } -#include +#include static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev) { @@ -59,7 +59,7 @@ static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev) return z_impl_can_get_bitrate_max(dev); } -#include +#include static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct device *dev) { @@ -67,7 +67,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct de return z_impl_can_get_timing_min(dev); } -#include +#include static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct device *dev) { @@ -75,7 +75,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct de return z_impl_can_get_timing_max(dev); } -#include +#include #ifdef CONFIG_CAN_FD_MODE @@ -93,7 +93,7 @@ static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timi return err; } -#include +#include static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const struct device *dev) { @@ -101,7 +101,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const stru return z_impl_can_get_timing_data_min(dev); } -#include +#include static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const struct device *dev) { @@ -109,7 +109,7 @@ static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const stru return z_impl_can_get_timing_data_max(dev); } -#include +#include static inline int z_vrfy_can_set_timing_data(const struct device *dev, const struct can_timing *timing_data) @@ -121,7 +121,7 @@ static inline int z_vrfy_can_set_timing_data(const struct device *dev, return z_impl_can_set_timing_data(dev, &timing_data_copy); } -#include +#include static inline int z_vrfy_can_set_bitrate_data(const struct device *dev, uint32_t bitrate_data) @@ -130,7 +130,7 @@ static inline int z_vrfy_can_set_bitrate_data(const struct device *dev, return z_impl_can_set_bitrate_data(dev, bitrate_data); } -#include +#include #endif /* CONFIG_CAN_FD_MODE */ @@ -141,7 +141,7 @@ static inline int z_vrfy_can_get_max_filters(const struct device *dev, bool ide) return z_impl_can_get_max_filters(dev, ide); } -#include +#include static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode_t *cap) { @@ -150,7 +150,7 @@ static inline int z_vrfy_can_get_capabilities(const struct device *dev, can_mode return z_impl_can_get_capabilities(dev, cap); } -#include +#include static inline const struct device *z_vrfy_can_get_transceiver(const struct device *dev) { @@ -158,7 +158,7 @@ static inline const struct device *z_vrfy_can_get_transceiver(const struct devic return z_impl_can_get_transceiver(dev); } -#include +#include static inline int z_vrfy_can_start(const struct device *dev) { @@ -166,7 +166,7 @@ static inline int z_vrfy_can_start(const struct device *dev) return z_impl_can_start(dev); } -#include +#include static inline int z_vrfy_can_stop(const struct device *dev) { @@ -174,7 +174,7 @@ static inline int z_vrfy_can_stop(const struct device *dev) return z_impl_can_stop(dev); } -#include +#include static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode) { @@ -182,7 +182,7 @@ static inline int z_vrfy_can_set_mode(const struct device *dev, can_mode_t mode) return z_impl_can_set_mode(dev, mode); } -#include +#include static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev) { @@ -190,7 +190,7 @@ static inline can_mode_t z_vrfy_can_get_mode(const struct device *dev) return z_impl_can_get_mode(dev); } -#include +#include static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitrate) { @@ -198,7 +198,7 @@ static inline int z_vrfy_can_set_bitrate(const struct device *dev, uint32_t bitr return z_impl_can_set_bitrate(dev, bitrate); } -#include +#include static inline int z_vrfy_can_send(const struct device *dev, const struct can_frame *frame, @@ -214,7 +214,7 @@ static inline int z_vrfy_can_send(const struct device *dev, return z_impl_can_send(dev, &frame_copy, timeout, callback, user_data); } -#include +#include static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev, struct k_msgq *msgq, @@ -228,7 +228,7 @@ static inline int z_vrfy_can_add_rx_filter_msgq(const struct device *dev, return z_impl_can_add_rx_filter_msgq(dev, msgq, &filter_copy); } -#include +#include static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int filter_id) { @@ -236,7 +236,7 @@ static inline void z_vrfy_can_remove_rx_filter(const struct device *dev, int fil z_impl_can_remove_rx_filter(dev, filter_id); } -#include +#include static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state *state, struct can_bus_err_cnt *err_cnt) @@ -253,7 +253,7 @@ static inline int z_vrfy_can_get_state(const struct device *dev, enum can_state return z_impl_can_get_state(dev, state, err_cnt); } -#include +#include #ifdef CONFIG_CAN_MANUAL_RECOVERY_MODE static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeout) @@ -263,7 +263,7 @@ static inline int z_vrfy_can_recover(const struct device *dev, k_timeout_t timeo return z_impl_can_recover(dev, timeout); } -#include +#include #endif /* CONFIG_CAN_MANUAL_RECOVERY_MODE */ #ifdef CONFIG_CAN_STATS @@ -274,7 +274,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit_errors(const struct device *dev) return z_impl_can_stats_get_bit_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev) { @@ -282,7 +282,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit0_errors(const struct device *dev return z_impl_can_stats_get_bit0_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev) { @@ -290,7 +290,7 @@ static inline uint32_t z_vrfy_can_stats_get_bit1_errors(const struct device *dev return z_impl_can_stats_get_bit1_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *dev) { @@ -298,7 +298,7 @@ static inline uint32_t z_vrfy_can_stats_get_stuff_errors(const struct device *de return z_impl_can_stats_get_stuff_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev) { @@ -306,7 +306,7 @@ static inline uint32_t z_vrfy_can_stats_get_crc_errors(const struct device *dev) return z_impl_can_stats_get_crc_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev) { @@ -314,7 +314,7 @@ static inline uint32_t z_vrfy_can_stats_get_form_errors(const struct device *dev return z_impl_can_stats_get_form_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev) { @@ -322,7 +322,7 @@ static inline uint32_t z_vrfy_can_stats_get_ack_errors(const struct device *dev) return z_impl_can_stats_get_ack_errors(dev); } -#include +#include static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev) { @@ -330,6 +330,6 @@ static inline uint32_t z_vrfy_can_stats_get_rx_overruns(const struct device *dev return z_impl_can_stats_get_rx_overruns(dev); } -#include +#include #endif /* CONFIG_CAN_STATS */ diff --git a/drivers/charger/charger_handlers.c b/drivers/charger/charger_handlers.c index 4fdf6ca7140e..44042b3fdd91 100644 --- a/drivers/charger/charger_handlers.c +++ b/drivers/charger/charger_handlers.c @@ -21,7 +21,7 @@ static inline int z_vrfy_charger_get_prop(const struct device *dev, const charge return ret; } -#include +#include static inline int z_vrfy_charger_set_prop(const struct device *dev, const charger_prop_t prop, const union charger_propval *val) @@ -35,7 +35,7 @@ static inline int z_vrfy_charger_set_prop(const struct device *dev, const charge return z_impl_charger_set_prop(dev, prop, &k_val); } -#include +#include static inline int z_vrfy_charger_charge_enable(const struct device *dev, const bool enable) { @@ -44,4 +44,4 @@ static inline int z_vrfy_charger_charge_enable(const struct device *dev, const b return z_impl_charger_charge_enable(dev, enable); } -#include +#include diff --git a/drivers/console/uart_mux.c b/drivers/console/uart_mux.c index 8ade93ef0bba..f42b1c3a3054 100644 --- a/drivers/console/uart_mux.c +++ b/drivers/console/uart_mux.c @@ -739,7 +739,7 @@ static inline const struct device *z_vrfy_uart_mux_find(int dlci_address) { return z_impl_uart_mux_find(dlci_address); } -#include +#include #endif /* CONFIG_USERSPACE */ const struct device *z_impl_uart_mux_find(int dlci_address) diff --git a/drivers/counter/counter_handlers.c b/drivers/counter/counter_handlers.c index 15cd0cb58816..df2a20562a36 100644 --- a/drivers/counter/counter_handlers.c +++ b/drivers/counter/counter_handlers.c @@ -21,30 +21,30 @@ COUNTER_HANDLER(get_pending_int) COUNTER_HANDLER(stop) COUNTER_HANDLER(start) -#include -#include -#include +#include +#include +#include static inline bool z_vrfy_counter_is_counting_up(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); return z_impl_counter_is_counting_up((const struct device *)dev); } -#include +#include static inline uint8_t z_vrfy_counter_get_num_of_channels(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); return z_impl_counter_get_num_of_channels((const struct device *)dev); } -#include +#include static inline uint32_t z_vrfy_counter_get_frequency(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); return z_impl_counter_get_frequency((const struct device *)dev); } -#include +#include static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev, uint64_t us) @@ -53,7 +53,7 @@ static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev, return z_impl_counter_us_to_ticks((const struct device *)dev, (uint64_t)us); } -#include +#include static inline uint64_t z_vrfy_counter_ticks_to_us(const struct device *dev, uint32_t ticks) @@ -62,7 +62,7 @@ static inline uint64_t z_vrfy_counter_ticks_to_us(const struct device *dev, return z_impl_counter_ticks_to_us((const struct device *)dev, (uint32_t)ticks); } -#include +#include static inline int z_vrfy_counter_get_value(const struct device *dev, uint32_t *ticks) @@ -80,7 +80,7 @@ static inline int z_vrfy_counter_get_value_64(const struct device *dev, return z_impl_counter_get_value_64((const struct device *)dev, ticks); } -#include +#include static inline int z_vrfy_counter_set_channel_alarm(const struct device *dev, uint8_t chan_id, @@ -97,7 +97,7 @@ static inline int z_vrfy_counter_set_channel_alarm(const struct device *dev, (const struct counter_alarm_cfg *)&cfg_copy); } -#include +#include static inline int z_vrfy_counter_cancel_channel_alarm(const struct device *dev, uint8_t chan_id) @@ -106,7 +106,7 @@ static inline int z_vrfy_counter_cancel_channel_alarm(const struct device *dev, return z_impl_counter_cancel_channel_alarm((const struct device *)dev, (uint8_t)chan_id); } -#include +#include static inline int z_vrfy_counter_set_top_value(const struct device *dev, const struct counter_top_cfg @@ -122,21 +122,21 @@ static inline int z_vrfy_counter_set_top_value(const struct device *dev, (const struct counter_top_cfg *) &cfg_copy); } -#include +#include static inline uint32_t z_vrfy_counter_get_top_value(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_COUNTER(dev, get_top_value)); return z_impl_counter_get_top_value((const struct device *)dev); } -#include +#include static inline uint32_t z_vrfy_counter_get_max_top_value(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); return z_impl_counter_get_max_top_value((const struct device *)dev); } -#include +#include static inline uint32_t z_vrfy_counter_get_guard_period(const struct device *dev, uint32_t flags) @@ -145,7 +145,7 @@ static inline uint32_t z_vrfy_counter_get_guard_period(const struct device *dev, return z_impl_counter_get_guard_period((const struct device *)dev, flags); } -#include +#include static inline int z_vrfy_counter_set_guard_period(const struct device *dev, uint32_t ticks, uint32_t flags) @@ -155,4 +155,4 @@ static inline int z_vrfy_counter_set_guard_period(const struct device *dev, ticks, flags); } -#include +#include diff --git a/drivers/counter/maxim_ds3231.c b/drivers/counter/maxim_ds3231.c index c6b8e08b79c7..146be21762a7 100644 --- a/drivers/counter/maxim_ds3231.c +++ b/drivers/counter/maxim_ds3231.c @@ -1321,7 +1321,7 @@ int z_vrfy_maxim_ds3231_get_syncpoint(const struct device *dev, return rv; } -#include +#include int z_vrfy_maxim_ds3231_req_syncpoint(const struct device *dev, struct k_poll_signal *sig) @@ -1334,6 +1334,6 @@ int z_vrfy_maxim_ds3231_req_syncpoint(const struct device *dev, return z_impl_maxim_ds3231_req_syncpoint(dev, sig); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/drivers/dac/dac_handlers.c b/drivers/dac/dac_handlers.c index bd9ee0bc7e0d..36557ad208e3 100644 --- a/drivers/dac/dac_handlers.c +++ b/drivers/dac/dac_handlers.c @@ -21,7 +21,7 @@ static inline int z_vrfy_dac_channel_setup(const struct device *dev, return z_impl_dac_channel_setup((const struct device *)dev, &channel_cfg); } -#include +#include static inline int z_vrfy_dac_write_value(const struct device *dev, uint8_t channel, uint32_t value) @@ -31,4 +31,4 @@ static inline int z_vrfy_dac_write_value(const struct device *dev, return z_impl_dac_write_value((const struct device *)dev, channel, value); } -#include +#include diff --git a/drivers/dma/dma_handlers.c b/drivers/dma/dma_handlers.c index d84c15101521..9ebce367482e 100644 --- a/drivers/dma/dma_handlers.c +++ b/drivers/dma/dma_handlers.c @@ -16,11 +16,11 @@ static inline int z_vrfy_dma_start(const struct device *dev, uint32_t channel) K_OOPS(K_SYSCALL_DRIVER_DMA(dev, start)); return z_impl_dma_start((const struct device *)dev, channel); } -#include +#include static inline int z_vrfy_dma_stop(const struct device *dev, uint32_t channel) { K_OOPS(K_SYSCALL_DRIVER_DMA(dev, stop)); return z_impl_dma_stop((const struct device *)dev, channel); } -#include +#include diff --git a/drivers/eeprom/eeprom_handlers.c b/drivers/eeprom/eeprom_handlers.c index 9b1406a60043..94a3d4f473ed 100644 --- a/drivers/eeprom/eeprom_handlers.c +++ b/drivers/eeprom/eeprom_handlers.c @@ -16,7 +16,7 @@ static inline int z_vrfy_eeprom_read(const struct device *dev, off_t offset, (void *)data, len); } -#include +#include static inline int z_vrfy_eeprom_write(const struct device *dev, off_t offset, const void *data, size_t len) @@ -26,11 +26,11 @@ static inline int z_vrfy_eeprom_write(const struct device *dev, off_t offset, return z_impl_eeprom_write((const struct device *)dev, offset, (const void *)data, len); } -#include +#include static inline size_t z_vrfy_eeprom_get_size(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_EEPROM(dev, size)); return z_impl_eeprom_get_size((const struct device *)dev); } -#include +#include diff --git a/drivers/entropy/entropy_handlers.c b/drivers/entropy/entropy_handlers.c index 76b7df3d0bd7..643aa77c16ad 100644 --- a/drivers/entropy/entropy_handlers.c +++ b/drivers/entropy/entropy_handlers.c @@ -17,4 +17,4 @@ static inline int z_vrfy_entropy_get_entropy(const struct device *dev, (uint8_t *)buffer, len); } -#include +#include diff --git a/drivers/espi/espi_handlers.c b/drivers/espi/espi_handlers.c index c215838fd795..703300adc6a4 100644 --- a/drivers/espi/espi_handlers.c +++ b/drivers/espi/espi_handlers.c @@ -19,7 +19,7 @@ static inline int z_vrfy_espi_config(const struct device *dev, return z_impl_espi_config(dev, &cfg_copy); } -#include +#include static inline bool z_vrfy_espi_get_channel_status(const struct device *dev, enum espi_channel ch) @@ -28,7 +28,7 @@ static inline bool z_vrfy_espi_get_channel_status(const struct device *dev, return z_impl_espi_get_channel_status(dev, ch); } -#include +#include static inline int z_vrfy_espi_read_lpc_request(const struct device *dev, enum lpc_peripheral_opcode op, @@ -44,7 +44,7 @@ static inline int z_vrfy_espi_read_lpc_request(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_write_lpc_request(const struct device *dev, enum lpc_peripheral_opcode op, @@ -57,7 +57,7 @@ static inline int z_vrfy_espi_write_lpc_request(const struct device *dev, return z_impl_espi_write_lpc_request(dev, op, &data_copy); } -#include +#include static inline int z_vrfy_espi_send_vwire(const struct device *dev, enum espi_vwire_signal signal, @@ -67,7 +67,7 @@ static inline int z_vrfy_espi_send_vwire(const struct device *dev, return z_impl_espi_send_vwire(dev, signal, level); } -#include +#include static inline int z_vrfy_espi_receive_vwire(const struct device *dev, enum espi_vwire_signal signal, @@ -83,7 +83,7 @@ static inline int z_vrfy_espi_receive_vwire(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_read_request(const struct device *dev, struct espi_request_packet *req) @@ -103,7 +103,7 @@ static inline int z_vrfy_espi_read_request(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_write_request(const struct device *dev, struct espi_request_packet *req) @@ -120,7 +120,7 @@ static inline int z_vrfy_espi_write_request(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_send_oob(const struct device *dev, struct espi_oob_packet *pckt) @@ -137,7 +137,7 @@ static inline int z_vrfy_espi_send_oob(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_receive_oob(const struct device *dev, struct espi_oob_packet *pckt) @@ -156,7 +156,7 @@ static inline int z_vrfy_espi_receive_oob(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_read_flash(const struct device *dev, struct espi_flash_packet *pckt) @@ -175,7 +175,7 @@ static inline int z_vrfy_espi_read_flash(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_write_flash(const struct device *dev, struct espi_flash_packet *pckt) @@ -192,7 +192,7 @@ static inline int z_vrfy_espi_write_flash(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_espi_flash_erase(const struct device *dev, struct espi_flash_packet *pckt) @@ -209,4 +209,4 @@ static inline int z_vrfy_espi_flash_erase(const struct device *dev, return ret; } -#include +#include diff --git a/drivers/flash/flash_handlers.c b/drivers/flash/flash_handlers.c index 8c047adbaf4a..6e47b10dbd38 100644 --- a/drivers/flash/flash_handlers.c +++ b/drivers/flash/flash_handlers.c @@ -16,7 +16,7 @@ static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, (void *)data, len); } -#include +#include static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, const void *data, size_t len) @@ -26,7 +26,7 @@ static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, return z_impl_flash_write((const struct device *)dev, offset, (const void *)data, len); } -#include +#include static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, size_t size) @@ -34,21 +34,21 @@ static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, erase)); return z_impl_flash_erase((const struct device *)dev, offset, size); } -#include +#include static inline size_t z_vrfy_flash_get_write_block_size(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); return z_impl_flash_get_write_block_size(dev); } -#include +#include static inline const struct flash_parameters *z_vrfy_flash_get_parameters(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, get_parameters)); return z_impl_flash_get_parameters(dev); } -#include +#include #ifdef CONFIG_FLASH_PAGE_LAYOUT static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev, @@ -61,7 +61,7 @@ static inline int z_vrfy_flash_get_page_info_by_offs(const struct device *dev, offs, (struct flash_pages_info *)info); } -#include +#include static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev, uint32_t idx, @@ -73,14 +73,14 @@ static inline int z_vrfy_flash_get_page_info_by_idx(const struct device *dev, idx, (struct flash_pages_info *)info); } -#include +#include static inline size_t z_vrfy_flash_get_page_count(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, page_layout)); return z_impl_flash_get_page_count((const struct device *)dev); } -#include +#include #endif /* CONFIG_FLASH_PAGE_LAYOUT */ @@ -94,7 +94,7 @@ static inline int z_vrfy_flash_sfdp_read(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_WRITE(data, len)); return z_impl_flash_sfdp_read(dev, offset, data, len); } -#include +#include static inline int z_vrfy_flash_read_jedec_id(const struct device *dev, uint8_t *id) @@ -103,7 +103,7 @@ static inline int z_vrfy_flash_read_jedec_id(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_WRITE(id, 3)); return z_impl_flash_read_jedec_id(dev, id); } -#include +#include #endif /* CONFIG_FLASH_JESD216_API */ @@ -122,6 +122,6 @@ static inline int z_vrfy_flash_ex_op(const struct device *dev, uint16_t code, return z_impl_flash_ex_op(dev, code, in, out); } -#include +#include #endif /* CONFIG_FLASH_EX_OP_ENABLED */ diff --git a/drivers/flash/flash_simulator.c b/drivers/flash/flash_simulator.c index 12cd86078550..effd53c1f2b3 100644 --- a/drivers/flash/flash_simulator.c +++ b/drivers/flash/flash_simulator.c @@ -491,6 +491,6 @@ void *z_vrfy_flash_simulator_get_memory(const struct device *dev, return z_impl_flash_simulator_get_memory(dev, mock_size); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/drivers/flash/nrf_qspi_nor.c b/drivers/flash/nrf_qspi_nor.c index b3a6fbb2ec1f..81ccf123ce90 100644 --- a/drivers/flash/nrf_qspi_nor.c +++ b/drivers/flash/nrf_qspi_nor.c @@ -1366,7 +1366,7 @@ void z_vrfy_nrf_qspi_nor_xip_enable(const struct device *dev, bool enable) z_impl_nrf_qspi_nor_xip_enable(dev, enable); } -#include +#include #endif /* CONFIG_USERSPACE */ static struct qspi_nor_data qspi_nor_dev_data = { diff --git a/drivers/fpga/fpga_shell.c b/drivers/fpga/fpga_shell.c index af1a28eb8e11..4afeba42ef97 100644 --- a/drivers/fpga/fpga_shell.c +++ b/drivers/fpga/fpga_shell.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include diff --git a/drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c b/drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c index 2382fcad77b4..538d93f84b6d 100644 --- a/drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c +++ b/drivers/fuel_gauge/emul_fuel_gauge_syscall_handlers.c @@ -14,7 +14,7 @@ static inline int z_vrfy_emul_fuel_gauge_is_battery_cutoff(const struct emul *ta return z_impl_emul_fuel_gauge_is_battery_cutoff(target, cutoff); } -#include +#include static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul *target, uint32_t uV, int uA) @@ -22,4 +22,4 @@ static inline int z_vrfy_emul_fuel_gauge_set_battery_charging(const struct emul return z_impl_emul_fuel_gauge_set_battery_charging(target, uV, uA); } -#include +#include diff --git a/drivers/fuel_gauge/fuel_gauge_syscall_handlers.c b/drivers/fuel_gauge/fuel_gauge_syscall_handlers.c index 312564c35a62..75b93d3a5312 100644 --- a/drivers/fuel_gauge/fuel_gauge_syscall_handlers.c +++ b/drivers/fuel_gauge/fuel_gauge_syscall_handlers.c @@ -24,7 +24,7 @@ static inline int z_vrfy_fuel_gauge_get_prop(const struct device *dev, fuel_gaug return ret; } -#include +#include static inline int z_vrfy_fuel_gauge_get_props(const struct device *dev, fuel_gauge_prop_t *props, union fuel_gauge_prop_val *vals, size_t len) @@ -44,7 +44,7 @@ static inline int z_vrfy_fuel_gauge_get_props(const struct device *dev, fuel_gau return ret; } -#include +#include static inline int z_vrfy_fuel_gauge_set_prop(const struct device *dev, fuel_gauge_prop_t prop, union fuel_gauge_prop_val val) @@ -56,7 +56,7 @@ static inline int z_vrfy_fuel_gauge_set_prop(const struct device *dev, fuel_gaug return ret; } -#include +#include static inline int z_vrfy_fuel_gauge_set_props(const struct device *dev, fuel_gauge_prop_t *props, union fuel_gauge_prop_val *vals, size_t len) @@ -77,7 +77,7 @@ static inline int z_vrfy_fuel_gauge_set_props(const struct device *dev, fuel_gau return ret; } -#include +#include static inline int z_vrfy_fuel_gauge_get_buffer_prop(const struct device *dev, fuel_gauge_prop_t prop, void *dst, @@ -92,7 +92,7 @@ static inline int z_vrfy_fuel_gauge_get_buffer_prop(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_fuel_gauge_battery_cutoff(const struct device *dev) { @@ -101,4 +101,4 @@ static inline int z_vrfy_fuel_gauge_battery_cutoff(const struct device *dev) return z_impl_fuel_gauge_battery_cutoff(dev); } -#include +#include diff --git a/drivers/gpio/gpio_handlers.c b/drivers/gpio/gpio_handlers.c index 99fbc6f45d91..405b54afeb33 100644 --- a/drivers/gpio/gpio_handlers.c +++ b/drivers/gpio/gpio_handlers.c @@ -16,7 +16,7 @@ static inline int z_vrfy_gpio_pin_configure(const struct device *port, pin, flags); } -#include +#include #ifdef CONFIG_GPIO_GET_CONFIG static inline int z_vrfy_gpio_pin_get_config(const struct device *port, @@ -28,7 +28,7 @@ static inline int z_vrfy_gpio_pin_get_config(const struct device *port, return z_impl_gpio_pin_get_config(port, pin, flags); } -#include +#include #endif static inline int z_vrfy_gpio_port_get_raw(const struct device *port, @@ -39,7 +39,7 @@ static inline int z_vrfy_gpio_port_get_raw(const struct device *port, return z_impl_gpio_port_get_raw((const struct device *)port, (gpio_port_value_t *)value); } -#include +#include static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port, gpio_port_pins_t mask, @@ -50,7 +50,7 @@ static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port, mask, value); } -#include +#include static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port, gpio_port_pins_t pins) @@ -59,7 +59,7 @@ static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port, return z_impl_gpio_port_set_bits_raw((const struct device *)port, pins); } -#include +#include static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port, gpio_port_pins_t pins) @@ -68,7 +68,7 @@ static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port, return z_impl_gpio_port_clear_bits_raw((const struct device *)port, pins); } -#include +#include static inline int z_vrfy_gpio_port_toggle_bits(const struct device *port, gpio_port_pins_t pins) @@ -76,7 +76,7 @@ static inline int z_vrfy_gpio_port_toggle_bits(const struct device *port, K_OOPS(K_SYSCALL_DRIVER_GPIO(port, port_toggle_bits)); return z_impl_gpio_port_toggle_bits((const struct device *)port, pins); } -#include +#include static inline int z_vrfy_gpio_pin_interrupt_configure(const struct device *port, gpio_pin_t pin, @@ -87,7 +87,7 @@ static inline int z_vrfy_gpio_pin_interrupt_configure(const struct device *port, pin, flags); } -#include +#include static inline int z_vrfy_gpio_get_pending_int(const struct device *dev) { @@ -95,7 +95,7 @@ static inline int z_vrfy_gpio_get_pending_int(const struct device *dev) return z_impl_gpio_get_pending_int((const struct device *)dev); } -#include +#include #ifdef CONFIG_GPIO_GET_DIRECTION static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_port_pins_t map, @@ -114,5 +114,5 @@ static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_ return z_impl_gpio_port_get_direction(dev, map, inputs, outputs); } -#include +#include #endif /* CONFIG_GPIO_GET_DIRECTION */ diff --git a/drivers/hwinfo/hwinfo_handlers.c b/drivers/hwinfo/hwinfo_handlers.c index a1eb9e2c830a..fc39241ff323 100644 --- a/drivers/hwinfo/hwinfo_handlers.c +++ b/drivers/hwinfo/hwinfo_handlers.c @@ -13,7 +13,7 @@ ssize_t z_vrfy_hwinfo_get_device_id(uint8_t *buffer, size_t length) return z_impl_hwinfo_get_device_id((uint8_t *)buffer, (size_t)length); } -#include +#include ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer) { @@ -21,7 +21,7 @@ ssize_t z_vrfy_hwinfo_get_device_eui64(uint8_t *buffer) return z_impl_hwinfo_get_device_eui64((uint8_t *)buffer); } -#include +#include int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause) { @@ -33,14 +33,14 @@ int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause) return ret; } -#include +#include int z_vrfy_hwinfo_clear_reset_cause(void) { return z_impl_hwinfo_clear_reset_cause(); } -#include +#include int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported) { @@ -52,4 +52,4 @@ int z_vrfy_hwinfo_get_supported_reset_cause(uint32_t *supported) return ret; } -#include +#include diff --git a/drivers/hwspinlock/hwspinlock_handlers.c b/drivers/hwspinlock/hwspinlock_handlers.c index 7064293be4bf..dbb1a94f68ed 100644 --- a/drivers/hwspinlock/hwspinlock_handlers.c +++ b/drivers/hwspinlock/hwspinlock_handlers.c @@ -13,7 +13,7 @@ static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t i return z_impl_hwspinlock_trylock(dev, id); } -#include +#include static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id) { @@ -21,7 +21,7 @@ static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id) z_impl_hwspinlock_lock(dev, id); } -#include +#include static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t id) { @@ -29,7 +29,7 @@ static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t i z_impl_hwspinlock_unlock(dev, id); } -#include +#include static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev) { @@ -37,4 +37,4 @@ static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev) return z_impl_hwspinlock_get_max_id(dev); } -#include +#include diff --git a/drivers/i2c/i2c_handlers.c b/drivers/i2c/i2c_handlers.c index 20ec2a6f5788..e5b87bc2d4cd 100644 --- a/drivers/i2c/i2c_handlers.c +++ b/drivers/i2c/i2c_handlers.c @@ -14,7 +14,7 @@ static inline int z_vrfy_i2c_configure(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_I2C(dev, configure)); return z_impl_i2c_configure((const struct device *)dev, dev_config); } -#include +#include static inline int z_vrfy_i2c_get_config(const struct device *dev, uint32_t *dev_config) @@ -24,7 +24,7 @@ static inline int z_vrfy_i2c_get_config(const struct device *dev, return z_impl_i2c_get_config(dev, dev_config); } -#include +#include static uint32_t copy_msgs_and_transfer(const struct device *dev, const struct i2c_msg *msgs, @@ -69,25 +69,25 @@ static inline int z_vrfy_i2c_transfer(const struct device *dev, (struct i2c_msg *)msgs, (uint8_t)num_msgs, (uint16_t)addr); } -#include +#include static inline int z_vrfy_i2c_target_driver_register(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C)); return z_impl_i2c_target_driver_register(dev); } -#include +#include static inline int z_vrfy_i2c_target_driver_unregister(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C)); return z_impl_i2c_target_driver_unregister(dev); } -#include +#include static inline int z_vrfy_i2c_recover_bus(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_I2C)); return z_impl_i2c_recover_bus(dev); } -#include +#include diff --git a/drivers/i2s/i2s_handlers.c b/drivers/i2s/i2s_handlers.c index 0ef1f6e6cd55..3f1c31a46c7a 100644 --- a/drivers/i2s/i2s_handlers.c +++ b/drivers/i2s/i2s_handlers.c @@ -41,7 +41,7 @@ static inline int z_vrfy_i2s_configure(const struct device *dev, out: return ret; } -#include +#include static inline int z_vrfy_i2s_buf_read(const struct device *dev, void *buf, size_t *size) @@ -74,7 +74,7 @@ static inline int z_vrfy_i2s_buf_read(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_i2s_buf_write(const struct device *dev, void *buf, size_t size) @@ -111,7 +111,7 @@ static inline int z_vrfy_i2s_buf_write(const struct device *dev, return ret; } -#include +#include static inline int z_vrfy_i2s_trigger(const struct device *dev, enum i2s_dir dir, @@ -121,4 +121,4 @@ static inline int z_vrfy_i2s_trigger(const struct device *dev, return z_impl_i2s_trigger((const struct device *)dev, dir, cmd); } -#include +#include diff --git a/drivers/i3c/i3c_handlers.c b/drivers/i3c/i3c_handlers.c index a5d218992a33..99708eb7a83b 100644 --- a/drivers/i3c/i3c_handlers.c +++ b/drivers/i3c/i3c_handlers.c @@ -35,7 +35,7 @@ static inline int z_vrfy_i3c_do_ccc(const struct device *dev, return z_impl_i3c_do_ccc(dev, payload); } -#include +#include static uint32_t copy_i3c_msgs_and_transfer(struct i3c_device_desc *target, const struct i3c_msg *msgs, @@ -79,4 +79,4 @@ static inline int z_vrfy_i3c_transfer(struct i3c_device_desc *target, (struct i3c_msg *)msgs, (uint8_t)num_msgs); } -#include +#include diff --git a/drivers/ipm/ipm_handlers.c b/drivers/ipm/ipm_handlers.c index 259644ae8d0e..f049a090f1ee 100644 --- a/drivers/ipm/ipm_handlers.c +++ b/drivers/ipm/ipm_handlers.c @@ -16,25 +16,25 @@ static inline int z_vrfy_ipm_send(const struct device *dev, int wait, return z_impl_ipm_send((const struct device *)dev, wait, id, (const void *)data, size); } -#include +#include static inline int z_vrfy_ipm_max_data_size_get(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_IPM(dev, max_data_size_get)); return z_impl_ipm_max_data_size_get((const struct device *)dev); } -#include +#include static inline uint32_t z_vrfy_ipm_max_id_val_get(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_IPM(dev, max_id_val_get)); return z_impl_ipm_max_id_val_get((const struct device *)dev); } -#include +#include static inline int z_vrfy_ipm_set_enabled(const struct device *dev, int enable) { K_OOPS(K_SYSCALL_DRIVER_IPM(dev, set_enabled)); return z_impl_ipm_set_enabled((const struct device *)dev, enable); } -#include +#include diff --git a/drivers/kscan/kscan_handlers.c b/drivers/kscan/kscan_handlers.c index 98809687430a..81c97c19d04f 100644 --- a/drivers/kscan/kscan_handlers.c +++ b/drivers/kscan/kscan_handlers.c @@ -15,7 +15,7 @@ static inline int z_vrfy_kscan_config(const struct device *dev, "callback cannot be set from user mode")); return z_impl_kscan_config((const struct device *)dev, callback_isr); } -#include +#include static inline int z_vrfy_kscan_disable_callback(const struct device *dev) { @@ -23,7 +23,7 @@ static inline int z_vrfy_kscan_disable_callback(const struct device *dev) return z_impl_kscan_disable_callback((const struct device *)dev); } -#include +#include static int z_vrfy_kscan_enable_callback(const struct device *dev) { @@ -31,4 +31,4 @@ static int z_vrfy_kscan_enable_callback(const struct device *dev) return z_impl_kscan_enable_callback((const struct device *)dev); } -#include +#include diff --git a/drivers/led/led_handlers.c b/drivers/led/led_handlers.c index a089846e6951..5fde5e53c1b0 100644 --- a/drivers/led/led_handlers.c +++ b/drivers/led/led_handlers.c @@ -14,7 +14,7 @@ static inline int z_vrfy_led_blink(const struct device *dev, uint32_t led, return z_impl_led_blink((const struct device *)dev, led, delay_on, delay_off); } -#include +#include static inline int z_vrfy_led_get_info(const struct device *dev, uint32_t led, const struct led_info **info) @@ -23,7 +23,7 @@ static inline int z_vrfy_led_get_info(const struct device *dev, uint32_t led, K_OOPS(K_SYSCALL_MEMORY_WRITE(info, sizeof(*info))); return z_impl_led_get_info(dev, led, info); } -#include +#include static inline int z_vrfy_led_set_brightness(const struct device *dev, uint32_t led, @@ -33,7 +33,7 @@ static inline int z_vrfy_led_set_brightness(const struct device *dev, return z_impl_led_set_brightness((const struct device *)dev, led, value); } -#include +#include static inline int z_vrfy_led_write_channels(const struct device *dev, uint32_t start_channel, @@ -43,7 +43,7 @@ z_vrfy_led_write_channels(const struct device *dev, uint32_t start_channel, K_OOPS(K_SYSCALL_MEMORY_READ(buf, num_channels)); return z_impl_led_write_channels(dev, start_channel, num_channels, buf); } -#include +#include static inline int z_vrfy_led_set_channel(const struct device *dev, uint32_t channel, uint8_t value) @@ -51,7 +51,7 @@ static inline int z_vrfy_led_set_channel(const struct device *dev, K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_LED)); return z_impl_led_set_channel(dev, channel, value); } -#include +#include static inline int z_vrfy_led_set_color(const struct device *dev, uint32_t led, uint8_t num_colors, const uint8_t *color) @@ -60,18 +60,18 @@ static inline int z_vrfy_led_set_color(const struct device *dev, uint32_t led, K_OOPS(K_SYSCALL_MEMORY_READ(color, num_colors)); return z_impl_led_set_color(dev, led, num_colors, color); } -#include +#include static inline int z_vrfy_led_on(const struct device *dev, uint32_t led) { K_OOPS(K_SYSCALL_DRIVER_LED(dev, on)); return z_impl_led_on((const struct device *)dev, led); } -#include +#include static inline int z_vrfy_led_off(const struct device *dev, uint32_t led) { K_OOPS(K_SYSCALL_DRIVER_LED(dev, off)); return z_impl_led_off((const struct device *)dev, led); } -#include +#include diff --git a/drivers/mbox/mbox_handlers.c b/drivers/mbox/mbox_handlers.c index 2340ab016b5b..aca4fb9b3820 100644 --- a/drivers/mbox/mbox_handlers.c +++ b/drivers/mbox/mbox_handlers.c @@ -17,7 +17,7 @@ static inline int z_vrfy_mbox_send(const struct device *dev, return z_impl_mbox_send(dev, channel_id, msg); } -#include +#include static inline int z_vrfy_mbox_mtu_get(const struct device *dev) { @@ -25,7 +25,7 @@ static inline int z_vrfy_mbox_mtu_get(const struct device *dev) return z_impl_mbox_mtu_get(dev); } -#include +#include static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev) { @@ -33,7 +33,7 @@ static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev) return z_impl_mbox_max_channels_get(dev); } -#include +#include static inline int z_vrfy_mbox_set_enabled(const struct device *dev, mbox_channel_id_t channel_id, @@ -43,4 +43,4 @@ static inline int z_vrfy_mbox_set_enabled(const struct device *dev, return z_impl_mbox_set_enabled(dev, channel_id, enabled); } -#include +#include diff --git a/drivers/misc/devmux/devmux.c b/drivers/misc/devmux/devmux.c index 653236f903de..675b635b5d08 100644 --- a/drivers/misc/devmux/devmux.c +++ b/drivers/misc/devmux/devmux.c @@ -94,7 +94,7 @@ ssize_t z_vrfy_devmux_select_get(const struct device *dev) { return z_impl_devmux_select_get(dev); } -#include +#include #endif int z_impl_devmux_select_set(struct device *dev, size_t index) @@ -124,7 +124,7 @@ int z_vrfy_devmux_select_set(struct device *dev, size_t index) { return z_impl_devmux_select_set(dev, index); } -#include +#include #endif static int devmux_init(struct device *const dev) diff --git a/drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c b/drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c index 1904db4218da..0745db600a20 100644 --- a/drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c +++ b/drivers/misc/timeaware_gpio/timeaware_gpio_handlers.c @@ -12,7 +12,7 @@ static inline int z_vrfy_tgpio_port_get_time(const struct device *port, uint64_t K_OOPS(Z_SYSCALL_MEMORY_WRITE(current_time, sizeof(uint64_t))); return z_impl_tgpio_port_get_time((const struct device *)port, (uint64_t *)current_time); } -#include +#include static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *port, uint32_t *cycles) @@ -22,7 +22,7 @@ static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *p return z_impl_tgpio_port_get_cycles_per_second((const struct device *)port, (uint32_t *)cycles); } -#include +#include static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, uint32_t pin, uint64_t start_time, uint64_t repeat_interval, @@ -32,14 +32,14 @@ static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, ui return z_impl_tgpio_pin_periodic_output((const struct device *)port, pin, start_time, repeat_interval, periodic_enable); } -#include +#include static inline int z_vrfy_tgpio_pin_disable(const struct device *port, uint32_t pin) { K_OOPS(Z_SYSCALL_DRIVER_TGPIO(port, pin_disable)); return z_impl_tgpio_pin_disable((const struct device *)port, pin); } -#include +#include static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *port, uint32_t pin, uint32_t event_polarity) @@ -48,7 +48,7 @@ static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *por return z_impl_tgpio_pin_config_ext_timestamp((const struct device *)port, pin, event_polarity); } -#include +#include static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_t pin, uint64_t *timestamp, uint64_t *event_count) @@ -57,4 +57,4 @@ static inline int z_vrfy_tgpio_pin_read_ts_ec(const struct device *port, uint32_ return z_impl_tgpio_pin_read_ts_ec((const struct device *)port, pin, (uint64_t *)timestamp, (uint64_t *)event_count); } -#include +#include diff --git a/drivers/peci/peci_handlers.c b/drivers/peci/peci_handlers.c index 64947a8743d9..c0f532a24cc0 100644 --- a/drivers/peci/peci_handlers.c +++ b/drivers/peci/peci_handlers.c @@ -15,7 +15,7 @@ static inline int z_vrfy_peci_config(const struct device *dev, return z_impl_peci_config(dev, bitrate); } -#include +#include static inline int z_vrfy_peci_enable(const struct device *dev) { @@ -23,7 +23,7 @@ static inline int z_vrfy_peci_enable(const struct device *dev) return z_impl_peci_enable(dev); } -#include +#include static inline int z_vrfy_peci_disable(const struct device *dev) { @@ -31,7 +31,7 @@ static inline int z_vrfy_peci_disable(const struct device *dev) return z_impl_peci_disable(dev); } -#include +#include static inline int z_vrfy_peci_transfer(const struct device *dev, struct peci_msg *msg) @@ -43,4 +43,4 @@ static inline int z_vrfy_peci_transfer(const struct device *dev, return z_impl_peci_transfer(dev, &msg_copy); } -#include +#include diff --git a/drivers/ps2/ps2_handlers.c b/drivers/ps2/ps2_handlers.c index 91835e85ea55..db93d93b8bbf 100644 --- a/drivers/ps2/ps2_handlers.c +++ b/drivers/ps2/ps2_handlers.c @@ -15,14 +15,14 @@ static inline int z_vrfy_ps2_config(const struct device *dev, "callback not be set from user mode")); return z_impl_ps2_config(dev, callback_isr); } -#include +#include static inline int z_vrfy_ps2_write(const struct device *dev, uint8_t value) { K_OOPS(K_SYSCALL_DRIVER_PS2(dev, write)); return z_impl_ps2_write(dev, value); } -#include +#include static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value) { @@ -30,18 +30,18 @@ static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value) K_OOPS(K_SYSCALL_MEMORY_WRITE(value, sizeof(uint8_t))); return z_impl_ps2_read(dev, value); } -#include +#include static inline int z_vrfy_ps2_enable_callback(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_PS2(dev, enable_callback)); return z_impl_ps2_enable_callback(dev); } -#include +#include static inline int z_vrfy_ps2_disable_callback(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_PS2(dev, disable_callback)); return z_impl_ps2_disable_callback(dev); } -#include +#include diff --git a/drivers/ptp_clock/ptp_clock.c b/drivers/ptp_clock/ptp_clock.c index 0ac0e5c242f7..d0db19ca3a19 100644 --- a/drivers/ptp_clock/ptp_clock.c +++ b/drivers/ptp_clock/ptp_clock.c @@ -28,5 +28,5 @@ int z_vrfy_ptp_clock_get(const struct device *dev, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/drivers/pwm/pwm_handlers.c b/drivers/pwm/pwm_handlers.c index 3ffaaa61e465..5c342a89068f 100644 --- a/drivers/pwm/pwm_handlers.c +++ b/drivers/pwm/pwm_handlers.c @@ -16,7 +16,7 @@ static inline int z_vrfy_pwm_set_cycles(const struct device *dev, return z_impl_pwm_set_cycles((const struct device *)dev, channel, period, pulse, flags); } -#include +#include static inline int z_vrfy_pwm_get_cycles_per_sec(const struct device *dev, uint32_t channel, @@ -27,7 +27,7 @@ static inline int z_vrfy_pwm_get_cycles_per_sec(const struct device *dev, return z_impl_pwm_get_cycles_per_sec((const struct device *)dev, channel, (uint64_t *)cycles); } -#include +#include #ifdef CONFIG_PWM_CAPTURE @@ -37,7 +37,7 @@ static inline int z_vrfy_pwm_enable_capture(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_PWM(dev, enable_capture)); return z_impl_pwm_enable_capture((const struct device *)dev, channel); } -#include +#include static inline int z_vrfy_pwm_disable_capture(const struct device *dev, uint32_t channel) @@ -45,7 +45,7 @@ static inline int z_vrfy_pwm_disable_capture(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_PWM(dev, disable_capture)); return z_impl_pwm_disable_capture((const struct device *)dev, channel); } -#include +#include static inline int z_vrfy_pwm_capture_cycles(const struct device *dev, uint32_t channel, pwm_flags_t flags, @@ -75,6 +75,6 @@ static inline int z_vrfy_pwm_capture_cycles(const struct device *dev, return err; } -#include +#include #endif /* CONFIG_PWM_CAPTURE */ diff --git a/drivers/retained_mem/retained_mem_handlers.c b/drivers/retained_mem/retained_mem_handlers.c index d344e37b42c3..1d0035818576 100644 --- a/drivers/retained_mem/retained_mem_handlers.c +++ b/drivers/retained_mem/retained_mem_handlers.c @@ -12,7 +12,7 @@ static inline ssize_t z_vrfy_retained_mem_size(const struct device *dev) K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_RETAINED_MEM)); return z_impl_retained_mem_size(dev); } -#include +#include static inline int z_vrfy_retained_mem_read(const struct device *dev, off_t offset, uint8_t *buffer, size_t size) @@ -21,7 +21,7 @@ static inline int z_vrfy_retained_mem_read(const struct device *dev, off_t offse K_OOPS(K_SYSCALL_MEMORY_WRITE(buffer, size)); return z_impl_retained_mem_read(dev, offset, buffer, size); } -#include +#include static inline int z_vrfy_retained_mem_write(const struct device *dev, off_t offset, const uint8_t *buffer, size_t size) @@ -30,11 +30,11 @@ static inline int z_vrfy_retained_mem_write(const struct device *dev, off_t offs K_OOPS(K_SYSCALL_MEMORY_READ(buffer, size)); return z_impl_retained_mem_write(dev, offset, buffer, size); } -#include +#include static inline int z_vrfy_retained_mem_clear(const struct device *dev) { K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_RETAINED_MEM)); return z_impl_retained_mem_clear(dev); } -#include +#include diff --git a/drivers/rtc/rtc_handlers.c b/drivers/rtc/rtc_handlers.c index 33bb90769711..499171de3a11 100644 --- a/drivers/rtc/rtc_handlers.c +++ b/drivers/rtc/rtc_handlers.c @@ -13,7 +13,7 @@ static inline int z_vrfy_rtc_set_time(const struct device *dev, const struct rtc K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time))); return z_impl_rtc_set_time(dev, timeptr); } -#include +#include static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time *timeptr) { @@ -21,7 +21,7 @@ static inline int z_vrfy_rtc_get_time(const struct device *dev, struct rtc_time K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time))); return z_impl_rtc_get_time(dev, timeptr); } -#include +#include #ifdef CONFIG_RTC_ALARM static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev, uint16_t id, @@ -31,7 +31,7 @@ static inline int z_vrfy_rtc_alarm_get_supported_fields(const struct device *dev K_OOPS(K_SYSCALL_MEMORY_WRITE(mask, sizeof(uint16_t))); return z_impl_rtc_alarm_get_supported_fields(dev, id, mask); } -#include +#include static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t id, uint16_t mask, const struct rtc_time *timeptr) @@ -40,7 +40,7 @@ static inline int z_vrfy_rtc_alarm_set_time(const struct device *dev, uint16_t i K_OOPS(K_SYSCALL_MEMORY_READ(timeptr, sizeof(struct rtc_time))); return z_impl_rtc_alarm_set_time(dev, id, mask, timeptr); } -#include +#include static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t id, uint16_t *mask, struct rtc_time *timeptr) @@ -50,14 +50,14 @@ static inline int z_vrfy_rtc_alarm_get_time(const struct device *dev, uint16_t i K_OOPS(K_SYSCALL_MEMORY_WRITE(timeptr, sizeof(struct rtc_time))); return z_impl_rtc_alarm_get_time(dev, id, mask, timeptr); } -#include +#include static inline int z_vrfy_rtc_alarm_is_pending(const struct device *dev, uint16_t id) { K_OOPS(K_SYSCALL_DRIVER_RTC(dev, alarm_is_pending)); return z_impl_rtc_alarm_is_pending(dev, id); } -#include +#include #endif /* CONFIG_RTC_ALARM */ #ifdef CONFIG_RTC_CALIBRATION @@ -67,7 +67,7 @@ static inline int z_vrfy_rtc_set_calibration(const struct device *dev, int32_t c return z_impl_rtc_set_calibration(dev, calibration); } -#include +#include static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t *calibration) { @@ -75,5 +75,5 @@ static inline int z_vrfy_rtc_get_calibration(const struct device *dev, int32_t * K_OOPS(K_SYSCALL_MEMORY_WRITE(calibration, sizeof(int32_t))); return z_impl_rtc_get_calibration(dev, calibration); } -#include +#include #endif /* CONFIG_RTC_CALIBRATION */ diff --git a/drivers/sensor/sensor_handlers.c b/drivers/sensor/sensor_handlers.c index 4643646c2155..ea82e20e9887 100644 --- a/drivers/sensor/sensor_handlers.c +++ b/drivers/sensor/sensor_handlers.c @@ -17,7 +17,7 @@ static inline int z_vrfy_sensor_attr_set(const struct device *dev, return z_impl_sensor_attr_set((const struct device *)dev, chan, attr, (const struct sensor_value *)val); } -#include +#include static inline int z_vrfy_sensor_attr_get(const struct device *dev, enum sensor_channel chan, @@ -29,14 +29,14 @@ static inline int z_vrfy_sensor_attr_get(const struct device *dev, return z_impl_sensor_attr_get((const struct device *)dev, chan, attr, (struct sensor_value *)val); } -#include +#include static inline int z_vrfy_sensor_sample_fetch(const struct device *dev) { K_OOPS(K_SYSCALL_DRIVER_SENSOR(dev, sample_fetch)); return z_impl_sensor_sample_fetch((const struct device *)dev); } -#include +#include static inline int z_vrfy_sensor_sample_fetch_chan(const struct device *dev, enum sensor_channel type) @@ -45,7 +45,7 @@ static inline int z_vrfy_sensor_sample_fetch_chan(const struct device *dev, return z_impl_sensor_sample_fetch_chan((const struct device *)dev, type); } -#include +#include static inline int z_vrfy_sensor_channel_get(const struct device *dev, enum sensor_channel chan, @@ -56,7 +56,7 @@ static inline int z_vrfy_sensor_channel_get(const struct device *dev, return z_impl_sensor_channel_get((const struct device *)dev, chan, (struct sensor_value *)val); } -#include +#include #ifdef CONFIG_SENSOR_ASYNC_API static inline int z_vrfy_sensor_get_decoder(const struct device *dev, @@ -66,7 +66,7 @@ static inline int z_vrfy_sensor_get_decoder(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_READ(decoder, sizeof(struct sensor_decoder_api))); return z_impl_sensor_get_decoder(dev, decoder); } -#include +#include static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, const struct device *sensor, @@ -78,5 +78,5 @@ static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev, K_OOPS(K_SYSCALL_MEMORY_READ(channels, sizeof(enum sensor_channel) * num_channels)); return z_impl_sensor_reconfigure_read_iodev(iodev, sensor, channels, num_channels); } -#include +#include #endif diff --git a/drivers/serial/uart_handlers.c b/drivers/serial/uart_handlers.c index 954592aca28b..24707bde7547 100644 --- a/drivers/serial/uart_handlers.c +++ b/drivers/serial/uart_handlers.c @@ -22,7 +22,7 @@ } UART_SIMPLE(err_check) -#include +#include static inline int z_vrfy_uart_poll_in(const struct device *dev, unsigned char *p_char) @@ -31,7 +31,7 @@ static inline int z_vrfy_uart_poll_in(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_WRITE(p_char, sizeof(unsigned char))); return z_impl_uart_poll_in(dev, p_char); } -#include +#include static inline int z_vrfy_uart_poll_in_u16(const struct device *dev, uint16_t *p_u16) @@ -40,7 +40,7 @@ static inline int z_vrfy_uart_poll_in_u16(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_WRITE(p_u16, sizeof(uint16_t))); return z_impl_uart_poll_in_u16(dev, p_u16); } -#include +#include static inline void z_vrfy_uart_poll_out(const struct device *dev, unsigned char out_char) @@ -48,7 +48,7 @@ static inline void z_vrfy_uart_poll_out(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_UART(dev, poll_out)); z_impl_uart_poll_out((const struct device *)dev, out_char); } -#include +#include static inline void z_vrfy_uart_poll_out_u16(const struct device *dev, uint16_t out_u16) @@ -56,7 +56,7 @@ static inline void z_vrfy_uart_poll_out_u16(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_UART(dev, poll_out)); z_impl_uart_poll_out_u16((const struct device *)dev, out_u16); } -#include +#include #ifdef CONFIG_UART_USE_RUNTIME_CONFIGURE static inline int z_vrfy_uart_config_get(const struct device *dev, @@ -67,7 +67,7 @@ static inline int z_vrfy_uart_config_get(const struct device *dev, return z_impl_uart_config_get(dev, cfg); } -#include +#include static inline int z_vrfy_uart_configure(const struct device *dev, const struct uart_config *cfg) @@ -77,7 +77,7 @@ static inline int z_vrfy_uart_configure(const struct device *dev, return z_impl_uart_configure(dev, cfg); } -#include +#include #endif #ifdef CONFIG_UART_ASYNC_API @@ -94,7 +94,7 @@ static inline int z_vrfy_uart_tx(const struct device *dev, const uint8_t *buf, K_OOPS(K_SYSCALL_MEMORY_READ(buf, len)); return z_impl_uart_tx(dev, buf, len, timeout); } -#include +#include #ifdef CONFIG_UART_WIDE_DATA static inline int z_vrfy_uart_tx_u16(const struct device *dev, @@ -105,11 +105,11 @@ static inline int z_vrfy_uart_tx_u16(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(buf, len, sizeof(uint16_t))); return z_impl_uart_tx_u16(dev, buf, len, timeout); } -#include +#include #endif UART_SIMPLE(tx_abort); -#include +#include static inline int z_vrfy_uart_rx_enable(const struct device *dev, uint8_t *buf, @@ -119,7 +119,7 @@ static inline int z_vrfy_uart_rx_enable(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_WRITE(buf, len)); return z_impl_uart_rx_enable(dev, buf, len, timeout); } -#include +#include #ifdef CONFIG_UART_WIDE_DATA static inline int z_vrfy_uart_rx_enable_u16(const struct device *dev, @@ -130,11 +130,11 @@ static inline int z_vrfy_uart_rx_enable_u16(const struct device *dev, K_OOPS(K_SYSCALL_MEMORY_ARRAY_WRITE(buf, len, sizeof(uint16_t))); return z_impl_uart_rx_enable_u16(dev, buf, len, timeout); } -#include +#include #endif UART_SIMPLE(rx_disable); -#include +#include #endif /* CONFIG_UART_ASYNC_API */ #ifdef CONFIG_UART_INTERRUPT_DRIVEN @@ -146,14 +146,14 @@ UART_SIMPLE_VOID(irq_err_enable) UART_SIMPLE_VOID(irq_err_disable) UART_SIMPLE(irq_is_pending) UART_SIMPLE(irq_update) -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #endif /* CONFIG_UART_INTERRUPT_DRIVEN */ #ifdef CONFIG_UART_LINE_CTRL @@ -164,7 +164,7 @@ static inline int z_vrfy_uart_line_ctrl_set(const struct device *dev, return z_impl_uart_line_ctrl_set((const struct device *)dev, ctrl, val); } -#include +#include static inline int z_vrfy_uart_line_ctrl_get(const struct device *dev, uint32_t ctrl, uint32_t *val) @@ -174,7 +174,7 @@ static inline int z_vrfy_uart_line_ctrl_get(const struct device *dev, return z_impl_uart_line_ctrl_get((const struct device *)dev, ctrl, (uint32_t *)val); } -#include +#include #endif /* CONFIG_UART_LINE_CTRL */ #ifdef CONFIG_UART_DRV_CMD @@ -184,5 +184,5 @@ static inline int z_vrfy_uart_drv_cmd(const struct device *dev, uint32_t cmd, K_OOPS(K_SYSCALL_DRIVER_UART(dev, drv_cmd)); return z_impl_uart_drv_cmd((const struct device *)dev, cmd, p); } -#include +#include #endif /* CONFIG_UART_DRV_CMD */ diff --git a/drivers/smbus/smbus_handlers.c b/drivers/smbus/smbus_handlers.c index b9c45e76cf76..77169fc66270 100644 --- a/drivers/smbus/smbus_handlers.c +++ b/drivers/smbus/smbus_handlers.c @@ -15,7 +15,7 @@ static inline int z_vrfy_smbus_configure(const struct device *dev, return z_impl_smbus_configure(dev, dev_config); } -#include +#include static inline int z_vrfy_smbus_get_config(const struct device *dev, uint32_t *dev_config) @@ -25,7 +25,7 @@ static inline int z_vrfy_smbus_get_config(const struct device *dev, return z_impl_smbus_get_config(dev, dev_config); } -#include +#include static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr, enum smbus_direction rw) @@ -34,7 +34,7 @@ static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr, return z_impl_smbus_quick(dev, addr, rw); } -#include +#include static inline int z_vrfy_smbus_byte_write(const struct device *dev, uint16_t addr, uint8_t byte) @@ -43,7 +43,7 @@ static inline int z_vrfy_smbus_byte_write(const struct device *dev, return z_impl_smbus_byte_write(dev, addr, byte); } -#include +#include static inline int z_vrfy_smbus_byte_read(const struct device *dev, uint16_t addr, uint8_t *byte) @@ -53,7 +53,7 @@ static inline int z_vrfy_smbus_byte_read(const struct device *dev, return z_impl_smbus_byte_read(dev, addr, byte); } -#include +#include static inline int z_vrfy_smbus_byte_data_write(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -63,7 +63,7 @@ static inline int z_vrfy_smbus_byte_data_write(const struct device *dev, return z_impl_smbus_byte_data_write(dev, addr, cmd, byte); } -#include +#include static inline int z_vrfy_smbus_byte_data_read(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -74,7 +74,7 @@ static inline int z_vrfy_smbus_byte_data_read(const struct device *dev, return z_impl_smbus_byte_data_read(dev, addr, cmd, byte); } -#include +#include static inline int z_vrfy_smbus_word_data_write(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -84,7 +84,7 @@ static inline int z_vrfy_smbus_word_data_write(const struct device *dev, return z_impl_smbus_word_data_write(dev, addr, cmd, word); } -#include +#include static inline int z_vrfy_smbus_word_data_read(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -95,7 +95,7 @@ static inline int z_vrfy_smbus_word_data_read(const struct device *dev, return z_impl_smbus_word_data_read(dev, addr, cmd, word); } -#include +#include static inline int z_vrfy_smbus_pcall(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -106,7 +106,7 @@ static inline int z_vrfy_smbus_pcall(const struct device *dev, return z_impl_smbus_pcall(dev, addr, cmd, send_word, recv_word); } -#include +#include static inline int z_vrfy_smbus_block_write(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -117,7 +117,7 @@ static inline int z_vrfy_smbus_block_write(const struct device *dev, return z_impl_smbus_block_write(dev, addr, cmd, count, buf); } -#include +#include static inline int z_vrfy_smbus_block_read(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -128,7 +128,7 @@ static inline int z_vrfy_smbus_block_read(const struct device *dev, return z_impl_smbus_block_read(dev, addr, cmd, count, buf); } -#include +#include static inline int z_vrfy_smbus_block_pcall(const struct device *dev, uint16_t addr, uint8_t cmd, @@ -142,7 +142,7 @@ static inline int z_vrfy_smbus_block_pcall(const struct device *dev, return z_impl_smbus_block_pcall(dev, addr, cmd, snd_count, snd_buf, rcv_count, rcv_buf); } -#include +#include static inline int z_vrfy_smbus_smbalert_remove_cb(const struct device *dev, struct smbus_callback *cb) @@ -151,7 +151,7 @@ static inline int z_vrfy_smbus_smbalert_remove_cb(const struct device *dev, return z_impl_smbus_smbalert_remove_cb(dev, cb); } -#include +#include static inline int z_vrfy_smbus_host_notify_remove_cb(const struct device *dev, struct smbus_callback *cb) @@ -160,4 +160,4 @@ static inline int z_vrfy_smbus_host_notify_remove_cb(const struct device *dev, return z_impl_smbus_host_notify_remove_cb(dev, cb); } -#include +#include diff --git a/drivers/spi/spi_handlers.c b/drivers/spi/spi_handlers.c index 68b362b5ed28..7d010a1e3e99 100644 --- a/drivers/spi/spi_handlers.c +++ b/drivers/spi/spi_handlers.c @@ -114,7 +114,7 @@ static inline int z_vrfy_spi_transceive(const struct device *dev, &tx_bufs_copy, &rx_bufs_copy); } -#include +#include static inline int z_vrfy_spi_release(const struct device *dev, const struct spi_config *config) @@ -123,4 +123,4 @@ static inline int z_vrfy_spi_release(const struct device *dev, K_OOPS(K_SYSCALL_DRIVER_SPI(dev, release)); return z_impl_spi_release((const struct device *)dev, config); } -#include +#include diff --git a/drivers/virtualization/virt_ivshmem_handlers.c b/drivers/virtualization/virt_ivshmem_handlers.c index 821ab16f3040..4f22a4dadd8b 100644 --- a/drivers/virtualization/virt_ivshmem_handlers.c +++ b/drivers/virtualization/virt_ivshmem_handlers.c @@ -16,7 +16,7 @@ static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev, return z_impl_ivshmem_get_mem(dev, memmap); } -#include +#include static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev) { @@ -24,7 +24,7 @@ static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev) return z_impl_ivshmem_get_id(dev); } -#include +#include static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev) { @@ -32,7 +32,7 @@ static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev) return z_impl_ivshmem_get_vectors(dev); } -#include +#include static inline int z_vrfy_ivshmem_int_peer(const struct device *dev, uint32_t peer_id, uint16_t vector) @@ -41,7 +41,7 @@ static inline int z_vrfy_ivshmem_int_peer(const struct device *dev, return z_impl_ivshmem_int_peer(dev, peer_id, vector); } -#include +#include static inline int z_vrfy_ivshmem_register_handler(const struct device *dev, struct k_poll_signal *signal, @@ -52,7 +52,7 @@ static inline int z_vrfy_ivshmem_register_handler(const struct device *dev, return z_impl_ivshmem_register_handler(dev, signal, vector); } -#include +#include #ifdef CONFIG_IVSHMEM_V2 @@ -64,7 +64,7 @@ static inline size_t z_vrfy_ivshmem_get_rw_mem_section(const struct device *dev, return z_impl_ivshmem_get_rw_mem_section(dev, memmap); } -#include +#include static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device *dev, uint32_t peer_id, @@ -75,7 +75,7 @@ static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device * return z_impl_ivshmem_get_output_mem_section(dev, peer_id, memmap); } -#include +#include static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev, uint32_t peer_id) @@ -84,7 +84,7 @@ static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev, return z_impl_ivshmem_get_state(dev, peer_id); } -#include +#include static inline int z_vrfy_ivshmem_set_state(const struct device *dev, uint32_t state) @@ -93,7 +93,7 @@ static inline int z_vrfy_ivshmem_set_state(const struct device *dev, return z_impl_ivshmem_set_state(dev, state); } -#include +#include static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev) { @@ -101,7 +101,7 @@ static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev) return z_impl_ivshmem_get_max_peers(dev); } -#include +#include static inline uint16_t z_vrfy_ivshmem_get_protocol(const struct device *dev) { @@ -109,7 +109,7 @@ static inline uint16_t z_vrfy_ivshmem_get_protocol(const struct device *dev) return z_impl_ivshmem_get_protocol(dev); } -#include +#include static inline int z_vrfy_ivshmem_enable_interrupts(const struct device *dev, bool enable) @@ -118,6 +118,6 @@ static inline int z_vrfy_ivshmem_enable_interrupts(const struct device *dev, return z_impl_ivshmem_enable_interrupts(dev, enable); } -#include +#include #endif /* CONFIG_IVSHMEM_V2 */ diff --git a/drivers/w1/w1_handlers.c b/drivers/w1/w1_handlers.c index f2299705a269..db2fb4ee1872 100644 --- a/drivers/w1/w1_handlers.c +++ b/drivers/w1/w1_handlers.c @@ -13,7 +13,7 @@ static inline int z_vrfy_w1_reset_bus(const struct device *dev) return z_impl_w1_reset_bus((const struct device *)dev); } -#include +#include static inline int z_vrfy_w1_read_bit(const struct device *dev) { @@ -21,7 +21,7 @@ static inline int z_vrfy_w1_read_bit(const struct device *dev) return z_impl_w1_read_bit((const struct device *)dev); } -#include +#include static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit) { @@ -29,7 +29,7 @@ static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit) return z_impl_w1_write_bit((const struct device *)dev, bit); } -#include +#include static inline int z_vrfy_w1_read_byte(const struct device *dev) { @@ -37,7 +37,7 @@ static inline int z_vrfy_w1_read_byte(const struct device *dev) return z_impl_w1_read_byte((const struct device *)dev); } -#include +#include static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte) { @@ -45,7 +45,7 @@ static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte) return z_impl_w1_write_byte((const struct device *)dev, (uint8_t)byte); } -#include +#include static inline int z_vrfy_w1_read_block(const struct device *dev, uint8_t *buffer, size_t len) @@ -56,7 +56,7 @@ static inline int z_vrfy_w1_read_block(const struct device *dev, return z_impl_w1_read_block((const struct device *)dev, (uint8_t *)buffer, (size_t)len); } -#include +#include static inline int z_vrfy_w1_write_block(const struct device *dev, const uint8_t *buffer, size_t len) @@ -67,7 +67,7 @@ static inline int z_vrfy_w1_write_block(const struct device *dev, return z_impl_w1_write_block((const struct device *)dev, (const uint8_t *)buffer, (size_t)len); } -#include +#include static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock) { @@ -75,7 +75,7 @@ static inline int z_vrfy_w1_change_bus_lock(const struct device *dev, bool lock) return z_impl_w1_change_bus_lock((const struct device *)dev, lock); } -#include +#include static inline int z_vrfy_w1_configure(const struct device *dev, enum w1_settings_type type, uint32_t value) @@ -84,7 +84,7 @@ static inline int z_vrfy_w1_configure(const struct device *dev, return z_impl_w1_configure(dev, type, value); } -#include +#include static inline size_t z_vrfy_w1_get_slave_count(const struct device *dev) { @@ -92,7 +92,7 @@ static inline size_t z_vrfy_w1_get_slave_count(const struct device *dev) return z_impl_w1_get_slave_count((const struct device *)dev); } -#include +#include #if CONFIG_W1_NET static inline int z_vrfy_w1_search_bus(const struct device *dev, @@ -112,5 +112,5 @@ static inline int z_vrfy_w1_search_bus(const struct device *dev, (void *)user_data); } -#include +#include #endif /* CONFIG_W1_NET */ diff --git a/drivers/watchdog/wdt_handlers.c b/drivers/watchdog/wdt_handlers.c index 2ac872f1379d..727b51251eee 100644 --- a/drivers/watchdog/wdt_handlers.c +++ b/drivers/watchdog/wdt_handlers.c @@ -13,7 +13,7 @@ static inline int z_vrfy_wdt_setup(const struct device *dev, uint8_t options) return z_impl_wdt_setup(dev, options); } -#include +#include static inline int z_vrfy_wdt_disable(const struct device *dev) { @@ -21,7 +21,7 @@ static inline int z_vrfy_wdt_disable(const struct device *dev) return z_impl_wdt_disable(dev); } -#include +#include static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id) { @@ -29,4 +29,4 @@ static inline int z_vrfy_wdt_feed(const struct device *dev, int channel_id) return z_impl_wdt_feed(dev, channel_id); } -#include +#include diff --git a/include/zephyr/arch/riscv/error.h b/include/zephyr/arch/riscv/error.h index a7c3e02b4829..208eafadbe50 100644 --- a/include/zephyr/arch/riscv/error.h +++ b/include/zephyr/arch/riscv/error.h @@ -42,7 +42,7 @@ extern "C" { __syscall void user_fault(unsigned int reason); -#include +#include #ifdef __cplusplus } diff --git a/include/zephyr/arch/x86/ia32/linker.ld b/include/zephyr/arch/x86/ia32/linker.ld index 0d1e67147c49..69ff54123269 100644 --- a/include/zephyr/arch/x86/ia32/linker.ld +++ b/include/zephyr/arch/x86/ia32/linker.ld @@ -38,7 +38,7 @@ */ #include -#include +#include #include #include diff --git a/include/zephyr/arch/xtensa/arch.h b/include/zephyr/arch/xtensa/arch.h index b5638870b4ac..41072c5c8320 100644 --- a/include/zephyr/arch/xtensa/arch.h +++ b/include/zephyr/arch/xtensa/arch.h @@ -114,7 +114,7 @@ void xtensa_arch_kernel_oops(int reason_p, void *ssf); __syscall void xtensa_user_fault(unsigned int reason); -#include +#include /* internal routine documented in C file, needed by IRQ_CONNECT() macro */ void z_irq_priority_set(uint32_t irq, uint32_t prio, uint32_t flags); diff --git a/include/zephyr/arch/xtensa/arch_inlines.h b/include/zephyr/arch/xtensa/arch_inlines.h index 4e7b52002768..e8ceb3c97339 100644 --- a/include/zephyr/arch/xtensa/arch_inlines.h +++ b/include/zephyr/arch/xtensa/arch_inlines.h @@ -11,7 +11,7 @@ #ifndef _ASMLANGUAGE #include -#include +#include /** * @brief Read a special register. diff --git a/include/zephyr/cache.h b/include/zephyr/cache.h index f5547f64afde..9dbadb8d4ee8 100644 --- a/include/zephyr/cache.h +++ b/include/zephyr/cache.h @@ -550,7 +550,7 @@ static ALWAYS_INLINE void sys_cache_flush(void *addr, size_t size) } #endif -#include +#include #ifdef __cplusplus } #endif diff --git a/include/zephyr/device.h b/include/zephyr/device.h index d2f2244cc0b8..ddc69c17fd53 100644 --- a/include/zephyr/device.h +++ b/include/zephyr/device.h @@ -96,7 +96,7 @@ typedef int16_t device_handle_t; * size. * * The ordinal used in this name can be mapped to the path by - * examining zephyr/include/generated/devicetree_generated.h. + * examining zephyr/include/generated/zephyr/devicetree_generated.h. */ #define Z_DEVICE_DT_DEV_ID(node_id) _CONCAT(dts_ord_, DT_DEP_ORD(node_id)) @@ -1085,6 +1085,6 @@ DT_FOREACH_STATUS_OKAY_NODE(Z_MAYBE_DEVICE_DECLARE_INTERNAL) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DEVICE_H_ */ diff --git a/include/zephyr/devicetree.h b/include/zephyr/devicetree.h index eb28dea874ac..c1c90220a1aa 100644 --- a/include/zephyr/devicetree.h +++ b/include/zephyr/devicetree.h @@ -16,7 +16,7 @@ #ifndef DEVICETREE_H #define DEVICETREE_H -#include +#include #include #if !defined(_LINKER) && !defined(_ASMLANGUAGE) diff --git a/include/zephyr/drivers/adc.h b/include/zephyr/drivers/adc.h index 18357cbd0141..46e016e69756 100644 --- a/include/zephyr/drivers/adc.h +++ b/include/zephyr/drivers/adc.h @@ -984,6 +984,6 @@ static inline bool adc_is_ready_dt(const struct adc_dt_spec *spec) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_H_ */ diff --git a/include/zephyr/drivers/auxdisplay.h b/include/zephyr/drivers/auxdisplay.h index de106f5016e0..a56c9b769938 100644 --- a/include/zephyr/drivers/auxdisplay.h +++ b/include/zephyr/drivers/auxdisplay.h @@ -815,6 +815,6 @@ static inline int z_impl_auxdisplay_custom_command(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_AUXDISPLAY_H_ */ diff --git a/include/zephyr/drivers/bbram.h b/include/zephyr/drivers/bbram.h index 599a3588ac81..30df6a5dd7d2 100644 --- a/include/zephyr/drivers/bbram.h +++ b/include/zephyr/drivers/bbram.h @@ -261,6 +261,6 @@ int bbram_emul_set_power_state(const struct device *dev, bool failure); * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_BBRAM_H */ diff --git a/include/zephyr/drivers/can.h b/include/zephyr/drivers/can.h index 3b0e323dff93..bf3af29ede29 100644 --- a/include/zephyr/drivers/can.h +++ b/include/zephyr/drivers/can.h @@ -1800,6 +1800,6 @@ static inline bool can_frame_matches_filter(const struct can_frame *frame, } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_CAN_H_ */ diff --git a/include/zephyr/drivers/charger.h b/include/zephyr/drivers/charger.h index 457eec939beb..6c5ebae35df3 100644 --- a/include/zephyr/drivers/charger.h +++ b/include/zephyr/drivers/charger.h @@ -405,6 +405,6 @@ static inline int z_impl_charger_charge_enable(const struct device *dev, const b } #endif /* __cplusplus */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_CHARGER_H_ */ diff --git a/include/zephyr/drivers/console/uart_mux.h b/include/zephyr/drivers/console/uart_mux.h index 56b7f80cabd7..911372ce5784 100644 --- a/include/zephyr/drivers/console/uart_mux.h +++ b/include/zephyr/drivers/console/uart_mux.h @@ -151,7 +151,7 @@ void uart_mux_enable(const struct device *dev); } #endif -#include +#include /** * @} diff --git a/include/zephyr/drivers/counter.h b/include/zephyr/drivers/counter.h index b21af71319fd..0e14ade3b517 100644 --- a/include/zephyr/drivers/counter.h +++ b/include/zephyr/drivers/counter.h @@ -678,6 +678,6 @@ static inline uint32_t z_impl_counter_get_guard_period(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_COUNTER_H_ */ diff --git a/include/zephyr/drivers/dac.h b/include/zephyr/drivers/dac.h index 57f61cce00b4..8e38432051ab 100644 --- a/include/zephyr/drivers/dac.h +++ b/include/zephyr/drivers/dac.h @@ -131,6 +131,6 @@ static inline int z_impl_dac_write_value(const struct device *dev, } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_DAC_H_ */ diff --git a/include/zephyr/drivers/dma.h b/include/zephyr/drivers/dma.h index 36a5916b080c..1338b9b131cd 100644 --- a/include/zephyr/drivers/dma.h +++ b/include/zephyr/drivers/dma.h @@ -788,6 +788,6 @@ static inline uint32_t dma_burst_index(uint32_t burst) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_DMA_H_ */ diff --git a/include/zephyr/drivers/eeprom.h b/include/zephyr/drivers/eeprom.h index 2ab4d1f60823..ff5b21cbd5c7 100644 --- a/include/zephyr/drivers/eeprom.h +++ b/include/zephyr/drivers/eeprom.h @@ -139,6 +139,6 @@ static inline size_t z_impl_eeprom_get_size(const struct device *dev) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_EEPROM_H_ */ diff --git a/include/zephyr/drivers/emul_fuel_gauge.h b/include/zephyr/drivers/emul_fuel_gauge.h index 5abd7ec4f6ff..e86c45a2f2bf 100644 --- a/include/zephyr/drivers/emul_fuel_gauge.h +++ b/include/zephyr/drivers/emul_fuel_gauge.h @@ -93,7 +93,7 @@ static inline int z_impl_emul_fuel_gauge_is_battery_cutoff(const struct emul *ta } #endif -#include +#include /** * @} diff --git a/include/zephyr/drivers/entropy.h b/include/zephyr/drivers/entropy.h index dcb0c2d5ee54..de2d0f2c2d64 100644 --- a/include/zephyr/drivers/entropy.h +++ b/include/zephyr/drivers/entropy.h @@ -127,6 +127,6 @@ static inline int entropy_get_entropy_isr(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_ENTROPY_H_ */ diff --git a/include/zephyr/drivers/espi.h b/include/zephyr/drivers/espi.h index d2e64d9c5e48..05e5cda2251b 100644 --- a/include/zephyr/drivers/espi.h +++ b/include/zephyr/drivers/espi.h @@ -1022,5 +1022,5 @@ static inline int espi_remove_callback(const struct device *dev, /** * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_ESPI_H_ */ diff --git a/include/zephyr/drivers/espi_saf.h b/include/zephyr/drivers/espi_saf.h index 31fc23c0808e..d9a25a8d654f 100644 --- a/include/zephyr/drivers/espi_saf.h +++ b/include/zephyr/drivers/espi_saf.h @@ -557,5 +557,5 @@ static inline int espi_saf_remove_callback(const struct device *dev, /** * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_ESPI_SAF_H_ */ diff --git a/include/zephyr/drivers/flash.h b/include/zephyr/drivers/flash.h index d26e521ce906..beb8838d71e9 100644 --- a/include/zephyr/drivers/flash.h +++ b/include/zephyr/drivers/flash.h @@ -513,6 +513,6 @@ static inline int z_impl_flash_ex_op(const struct device *dev, uint16_t code, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_FLASH_H_ */ diff --git a/include/zephyr/drivers/flash/flash_simulator.h b/include/zephyr/drivers/flash/flash_simulator.h index 0f7e3c5760e7..e1a201b62b3a 100644 --- a/include/zephyr/drivers/flash/flash_simulator.h +++ b/include/zephyr/drivers/flash/flash_simulator.h @@ -34,6 +34,6 @@ __syscall void *flash_simulator_get_memory(const struct device *dev, } #endif -#include +#include #endif /* __ZEPHYR_INCLUDE_DRIVERS__FLASH_SIMULATOR_H__ */ diff --git a/include/zephyr/drivers/flash/nrf_qspi_nor.h b/include/zephyr/drivers/flash/nrf_qspi_nor.h index 2c3767ad350d..87db5c75213f 100644 --- a/include/zephyr/drivers/flash/nrf_qspi_nor.h +++ b/include/zephyr/drivers/flash/nrf_qspi_nor.h @@ -35,6 +35,6 @@ __syscall void nrf_qspi_nor_xip_enable(const struct device *dev, bool enable); } #endif -#include +#include #endif /* __ZEPHYR_INCLUDE_DRIVERS_FLASH_NRF_QSPI_NOR_H__ */ diff --git a/include/zephyr/drivers/fuel_gauge.h b/include/zephyr/drivers/fuel_gauge.h index f4274ea161b9..305e97b278ff 100644 --- a/include/zephyr/drivers/fuel_gauge.h +++ b/include/zephyr/drivers/fuel_gauge.h @@ -416,6 +416,6 @@ static inline int z_impl_fuel_gauge_battery_cutoff(const struct device *dev) } #endif /* __cplusplus */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_BATTERY_H_ */ diff --git a/include/zephyr/drivers/gnss.h b/include/zephyr/drivers/gnss.h index 2c716a43a060..2777691d7d5c 100644 --- a/include/zephyr/drivers/gnss.h +++ b/include/zephyr/drivers/gnss.h @@ -493,6 +493,6 @@ static inline int z_impl_gnss_get_supported_systems(const struct device *dev, } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_GNSS_H_ */ diff --git a/include/zephyr/drivers/gpio.h b/include/zephyr/drivers/gpio.h index 1c5cd6e3390b..30c845414cb1 100644 --- a/include/zephyr/drivers/gpio.h +++ b/include/zephyr/drivers/gpio.h @@ -1828,6 +1828,6 @@ static inline int z_impl_gpio_get_pending_int(const struct device *dev) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_GPIO_H_ */ diff --git a/include/zephyr/drivers/hwinfo.h b/include/zephyr/drivers/hwinfo.h index 468356284be2..5a53292b59a7 100644 --- a/include/zephyr/drivers/hwinfo.h +++ b/include/zephyr/drivers/hwinfo.h @@ -171,6 +171,6 @@ int z_impl_hwinfo_get_supported_reset_cause(uint32_t *supported); } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_HWINFO_H_ */ diff --git a/include/zephyr/drivers/hwspinlock.h b/include/zephyr/drivers/hwspinlock.h index 9f9fd994ea25..c6e5b480026b 100644 --- a/include/zephyr/drivers/hwspinlock.h +++ b/include/zephyr/drivers/hwspinlock.h @@ -154,6 +154,6 @@ static inline uint32_t z_impl_hwspinlock_get_max_id(const struct device *dev) /** @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_HWSPINLOCK_H_ */ diff --git a/include/zephyr/drivers/i2c.h b/include/zephyr/drivers/i2c.h index 04b7d02ce15d..240d61325a34 100644 --- a/include/zephyr/drivers/i2c.h +++ b/include/zephyr/drivers/i2c.h @@ -1634,6 +1634,6 @@ static inline int i2c_reg_update_byte_dt(const struct i2c_dt_spec *spec, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_I2C_H_ */ diff --git a/include/zephyr/drivers/i2s.h b/include/zephyr/drivers/i2s.h index 987744638ab4..0889a29148e1 100644 --- a/include/zephyr/drivers/i2s.h +++ b/include/zephyr/drivers/i2s.h @@ -544,6 +544,6 @@ static inline int z_impl_i2s_trigger(const struct device *dev, } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_I2S_H_ */ diff --git a/include/zephyr/drivers/i3c.h b/include/zephyr/drivers/i3c.h index 5b93bdb23d56..14604cbe8bd9 100644 --- a/include/zephyr/drivers/i3c.h +++ b/include/zephyr/drivers/i3c.h @@ -2132,6 +2132,6 @@ int i3c_device_basic_info_get(struct i3c_device_desc *target); * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_I3C_H_ */ diff --git a/include/zephyr/drivers/ipm.h b/include/zephyr/drivers/ipm.h index 1d8ee204c4a9..fe300921fb3c 100644 --- a/include/zephyr/drivers/ipm.h +++ b/include/zephyr/drivers/ipm.h @@ -270,6 +270,6 @@ static inline void z_impl_ipm_complete(const struct device *ipmdev) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_IPM_H_ */ diff --git a/include/zephyr/drivers/kscan.h b/include/zephyr/drivers/kscan.h index 0c878df4ec3b..96c7b933a49f 100644 --- a/include/zephyr/drivers/kscan.h +++ b/include/zephyr/drivers/kscan.h @@ -139,6 +139,6 @@ static inline int z_impl_kscan_disable_callback(const struct device *dev) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_KB_SCAN_H_ */ diff --git a/include/zephyr/drivers/led.h b/include/zephyr/drivers/led.h index f63a779fa9f4..6de5c36230c5 100644 --- a/include/zephyr/drivers/led.h +++ b/include/zephyr/drivers/led.h @@ -338,6 +338,6 @@ static inline int z_impl_led_off(const struct device *dev, uint32_t led) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_LED_H_ */ diff --git a/include/zephyr/drivers/mbox.h b/include/zephyr/drivers/mbox.h index f0ca6337bfbf..3f8ffc659476 100644 --- a/include/zephyr/drivers/mbox.h +++ b/include/zephyr/drivers/mbox.h @@ -486,6 +486,6 @@ static inline int mbox_max_channels_get_dt(const struct mbox_dt_spec *spec) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_MBOX_H_ */ diff --git a/include/zephyr/drivers/mdio.h b/include/zephyr/drivers/mdio.h index fe165bcb991d..bed1b7f73ccf 100644 --- a/include/zephyr/drivers/mdio.h +++ b/include/zephyr/drivers/mdio.h @@ -237,6 +237,6 @@ static inline int z_impl_mdio_write_c45(const struct device *dev, uint8_t prtad, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_MDIO_H_ */ diff --git a/include/zephyr/drivers/misc/devmux/devmux.h b/include/zephyr/drivers/misc/devmux/devmux.h index 1772d719d96d..8b01d633a94c 100644 --- a/include/zephyr/drivers/misc/devmux/devmux.h +++ b/include/zephyr/drivers/misc/devmux/devmux.h @@ -85,6 +85,6 @@ __syscall int devmux_select_set(struct device *dev, size_t index); } #endif -#include +#include #endif /* INCLUDE_ZEPHYR_DRIVERS_MISC_DEVMUX_H_ */ diff --git a/include/zephyr/drivers/misc/timeaware_gpio/timeaware_gpio.h b/include/zephyr/drivers/misc/timeaware_gpio/timeaware_gpio.h index 2c805d923ae4..ec6fd8c1924b 100644 --- a/include/zephyr/drivers/misc/timeaware_gpio/timeaware_gpio.h +++ b/include/zephyr/drivers/misc/timeaware_gpio/timeaware_gpio.h @@ -190,6 +190,6 @@ static inline int z_impl_tgpio_pin_read_ts_ec(const struct device *dev, uint32_t } #endif -#include +#include #endif /* ZEPHYR_DRIVERS_MISC_TIMEAWARE_GPIO_TIMEAWARE_GPIO */ diff --git a/include/zephyr/drivers/peci.h b/include/zephyr/drivers/peci.h index 03970314b538..ebc110706c53 100644 --- a/include/zephyr/drivers/peci.h +++ b/include/zephyr/drivers/peci.h @@ -348,6 +348,6 @@ static inline int z_impl_peci_transfer(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_PECI_H_ */ diff --git a/include/zephyr/drivers/ps2.h b/include/zephyr/drivers/ps2.h index 80351c446618..6060ba60478f 100644 --- a/include/zephyr/drivers/ps2.h +++ b/include/zephyr/drivers/ps2.h @@ -172,6 +172,6 @@ static inline int z_impl_ps2_disable_callback(const struct device *dev) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_PS2_H_ */ diff --git a/include/zephyr/drivers/ptp_clock.h b/include/zephyr/drivers/ptp_clock.h index fb6cc8f5a51c..176c7be8fd16 100644 --- a/include/zephyr/drivers/ptp_clock.h +++ b/include/zephyr/drivers/ptp_clock.h @@ -101,6 +101,6 @@ static inline int ptp_clock_rate_adjust(const struct device *dev, double rate) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_PTP_CLOCK_H_ */ diff --git a/include/zephyr/drivers/pwm.h b/include/zephyr/drivers/pwm.h index b8a4cbd12ee0..4f21f41e8761 100644 --- a/include/zephyr/drivers/pwm.h +++ b/include/zephyr/drivers/pwm.h @@ -948,6 +948,6 @@ static inline bool pwm_is_ready_dt(const struct pwm_dt_spec *spec) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_PWM_H_ */ diff --git a/include/zephyr/drivers/reset.h b/include/zephyr/drivers/reset.h index c892b5300767..0bf2031b9ccf 100644 --- a/include/zephyr/drivers/reset.h +++ b/include/zephyr/drivers/reset.h @@ -384,6 +384,6 @@ static inline int reset_line_toggle_dt(const struct reset_dt_spec *spec) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_RESET_H_ */ diff --git a/include/zephyr/drivers/retained_mem.h b/include/zephyr/drivers/retained_mem.h index 7f7003c300b7..a7efafbc7d41 100644 --- a/include/zephyr/drivers/retained_mem.h +++ b/include/zephyr/drivers/retained_mem.h @@ -192,6 +192,6 @@ static inline int z_impl_retained_mem_clear(const struct device *dev) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_RETAINED_MEM_ */ diff --git a/include/zephyr/drivers/rtc.h b/include/zephyr/drivers/rtc.h index ac5d5c0d3506..493bbf137d4e 100644 --- a/include/zephyr/drivers/rtc.h +++ b/include/zephyr/drivers/rtc.h @@ -539,6 +539,6 @@ static inline struct tm *rtc_time_to_tm(struct rtc_time *timeptr) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_RTC_H_ */ diff --git a/include/zephyr/drivers/rtc/maxim_ds3231.h b/include/zephyr/drivers/rtc/maxim_ds3231.h index 2e8b9fe60ec0..1dd6be932b01 100644 --- a/include/zephyr/drivers/rtc/maxim_ds3231.h +++ b/include/zephyr/drivers/rtc/maxim_ds3231.h @@ -596,6 +596,6 @@ int maxim_ds3231_check_alarms(const struct device *dev); #endif /* @todo this should be syscalls/drivers/rtc/maxim_ds3231.h */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_RTC_DS3231_H_ */ diff --git a/include/zephyr/drivers/sdhc.h b/include/zephyr/drivers/sdhc.h index 7934d059896b..98f651cfeec0 100644 --- a/include/zephyr/drivers/sdhc.h +++ b/include/zephyr/drivers/sdhc.h @@ -519,5 +519,5 @@ static inline int z_impl_sdhc_disable_interrupt(const struct device *dev, } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_SDHC_H_ */ diff --git a/include/zephyr/drivers/sensor.h b/include/zephyr/drivers/sensor.h index b227fd72002f..e74c5aa14d5e 100644 --- a/include/zephyr/drivers/sensor.h +++ b/include/zephyr/drivers/sensor.h @@ -1487,6 +1487,6 @@ DT_FOREACH_STATUS_OKAY_NODE(Z_MAYBE_SENSOR_DECODER_DECLARE_INTERNAL) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_H_ */ diff --git a/include/zephyr/drivers/sip_svc/sip_svc_driver.h b/include/zephyr/drivers/sip_svc/sip_svc_driver.h index 2904986af365..07b8f7f86754 100644 --- a/include/zephyr/drivers/sip_svc/sip_svc_driver.h +++ b/include/zephyr/drivers/sip_svc/sip_svc_driver.h @@ -349,6 +349,6 @@ static inline void z_impl_sip_svc_plat_free_async_memory(const struct device *de } -#include +#include #endif /* ZEPHYR_INCLUDE_SIP_SVC_DRIVER_H_ */ diff --git a/include/zephyr/drivers/smbus.h b/include/zephyr/drivers/smbus.h index da4a5c3a9364..f0642d6d837e 100644 --- a/include/zephyr/drivers/smbus.h +++ b/include/zephyr/drivers/smbus.h @@ -1092,6 +1092,6 @@ static inline int z_impl_smbus_block_pcall(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_SMBUS_H_ */ diff --git a/include/zephyr/drivers/spi.h b/include/zephyr/drivers/spi.h index be4e983990b4..a24a63a209ad 100644 --- a/include/zephyr/drivers/spi.h +++ b/include/zephyr/drivers/spi.h @@ -1307,6 +1307,6 @@ static inline int spi_release_dt(const struct spi_dt_spec *spec) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_SPI_H_ */ diff --git a/include/zephyr/drivers/syscon.h b/include/zephyr/drivers/syscon.h index a8c5750cc4e0..6794b48eb64a 100644 --- a/include/zephyr/drivers/syscon.h +++ b/include/zephyr/drivers/syscon.h @@ -160,6 +160,6 @@ static inline int z_impl_syscon_get_size(const struct device *dev, size_t *size) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_SYSCON_H_ */ diff --git a/include/zephyr/drivers/uart.h b/include/zephyr/drivers/uart.h index 8db89e262f2b..845949ea9640 100644 --- a/include/zephyr/drivers/uart.h +++ b/include/zephyr/drivers/uart.h @@ -1671,6 +1671,6 @@ static inline int z_impl_uart_drv_cmd(const struct device *dev, uint32_t cmd, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_UART_H_ */ diff --git a/include/zephyr/drivers/usb/usb_bc12.h b/include/zephyr/drivers/usb/usb_bc12.h index 57f47553388c..791539141739 100644 --- a/include/zephyr/drivers/usb/usb_bc12.h +++ b/include/zephyr/drivers/usb/usb_bc12.h @@ -184,6 +184,6 @@ static inline int z_impl_bc12_set_result_cb(const struct device *dev, bc12_callb * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_USB_USB_BC12_H_ */ diff --git a/include/zephyr/drivers/virtualization/ivshmem.h b/include/zephyr/drivers/virtualization/ivshmem.h index 20bd1e42336e..b0662d08d552 100644 --- a/include/zephyr/drivers/virtualization/ivshmem.h +++ b/include/zephyr/drivers/virtualization/ivshmem.h @@ -340,6 +340,6 @@ static inline int z_impl_ivshmem_enable_interrupts(const struct device *dev, * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_VIRTUALIZATION_IVSHMEM_H_ */ diff --git a/include/zephyr/drivers/w1.h b/include/zephyr/drivers/w1.h index ed691f667337..a8301cda21b2 100644 --- a/include/zephyr/drivers/w1.h +++ b/include/zephyr/drivers/w1.h @@ -720,6 +720,6 @@ static inline uint16_t w1_crc16(const uint16_t seed, const uint8_t *src, /** * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_W1_H_ */ diff --git a/include/zephyr/drivers/watchdog.h b/include/zephyr/drivers/watchdog.h index 5c53d10bbc70..fdeb9ef0c348 100644 --- a/include/zephyr/drivers/watchdog.h +++ b/include/zephyr/drivers/watchdog.h @@ -253,6 +253,6 @@ static inline int z_impl_wdt_feed(const struct device *dev, int channel_id) /** @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_DRIVERS_WATCHDOG_H_ */ diff --git a/include/zephyr/internal/syscall_handler.h b/include/zephyr/internal/syscall_handler.h index 091a60615f60..62f106184322 100644 --- a/include/zephyr/internal/syscall_handler.h +++ b/include/zephyr/internal/syscall_handler.h @@ -647,7 +647,7 @@ static inline int k_object_validation_check(struct k_object *ko, #define K_SYSCALL_OBJ_NEVER_INIT(ptr, type) \ K_SYSCALL_IS_OBJ(ptr, type, _OBJ_INIT_FALSE) -#include +#include #endif /* _ASMLANGUAGE */ diff --git a/include/zephyr/kernel.h b/include/zephyr/kernel.h index 06bbfa1e6917..f4b2cbe1bc2c 100644 --- a/include/zephyr/kernel.h +++ b/include/zephyr/kernel.h @@ -6153,7 +6153,7 @@ void k_sys_runtime_stats_disable(void); #endif #include -#include +#include #endif /* !_ASMLANGUAGE */ diff --git a/include/zephyr/kernel/mm/demand_paging.h b/include/zephyr/kernel/mm/demand_paging.h index 343c10478b93..f88f5c2067e9 100644 --- a/include/zephyr/kernel/mm/demand_paging.h +++ b/include/zephyr/kernel/mm/demand_paging.h @@ -203,7 +203,7 @@ __syscall void k_mem_paging_histogram_backing_store_page_in_get( __syscall void k_mem_paging_histogram_backing_store_page_out_get( struct k_mem_paging_histogram_t *hist); -#include +#include /** @} */ diff --git a/include/zephyr/linker/kobject-data.ld b/include/zephyr/linker/kobject-data.ld index 26720dbff338..573680b235e7 100644 --- a/include/zephyr/linker/kobject-data.ld +++ b/include/zephyr/linker/kobject-data.ld @@ -30,7 +30,7 @@ */ #if defined(LINKER_ZEPHYR_PREBUILT) -#include +#include #ifdef CONFIG_DYNAMIC_OBJECTS /* This is produced by gperf. Put a place holder here @@ -45,7 +45,7 @@ #endif /* LINKER_ZEPHYR_PREBUILT */ #if defined(LINKER_ZEPHYR_FINAL) -#include +#include #ifdef KOBJECT_DATA_ALIGN . = ALIGN(KOBJECT_DATA_ALIGN); diff --git a/include/zephyr/linker/kobject-priv-stacks.ld b/include/zephyr/linker/kobject-priv-stacks.ld index 0da28763a2bf..53bd508927e6 100644 --- a/include/zephyr/linker/kobject-priv-stacks.ld +++ b/include/zephyr/linker/kobject-priv-stacks.ld @@ -20,7 +20,7 @@ */ #if defined(LINKER_ZEPHYR_PREBUILT) -#include +#include #ifdef KOBJECT_PRIV_STACKS_ALIGN . = ALIGN(KOBJECT_PRIV_STACKS_ALIGN); . = . + KOBJECT_PRIV_STACKS_SZ; @@ -28,7 +28,7 @@ #endif /* LINKER_ZEPHYR_PREBUILT */ #if defined(LINKER_ZEPHYR_FINAL) -#include +#include #ifdef KOBJECT_PRIV_STACKS_ALIGN . = ALIGN(KOBJECT_PRIV_STACKS_ALIGN); #endif diff --git a/include/zephyr/linker/kobject-rom.ld b/include/zephyr/linker/kobject-rom.ld index 02c31e89987c..1bb6ee10c15d 100644 --- a/include/zephyr/linker/kobject-rom.ld +++ b/include/zephyr/linker/kobject-rom.ld @@ -16,7 +16,7 @@ */ #if defined(LINKER_ZEPHYR_PREBUILT) -#include +#include #ifdef KOBJECT_RODATA_ALIGN . = ALIGN(KOBJECT_RODATA_ALIGN); @@ -29,7 +29,7 @@ #endif /* LINKER_ZEPHYR_PREBUILT */ #if defined(LINKER_ZEPHYR_FINAL) -#include +#include #ifdef KOBJECT_RODATA_ALIGN . = ALIGN(KOBJECT_RODATA_ALIGN); diff --git a/include/zephyr/linker/linker-defs.h b/include/zephyr/linker/linker-defs.h index ec37a3718d5e..8a1db6da081f 100644 --- a/include/zephyr/linker/linker-defs.h +++ b/include/zephyr/linker/linker-defs.h @@ -23,7 +23,7 @@ #include #include #include -#include +#include /* We need to dummy out DT_NODE_HAS_STATUS when building the unittests. * Including devicetree.h would require generating dummy header files diff --git a/include/zephyr/logging/log_ctrl.h b/include/zephyr/logging/log_ctrl.h index eb8cb5606556..26d09589027b 100644 --- a/include/zephyr/logging/log_ctrl.h +++ b/include/zephyr/logging/log_ctrl.h @@ -301,7 +301,7 @@ int log_mem_get_max_usage(uint32_t *max); #define LOG_PROCESS() false #endif -#include +#include /** * @} diff --git a/include/zephyr/logging/log_msg.h b/include/zephyr/logging/log_msg.h index 2f6b3a04616d..ed491c9e7422 100644 --- a/include/zephyr/logging/log_msg.h +++ b/include/zephyr/logging/log_msg.h @@ -857,7 +857,7 @@ static inline uint8_t *log_msg_get_package(struct log_msg *msg, size_t *len) * @} */ -#include +#include #ifdef __cplusplus } diff --git a/include/zephyr/mgmt/updatehub.h b/include/zephyr/mgmt/updatehub.h index 57e4b82b5dbe..c37ba4239006 100644 --- a/include/zephyr/mgmt/updatehub.h +++ b/include/zephyr/mgmt/updatehub.h @@ -98,5 +98,5 @@ __syscall int updatehub_reboot(void); * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_MGMT_UPDATEHUB_H_ */ diff --git a/include/zephyr/net/ethernet.h b/include/zephyr/net/ethernet.h index f0d1b1b6e86c..6376a36ee3c4 100644 --- a/include/zephyr/net/ethernet.h +++ b/include/zephyr/net/ethernet.h @@ -1334,6 +1334,6 @@ static inline bool net_eth_type_is_wifi(struct net_if *iface) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_NET_ETHERNET_H_ */ diff --git a/include/zephyr/net/net_if.h b/include/zephyr/net/net_if.h index b1a2ca8925a1..0b69dde2fe70 100644 --- a/include/zephyr/net/net_if.h +++ b/include/zephyr/net/net_if.h @@ -3358,7 +3358,7 @@ struct net_if_api { } #endif -#include +#include /** * @} diff --git a/include/zephyr/net/net_ip.h b/include/zephyr/net/net_ip.h index 4764ba944569..2e02744a72fa 100644 --- a/include/zephyr/net/net_ip.h +++ b/include/zephyr/net/net_ip.h @@ -1805,7 +1805,7 @@ static inline int net_ipv6_pe_del_filter(struct in6_addr *addr) } #endif -#include +#include /** * @} diff --git a/include/zephyr/net/socket.h b/include/zephyr/net/socket.h index 1ec1a9a12dfb..d8983e082ef3 100644 --- a/include/zephyr/net/socket.h +++ b/include/zephyr/net/socket.h @@ -1378,7 +1378,7 @@ struct net_socket_register { } #endif -#include +#include /** * @} diff --git a/include/zephyr/net/socket_select.h b/include/zephyr/net/socket_select.h index 89a59aebc5e4..23034d31d790 100644 --- a/include/zephyr/net/socket_select.h +++ b/include/zephyr/net/socket_select.h @@ -153,7 +153,7 @@ static inline void FD_SET(int fd, zsock_fd_set *set) } #endif -#include +#include /** * @} diff --git a/include/zephyr/net/socket_service.h b/include/zephyr/net/socket_service.h index b1037bf07c3c..c5060eb40858 100644 --- a/include/zephyr/net/socket_service.h +++ b/include/zephyr/net/socket_service.h @@ -241,7 +241,7 @@ void net_socket_service_foreach(net_socket_service_cb_t cb, void *user_data); } #endif -#include +#include /** * @} diff --git a/include/zephyr/random/random.h b/include/zephyr/random/random.h index bb7f502a3d1e..293b8d00a867 100644 --- a/include/zephyr/random/random.h +++ b/include/zephyr/random/random.h @@ -147,5 +147,5 @@ static inline uint64_t sys_rand64_get(void) * @} */ -#include +#include #endif /* ZEPHYR_INCLUDE_RANDOM_RANDOM_H_ */ diff --git a/include/zephyr/rtio/rtio.h b/include/zephyr/rtio/rtio.h index f5bb6fcd4840..75ab879f9499 100644 --- a/include/zephyr/rtio/rtio.h +++ b/include/zephyr/rtio/rtio.h @@ -1485,6 +1485,6 @@ static inline int z_impl_rtio_submit(struct rtio *r, uint32_t wait_count) } #endif -#include +#include #endif /* ZEPHYR_INCLUDE_RTIO_RTIO_H_ */ diff --git a/include/zephyr/sys/atomic_c.h b/include/zephyr/sys/atomic_c.h index f1e23caf3625..df36036a8773 100644 --- a/include/zephyr/sys/atomic_c.h +++ b/include/zephyr/sys/atomic_c.h @@ -85,7 +85,7 @@ __syscall atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value); #define _REMOVE_DISABLE_SYSCALL_TRACING #endif -#include +#include #ifdef _REMOVE_DISABLE_SYSCALL_TRACING #undef DISABLE_SYSCALL_TRACING diff --git a/include/zephyr/sys/errno_private.h b/include/zephyr/sys/errno_private.h index 60df9622bb81..5adba7bfc08b 100644 --- a/include/zephyr/sys/errno_private.h +++ b/include/zephyr/sys/errno_private.h @@ -50,7 +50,7 @@ __syscall int *z_errno(void); #endif #if !defined(CONFIG_ERRNO_IN_TLS) && !defined(CONFIG_LIBC_ERRNO) -#include +#include #endif /* CONFIG_ERRNO_IN_TLS */ #endif /* ZEPHYR_INCLUDE_SYS_ERRNO_PRIVATE_H_ */ diff --git a/include/zephyr/sys/kobject.h b/include/zephyr/sys/kobject.h index 50577ac7c02d..9fe9b5ad212c 100644 --- a/include/zephyr/sys/kobject.h +++ b/include/zephyr/sys/kobject.h @@ -36,7 +36,7 @@ enum k_objects { * generated during build by gen_kobject_list.py. It includes * basic kernel objects (e.g. pipes and mutexes) and driver types. */ -#include +#include /** @endcond */ @@ -283,7 +283,7 @@ static inline void k_object_free(void *obj) /** @} */ -#include +#include #ifdef __cplusplus } #endif diff --git a/include/zephyr/sys/libc-hooks.h b/include/zephyr/sys/libc-hooks.h index e00efc6de268..b9c38bb3c4ad 100644 --- a/include/zephyr/sys/libc-hooks.h +++ b/include/zephyr/sys/libc-hooks.h @@ -109,7 +109,7 @@ extern struct k_mem_partition z_libc_partition; #endif #endif /* CONFIG_USERSPACE */ -#include +#include /* C library memory partitions */ #define Z_LIBC_DATA K_APP_DMEM(z_libc_partition) diff --git a/include/zephyr/sys/mutex.h b/include/zephyr/sys/mutex.h index 1a7968e83cbb..e34cc90d8d90 100644 --- a/include/zephyr/sys/mutex.h +++ b/include/zephyr/sys/mutex.h @@ -128,7 +128,7 @@ static inline int sys_mutex_unlock(struct sys_mutex *mutex) return z_sys_mutex_kernel_unlock(mutex); } -#include +#include #else #include diff --git a/include/zephyr/sys/time_units.h b/include/zephyr/sys/time_units.h index e088099ef913..f4deb93fb399 100644 --- a/include/zephyr/sys/time_units.h +++ b/include/zephyr/sys/time_units.h @@ -2070,7 +2070,7 @@ static inline int z_impl_sys_clock_hw_cycles_per_sec_runtime_get(void) z_tmcvt_64(t, Z_HZ_ticks, Z_HZ_cyc, Z_CCYC, true, false) #if defined(CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME) -#include +#include #endif #undef TIME_CONSTEXPR diff --git a/include/zephyr/syscall.h b/include/zephyr/syscall.h index 73a3a648d237..35cb36554a0a 100644 --- a/include/zephyr/syscall.h +++ b/include/zephyr/syscall.h @@ -8,7 +8,7 @@ #ifndef ZEPHYR_INCLUDE_SYSCALL_H_ #define ZEPHYR_INCLUDE_SYSCALL_H_ -#include +#include #include #include diff --git a/include/zephyr/usb/usb_ch9.h b/include/zephyr/usb/usb_ch9.h index 8fe33f46b717..dccc7445daa6 100644 --- a/include/zephyr/usb/usb_ch9.h +++ b/include/zephyr/usb/usb_ch9.h @@ -12,7 +12,7 @@ * and follows, with few exceptions, the USB Specification 2.0. */ -#include +#include #include #include #include diff --git a/kernel/atomic_c.c b/kernel/atomic_c.c index c873192af74c..70fff83edb64 100644 --- a/kernel/atomic_c.c +++ b/kernel/atomic_c.c @@ -112,7 +112,7 @@ bool z_vrfy_atomic_cas(atomic_t *target, atomic_val_t old_value, return z_impl_atomic_cas((atomic_t *)target, old_value, new_value); } -#include +#include #endif /* CONFIG_USERSPACE */ bool z_impl_atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, @@ -142,7 +142,7 @@ static inline bool z_vrfy_atomic_ptr_cas(atomic_ptr_t *target, return z_impl_atomic_ptr_cas(target, old_value, new_value); } -#include +#include #endif /* CONFIG_USERSPACE */ /** @@ -280,7 +280,7 @@ static inline atomic_ptr_val_t z_vrfy_atomic_ptr_set(atomic_ptr_t *target, return z_impl_atomic_ptr_set(target, value); } -#include +#include #endif /* CONFIG_USERSPACE */ /** @@ -404,11 +404,11 @@ atomic_val_t z_impl_atomic_nand(atomic_t *target, atomic_val_t value) ATOMIC_SYSCALL_HANDLER_TARGET_VALUE(atomic_nand); #ifdef CONFIG_USERSPACE -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/banner.c b/kernel/banner.c index dc2506fb9b15..d2a431edd967 100644 --- a/kernel/banner.c +++ b/kernel/banner.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include #if defined(CONFIG_BOOT_DELAY) && (CONFIG_BOOT_DELAY > 0) #define DELAY_STR STRINGIFY(CONFIG_BOOT_DELAY) diff --git a/kernel/busy_wait.c b/kernel/busy_wait.c index cb7c993437d0..da0ea149e102 100644 --- a/kernel/busy_wait.c +++ b/kernel/busy_wait.c @@ -52,5 +52,5 @@ static inline void z_vrfy_k_busy_wait(uint32_t usec_to_wait) { z_impl_k_busy_wait(usec_to_wait); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/condvar.c b/kernel/condvar.c index 2430523cdb90..b8d0df95341f 100644 --- a/kernel/condvar.c +++ b/kernel/condvar.c @@ -38,7 +38,7 @@ int z_vrfy_k_condvar_init(struct k_condvar *condvar) K_OOPS(K_SYSCALL_OBJ_INIT(condvar, K_OBJ_CONDVAR)); return z_impl_k_condvar_init(condvar); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_condvar_signal(struct k_condvar *condvar) @@ -70,7 +70,7 @@ int z_vrfy_k_condvar_signal(struct k_condvar *condvar) K_OOPS(K_SYSCALL_OBJ(condvar, K_OBJ_CONDVAR)); return z_impl_k_condvar_signal(condvar); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_condvar_broadcast(struct k_condvar *condvar) @@ -103,7 +103,7 @@ int z_vrfy_k_condvar_broadcast(struct k_condvar *condvar) K_OOPS(K_SYSCALL_OBJ(condvar, K_OBJ_CONDVAR)); return z_impl_k_condvar_broadcast(condvar); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_condvar_wait(struct k_condvar *condvar, struct k_mutex *mutex, @@ -132,7 +132,7 @@ int z_vrfy_k_condvar_wait(struct k_condvar *condvar, struct k_mutex *mutex, K_OOPS(K_SYSCALL_OBJ(mutex, K_OBJ_MUTEX)); return z_impl_k_condvar_wait(condvar, mutex, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_OBJ_CORE_CONDVAR diff --git a/kernel/device.c b/kernel/device.c index 4b19d247c009..45806fc9e76c 100644 --- a/kernel/device.c +++ b/kernel/device.c @@ -66,7 +66,7 @@ static inline const struct device *z_vrfy_device_get_binding(const char *name) return z_impl_device_get_binding(name_copy); } -#include +#include static inline bool z_vrfy_device_is_ready(const struct device *dev) { @@ -74,7 +74,7 @@ static inline bool z_vrfy_device_is_ready(const struct device *dev) return z_impl_device_is_ready(dev); } -#include +#include #endif /* CONFIG_USERSPACE */ size_t z_device_get_all_static(struct device const **devices) diff --git a/kernel/dynamic.c b/kernel/dynamic.c index 89f80933dd0f..a9ec33d87bdc 100644 --- a/kernel/dynamic.c +++ b/kernel/dynamic.c @@ -105,7 +105,7 @@ static inline k_thread_stack_t *z_vrfy_k_thread_stack_alloc(size_t size, int fla { return z_impl_k_thread_stack_alloc(size, flags); } -#include +#include #endif /* CONFIG_USERSPACE */ static void dyn_cb(const struct k_thread *thread, void *user_data) @@ -177,5 +177,5 @@ static inline int z_vrfy_k_thread_stack_free(k_thread_stack_t *stack) return z_impl_k_thread_stack_free(stack); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/errno.c b/kernel/errno.c index 645597f02c7e..f268bb72fdf9 100644 --- a/kernel/errno.c +++ b/kernel/errno.c @@ -43,7 +43,7 @@ static inline int *z_vrfy_z_errno(void) { return z_impl_z_errno(); } -#include +#include #else int *z_impl_z_errno(void) diff --git a/kernel/events.c b/kernel/events.c index 082f418cbe05..d2950e43c4f2 100644 --- a/kernel/events.c +++ b/kernel/events.c @@ -71,7 +71,7 @@ void z_vrfy_k_event_init(struct k_event *event) K_OOPS(K_SYSCALL_OBJ_NEVER_INIT(event, K_OBJ_EVENT)); z_impl_k_event_init(event); } -#include +#include #endif /* CONFIG_USERSPACE */ /** @@ -190,7 +190,7 @@ uint32_t z_vrfy_k_event_post(struct k_event *event, uint32_t events) K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_post(event, events); } -#include +#include #endif /* CONFIG_USERSPACE */ uint32_t z_impl_k_event_set(struct k_event *event, uint32_t events) @@ -204,7 +204,7 @@ uint32_t z_vrfy_k_event_set(struct k_event *event, uint32_t events) K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_set(event, events); } -#include +#include #endif /* CONFIG_USERSPACE */ uint32_t z_impl_k_event_set_masked(struct k_event *event, uint32_t events, @@ -220,7 +220,7 @@ uint32_t z_vrfy_k_event_set_masked(struct k_event *event, uint32_t events, K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_set_masked(event, events, events_mask); } -#include +#include #endif /* CONFIG_USERSPACE */ uint32_t z_impl_k_event_clear(struct k_event *event, uint32_t events) @@ -234,7 +234,7 @@ uint32_t z_vrfy_k_event_clear(struct k_event *event, uint32_t events) K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_clear(event, events); } -#include +#include #endif /* CONFIG_USERSPACE */ static uint32_t k_event_wait_internal(struct k_event *event, uint32_t events, @@ -320,7 +320,7 @@ uint32_t z_vrfy_k_event_wait(struct k_event *event, uint32_t events, K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_wait(event, events, reset, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ /** @@ -342,7 +342,7 @@ uint32_t z_vrfy_k_event_wait_all(struct k_event *event, uint32_t events, K_OOPS(K_SYSCALL_OBJ(event, K_OBJ_EVENT)); return z_impl_k_event_wait_all(event, events, reset, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_OBJ_CORE_EVENT diff --git a/kernel/float.c b/kernel/float.c index 69e806d3cd6e..fa81edf8829d 100644 --- a/kernel/float.c +++ b/kernel/float.c @@ -35,13 +35,13 @@ static inline int z_vrfy_k_float_disable(struct k_thread *thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_float_disable(thread); } -#include +#include static inline int z_vrfy_k_float_enable(struct k_thread *thread, unsigned int options) { K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_float_enable(thread, options); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/futex.c b/kernel/futex.c index 813ce0f62e3f..86acc0c74a02 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -60,7 +60,7 @@ static inline int z_vrfy_k_futex_wake(struct k_futex *futex, bool wake_all) return z_impl_k_futex_wake(futex, wake_all); } -#include +#include int z_impl_k_futex_wait(struct k_futex *futex, int expected, k_timeout_t timeout) @@ -98,4 +98,4 @@ static inline int z_vrfy_k_futex_wait(struct k_futex *futex, int expected, return z_impl_k_futex_wait(futex, expected, timeout); } -#include +#include diff --git a/kernel/include/kernel_offsets.h b/kernel/include/kernel_offsets.h index 41b310a08188..a7b1f4e00d37 100644 --- a/kernel/include/kernel_offsets.h +++ b/kernel/include/kernel_offsets.h @@ -10,7 +10,7 @@ #ifndef ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ #define ZEPHYR_KERNEL_INCLUDE_KERNEL_OFFSETS_H_ -#include +#include /* All of this is build time magic, but LCOV gets confused. Disable coverage * for this whole file. diff --git a/kernel/include/offsets_short.h b/kernel/include/offsets_short.h index 13e1afe6dfca..373d7e02ec98 100644 --- a/kernel/include/offsets_short.h +++ b/kernel/include/offsets_short.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_ #define ZEPHYR_KERNEL_INCLUDE_OFFSETS_SHORT_H_ -#include +#include #include /* kernel */ diff --git a/kernel/init.c b/kernel/init.c index 00765f5483a8..998cb938f162 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -395,7 +395,7 @@ static inline int z_vrfy_device_init(const struct device *dev) return z_impl_device_init(dev); } -#include +#include #endif extern void boot_banner(void); diff --git a/kernel/msg_q.c b/kernel/msg_q.c index 5214902b1653..0c461095c6b0 100644 --- a/kernel/msg_q.c +++ b/kernel/msg_q.c @@ -97,7 +97,7 @@ int z_vrfy_k_msgq_alloc_init(struct k_msgq *msgq, size_t msg_size, return z_impl_k_msgq_alloc_init(msgq, msg_size, max_msgs); } -#include +#include #endif /* CONFIG_USERSPACE */ int k_msgq_cleanup(struct k_msgq *msgq) @@ -192,7 +192,7 @@ static inline int z_vrfy_k_msgq_put(struct k_msgq *msgq, const void *data, return z_impl_k_msgq_put(msgq, data, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_msgq_get_attrs(struct k_msgq *msgq, struct k_msgq_attrs *attrs) @@ -210,7 +210,7 @@ static inline void z_vrfy_k_msgq_get_attrs(struct k_msgq *msgq, K_OOPS(K_SYSCALL_MEMORY_WRITE(attrs, sizeof(struct k_msgq_attrs))); z_impl_k_msgq_get_attrs(msgq, attrs); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_msgq_get(struct k_msgq *msgq, void *data, k_timeout_t timeout) @@ -290,7 +290,7 @@ static inline int z_vrfy_k_msgq_get(struct k_msgq *msgq, void *data, return z_impl_k_msgq_get(msgq, data, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_msgq_peek(struct k_msgq *msgq, void *data) @@ -324,7 +324,7 @@ static inline int z_vrfy_k_msgq_peek(struct k_msgq *msgq, void *data) return z_impl_k_msgq_peek(msgq, data); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_msgq_peek_at(struct k_msgq *msgq, void *data, uint32_t idx) @@ -370,7 +370,7 @@ static inline int z_vrfy_k_msgq_peek_at(struct k_msgq *msgq, void *data, uint32_ return z_impl_k_msgq_peek_at(msgq, data, idx); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_msgq_purge(struct k_msgq *msgq) @@ -401,21 +401,21 @@ static inline void z_vrfy_k_msgq_purge(struct k_msgq *msgq) K_OOPS(K_SYSCALL_OBJ(msgq, K_OBJ_MSGQ)); z_impl_k_msgq_purge(msgq); } -#include +#include static inline uint32_t z_vrfy_k_msgq_num_free_get(struct k_msgq *msgq) { K_OOPS(K_SYSCALL_OBJ(msgq, K_OBJ_MSGQ)); return z_impl_k_msgq_num_free_get(msgq); } -#include +#include static inline uint32_t z_vrfy_k_msgq_num_used_get(struct k_msgq *msgq) { K_OOPS(K_SYSCALL_OBJ(msgq, K_OBJ_MSGQ)); return z_impl_k_msgq_num_used_get(msgq); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/mutex.c b/kernel/mutex.c index 3635e7624ca0..d60b08c4e81b 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -76,7 +76,7 @@ static inline int z_vrfy_k_mutex_init(struct k_mutex *mutex) K_OOPS(K_SYSCALL_OBJ_INIT(mutex, K_OBJ_MUTEX)); return z_impl_k_mutex_init(mutex); } -#include +#include #endif /* CONFIG_USERSPACE */ static int32_t new_prio_for_inheritance(int32_t target, int32_t limit) @@ -205,7 +205,7 @@ static inline int z_vrfy_k_mutex_lock(struct k_mutex *mutex, K_OOPS(K_SYSCALL_OBJ(mutex, K_OBJ_MUTEX)); return z_impl_k_mutex_lock(mutex, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_mutex_unlock(struct k_mutex *mutex) @@ -289,7 +289,7 @@ static inline int z_vrfy_k_mutex_unlock(struct k_mutex *mutex) K_OOPS(K_SYSCALL_OBJ(mutex, K_OBJ_MUTEX)); return z_impl_k_mutex_unlock(mutex); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_OBJ_CORE_MUTEX diff --git a/kernel/paging/statistics.c b/kernel/paging/statistics.c index 06e867cd218b..c0617af47c07 100644 --- a/kernel/paging/statistics.c +++ b/kernel/paging/statistics.c @@ -105,7 +105,7 @@ void z_vrfy_k_mem_paging_stats_get(struct k_mem_paging_stats_t *stats) K_OOPS(K_SYSCALL_MEMORY_WRITE(stats, sizeof(*stats))); z_impl_k_mem_paging_stats_get(stats); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_DEMAND_PAGING_THREAD_STATS @@ -129,7 +129,7 @@ void z_vrfy_k_mem_paging_thread_stats_get(struct k_thread *thread, K_OOPS(K_SYSCALL_MEMORY_WRITE(stats, sizeof(*stats))); z_impl_k_mem_paging_thread_stats_get(thread, stats); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_DEMAND_PAGING_THREAD_STATS */ @@ -227,7 +227,7 @@ void z_vrfy_k_mem_paging_histogram_eviction_get( K_OOPS(K_SYSCALL_MEMORY_WRITE(hist, sizeof(*hist))); z_impl_k_mem_paging_histogram_eviction_get(hist); } -#include +#include static inline void z_vrfy_k_mem_paging_histogram_backing_store_page_in_get( @@ -236,7 +236,7 @@ void z_vrfy_k_mem_paging_histogram_backing_store_page_in_get( K_OOPS(K_SYSCALL_MEMORY_WRITE(hist, sizeof(*hist))); z_impl_k_mem_paging_histogram_backing_store_page_in_get(hist); } -#include +#include static inline void z_vrfy_k_mem_paging_histogram_backing_store_page_out_get( @@ -245,7 +245,7 @@ void z_vrfy_k_mem_paging_histogram_backing_store_page_out_get( K_OOPS(K_SYSCALL_MEMORY_WRITE(hist, sizeof(*hist))); z_impl_k_mem_paging_histogram_backing_store_page_out_get(hist); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM */ diff --git a/kernel/pipes.c b/kernel/pipes.c index d91a4d6b7c1a..a81393c508d1 100644 --- a/kernel/pipes.c +++ b/kernel/pipes.c @@ -93,7 +93,7 @@ static inline int z_vrfy_k_pipe_alloc_init(struct k_pipe *pipe, size_t size) return z_impl_k_pipe_alloc_init(pipe, size); } -#include +#include #endif /* CONFIG_USERSPACE */ static inline void handle_poll_events(struct k_pipe *pipe) @@ -126,7 +126,7 @@ void z_vrfy_k_pipe_flush(struct k_pipe *pipe) z_impl_k_pipe_flush(pipe); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_pipe_buffer_flush(struct k_pipe *pipe) @@ -525,7 +525,7 @@ int z_vrfy_k_pipe_put(struct k_pipe *pipe, const void *data, bytes_to_write, bytes_written, min_xfer, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ static int pipe_get_internal(k_spinlock_key_t key, struct k_pipe *pipe, @@ -733,7 +733,7 @@ int z_vrfy_k_pipe_get(struct k_pipe *pipe, void *data, size_t bytes_to_read, bytes_to_read, bytes_read, min_xfer, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ size_t z_impl_k_pipe_read_avail(struct k_pipe *pipe) @@ -770,7 +770,7 @@ size_t z_vrfy_k_pipe_read_avail(struct k_pipe *pipe) return z_impl_k_pipe_read_avail(pipe); } -#include +#include #endif /* CONFIG_USERSPACE */ size_t z_impl_k_pipe_write_avail(struct k_pipe *pipe) @@ -807,7 +807,7 @@ size_t z_vrfy_k_pipe_write_avail(struct k_pipe *pipe) return z_impl_k_pipe_write_avail(pipe); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_OBJ_CORE_PIPE diff --git a/kernel/poll.c b/kernel/poll.c index 185aba609c2e..502e97537b9b 100644 --- a/kernel/poll.c +++ b/kernel/poll.c @@ -434,7 +434,7 @@ static inline int z_vrfy_k_poll(struct k_poll_event *events, k_free(events_copy); K_OOPS(1); } -#include +#include #endif /* CONFIG_USERSPACE */ /* must be called with interrupts locked */ @@ -493,7 +493,7 @@ static inline void z_vrfy_k_poll_signal_init(struct k_poll_signal *sig) K_OOPS(K_SYSCALL_OBJ_INIT(sig, K_OBJ_POLL_SIGNAL)); z_impl_k_poll_signal_init(sig); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_poll_signal_reset(struct k_poll_signal *sig) @@ -521,7 +521,7 @@ void z_vrfy_k_poll_signal_check(struct k_poll_signal *sig, K_OOPS(K_SYSCALL_MEMORY_WRITE(result, sizeof(int))); z_impl_k_poll_signal_check(sig, signaled, result); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_poll_signal_raise(struct k_poll_signal *sig, int result) @@ -556,14 +556,14 @@ static inline int z_vrfy_k_poll_signal_raise(struct k_poll_signal *sig, K_OOPS(K_SYSCALL_OBJ(sig, K_OBJ_POLL_SIGNAL)); return z_impl_k_poll_signal_raise(sig, result); } -#include +#include static inline void z_vrfy_k_poll_signal_reset(struct k_poll_signal *sig) { K_OOPS(K_SYSCALL_OBJ(sig, K_OBJ_POLL_SIGNAL)); z_impl_k_poll_signal_reset(sig); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/queue.c b/kernel/queue.c index fcccde56f931..a3c99d69e406 100644 --- a/kernel/queue.c +++ b/kernel/queue.c @@ -75,7 +75,7 @@ static inline void z_vrfy_k_queue_init(struct k_queue *queue) K_OOPS(K_SYSCALL_OBJ_NEVER_INIT(queue, K_OBJ_QUEUE)); z_impl_k_queue_init(queue); } -#include +#include #endif /* CONFIG_USERSPACE */ static void prepare_thread_to_run(struct k_thread *thread, void *data) @@ -117,7 +117,7 @@ static inline void z_vrfy_k_queue_cancel_wait(struct k_queue *queue) K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); z_impl_k_queue_cancel_wait(queue); } -#include +#include #endif /* CONFIG_USERSPACE */ static int32_t queue_insert(struct k_queue *queue, void *prev, void *data, @@ -220,7 +220,7 @@ static inline int32_t z_vrfy_k_queue_alloc_append(struct k_queue *queue, K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_alloc_append(queue, data); } -#include +#include #endif /* CONFIG_USERSPACE */ int32_t z_impl_k_queue_alloc_prepend(struct k_queue *queue, void *data) @@ -241,7 +241,7 @@ static inline int32_t z_vrfy_k_queue_alloc_prepend(struct k_queue *queue, K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_alloc_prepend(queue, data); } -#include +#include #endif /* CONFIG_USERSPACE */ int k_queue_append_list(struct k_queue *queue, void *head, void *tail) @@ -408,28 +408,28 @@ static inline void *z_vrfy_k_queue_get(struct k_queue *queue, K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_get(queue, timeout); } -#include +#include static inline int z_vrfy_k_queue_is_empty(struct k_queue *queue) { K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_is_empty(queue); } -#include +#include static inline void *z_vrfy_k_queue_peek_head(struct k_queue *queue) { K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_peek_head(queue); } -#include +#include static inline void *z_vrfy_k_queue_peek_tail(struct k_queue *queue) { K_OOPS(K_SYSCALL_OBJ(queue, K_OBJ_QUEUE)); return z_impl_k_queue_peek_tail(queue); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/sched.c b/kernel/sched.c index 98de4f73963a..506ad57a141b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -521,7 +521,7 @@ static inline void z_vrfy_k_thread_suspend(struct k_thread *thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); z_impl_k_thread_suspend(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_thread_resume(struct k_thread *thread) @@ -550,7 +550,7 @@ static inline void z_vrfy_k_thread_resume(struct k_thread *thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); z_impl_k_thread_resume(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ static _wait_q_t *pended_on_thread(struct k_thread *thread) @@ -1025,7 +1025,7 @@ static inline void z_vrfy_k_thread_priority_set(k_tid_t thread, int prio) #endif /* CONFIG_USERSPACE_THREAD_MAY_RAISE_PRIORITY */ z_impl_k_thread_priority_set(thread, prio); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_SCHED_DEADLINE @@ -1063,7 +1063,7 @@ static inline void z_vrfy_k_thread_deadline_set(k_tid_t tid, int deadline) z_impl_k_thread_deadline_set((k_tid_t)thread, deadline); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_SCHED_DEADLINE */ @@ -1095,7 +1095,7 @@ static inline void z_vrfy_k_yield(void) { z_impl_k_yield(); } -#include +#include #endif /* CONFIG_USERSPACE */ static int32_t z_tick_sleep(k_ticks_t ticks) @@ -1173,7 +1173,7 @@ static inline int32_t z_vrfy_k_sleep(k_timeout_t timeout) { return z_impl_k_sleep(timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ int32_t z_impl_k_usleep(int us) @@ -1197,7 +1197,7 @@ static inline int32_t z_vrfy_k_usleep(int us) { return z_impl_k_usleep(us); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_wakeup(k_tid_t thread) @@ -1236,7 +1236,7 @@ static inline void z_vrfy_k_wakeup(k_tid_t thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); z_impl_k_wakeup(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ k_tid_t z_impl_k_sched_current_thread_query(void) @@ -1262,7 +1262,7 @@ static inline k_tid_t z_vrfy_k_sched_current_thread_query(void) { return z_impl_k_sched_current_thread_query(); } -#include +#include #endif /* CONFIG_USERSPACE */ static inline void unpend_all(_wait_q_t *wait_q) @@ -1485,7 +1485,7 @@ static inline int z_vrfy_k_thread_join(struct k_thread *thread, return z_impl_k_thread_join(thread, timeout); } -#include +#include static inline void z_vrfy_k_thread_abort(k_tid_t thread) { @@ -1498,7 +1498,7 @@ static inline void z_vrfy_k_thread_abort(k_tid_t thread) z_impl_k_thread_abort((struct k_thread *)thread); } -#include +#include #endif /* CONFIG_USERSPACE */ /* diff --git a/kernel/sem.c b/kernel/sem.c index 0a8b861cfbec..f2ae7a6cf78c 100644 --- a/kernel/sem.c +++ b/kernel/sem.c @@ -79,7 +79,7 @@ int z_vrfy_k_sem_init(struct k_sem *sem, unsigned int initial_count, K_OOPS(K_SYSCALL_OBJ_INIT(sem, K_OBJ_SEM)); return z_impl_k_sem_init(sem, initial_count, limit); } -#include +#include #endif /* CONFIG_USERSPACE */ static inline bool handle_poll_events(struct k_sem *sem) @@ -126,7 +126,7 @@ static inline void z_vrfy_k_sem_give(struct k_sem *sem) K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM)); z_impl_k_sem_give(sem); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_sem_take(struct k_sem *sem, k_timeout_t timeout) @@ -191,21 +191,21 @@ static inline int z_vrfy_k_sem_take(struct k_sem *sem, k_timeout_t timeout) K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM)); return z_impl_k_sem_take(sem, timeout); } -#include +#include static inline void z_vrfy_k_sem_reset(struct k_sem *sem) { K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM)); z_impl_k_sem_reset(sem); } -#include +#include static inline unsigned int z_vrfy_k_sem_count_get(struct k_sem *sem) { K_OOPS(K_SYSCALL_OBJ(sem, K_OBJ_SEM)); return z_impl_k_sem_count_get(sem); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/stack.c b/kernel/stack.c index 5c2bae6f61cc..e637cc3ba663 100644 --- a/kernel/stack.c +++ b/kernel/stack.c @@ -74,7 +74,7 @@ static inline int32_t z_vrfy_k_stack_alloc_init(struct k_stack *stack, &total_size))); return z_impl_k_stack_alloc_init(stack, num_entries); } -#include +#include #endif /* CONFIG_USERSPACE */ int k_stack_cleanup(struct k_stack *stack) @@ -142,7 +142,7 @@ static inline int z_vrfy_k_stack_push(struct k_stack *stack, stack_data_t data) return z_impl_k_stack_push(stack, data); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_stack_pop(struct k_stack *stack, stack_data_t *data, @@ -197,7 +197,7 @@ static inline int z_vrfy_k_stack_pop(struct k_stack *stack, K_OOPS(K_SYSCALL_MEMORY_WRITE(data, sizeof(stack_data_t))); return z_impl_k_stack_pop(stack, data, timeout); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_OBJ_CORE_STACK diff --git a/kernel/thread.c b/kernel/thread.c index 3b197743b09a..7b458d1f8bb2 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -90,7 +90,7 @@ static inline void z_vrfy_k_thread_custom_data_set(void *data) { z_impl_k_thread_custom_data_set(data); } -#include +#include #endif /* CONFIG_USERSPACE */ void *z_impl_k_thread_custom_data_get(void) @@ -103,7 +103,7 @@ static inline void *z_vrfy_k_thread_custom_data_get(void) { return z_impl_k_thread_custom_data_get(); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_THREAD_CUSTOM_DATA */ @@ -118,7 +118,7 @@ static inline int z_vrfy_k_is_preempt_thread(void) { return z_impl_k_is_preempt_thread(); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_thread_priority_get(k_tid_t thread) @@ -132,7 +132,7 @@ static inline int z_vrfy_k_thread_priority_get(k_tid_t thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_thread_priority_get(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_k_thread_name_set(struct k_thread *thread, const char *value) @@ -183,7 +183,7 @@ static inline int z_vrfy_k_thread_name_set(struct k_thread *thread, const char * return -ENOSYS; #endif /* CONFIG_THREAD_NAME */ } -#include +#include #endif /* CONFIG_USERSPACE */ const char *k_thread_name_get(k_tid_t thread) @@ -304,7 +304,7 @@ static inline int z_vrfy_k_thread_name_copy(k_tid_t thread, return -ENOSYS; #endif /* CONFIG_THREAD_NAME */ } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_STACK_SENTINEL @@ -353,7 +353,7 @@ static inline void z_vrfy_k_thread_start(struct k_thread *thread) K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_thread_start(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ #if defined(CONFIG_STACK_POINTER_RANDOM) && (CONFIG_STACK_POINTER_RANDOM != 0) @@ -741,7 +741,7 @@ k_tid_t z_vrfy_k_thread_create(struct k_thread *new_thread, return new_thread; } -#include +#include #endif /* CONFIG_USERSPACE */ void z_init_thread_base(struct _thread_base *thread_base, int priority, @@ -895,7 +895,7 @@ int z_vrfy_k_thread_stack_space_get(const struct k_thread *thread, return 0; } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_INIT_STACKS && CONFIG_THREAD_STACK_INFO */ @@ -906,7 +906,7 @@ static inline k_ticks_t z_vrfy_k_thread_timeout_remaining_ticks( K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_thread_timeout_remaining_ticks(thread); } -#include +#include static inline k_ticks_t z_vrfy_k_thread_timeout_expires_ticks( const struct k_thread *thread) @@ -914,7 +914,7 @@ static inline k_ticks_t z_vrfy_k_thread_timeout_expires_ticks( K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); return z_impl_k_thread_timeout_expires_ticks(thread); } -#include +#include #endif /* CONFIG_USERSPACE */ #ifdef CONFIG_INSTRUMENT_THREAD_SWITCHING diff --git a/kernel/timeout.c b/kernel/timeout.c index cf4a6d681d58..1a8a361457a1 100644 --- a/kernel/timeout.c +++ b/kernel/timeout.c @@ -32,7 +32,7 @@ static inline int z_vrfy_sys_clock_hw_cycles_per_sec_runtime_get(void) { return z_impl_sys_clock_hw_cycles_per_sec_runtime_get(); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME */ @@ -287,7 +287,7 @@ static inline int64_t z_vrfy_k_uptime_ticks(void) { return z_impl_k_uptime_ticks(); } -#include +#include #endif /* CONFIG_USERSPACE */ k_timepoint_t sys_timepoint_calc(k_timeout_t timeout) diff --git a/kernel/timer.c b/kernel/timer.c index 8eafbb4d7e34..466cab6c4842 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -188,7 +188,7 @@ static inline void z_vrfy_k_timer_start(struct k_timer *timer, K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); z_impl_k_timer_start(timer, duration, period); } -#include +#include #endif /* CONFIG_USERSPACE */ void z_impl_k_timer_stop(struct k_timer *timer) @@ -221,7 +221,7 @@ static inline void z_vrfy_k_timer_stop(struct k_timer *timer) K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); z_impl_k_timer_stop(timer); } -#include +#include #endif /* CONFIG_USERSPACE */ uint32_t z_impl_k_timer_status_get(struct k_timer *timer) @@ -241,7 +241,7 @@ static inline uint32_t z_vrfy_k_timer_status_get(struct k_timer *timer) K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); return z_impl_k_timer_status_get(timer); } -#include +#include #endif /* CONFIG_USERSPACE */ uint32_t z_impl_k_timer_status_sync(struct k_timer *timer) @@ -309,7 +309,7 @@ static inline uint32_t z_vrfy_k_timer_status_sync(struct k_timer *timer) K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); return z_impl_k_timer_status_sync(timer); } -#include +#include static inline k_ticks_t z_vrfy_k_timer_remaining_ticks( const struct k_timer *timer) @@ -317,7 +317,7 @@ static inline k_ticks_t z_vrfy_k_timer_remaining_ticks( K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); return z_impl_k_timer_remaining_ticks(timer); } -#include +#include static inline k_ticks_t z_vrfy_k_timer_expires_ticks( const struct k_timer *timer) @@ -325,14 +325,14 @@ static inline k_ticks_t z_vrfy_k_timer_expires_ticks( K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); return z_impl_k_timer_expires_ticks(timer); } -#include +#include static inline void *z_vrfy_k_timer_user_data_get(const struct k_timer *timer) { K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); return z_impl_k_timer_user_data_get(timer); } -#include +#include static inline void z_vrfy_k_timer_user_data_set(struct k_timer *timer, void *user_data) @@ -340,7 +340,7 @@ static inline void z_vrfy_k_timer_user_data_set(struct k_timer *timer, K_OOPS(K_SYSCALL_OBJ(timer, K_OBJ_TIMER)); z_impl_k_timer_user_data_set(timer, user_data); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/kernel/userspace.c b/kernel/userspace.c index 664971e2727e..55432586fed0 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c @@ -94,7 +94,7 @@ const char *otype_to_str(enum k_objects otype) case K_OBJ_ANY: ret = "generic"; break; -#include +#include default: ret = "?"; break; @@ -192,7 +192,7 @@ static size_t obj_size_get(enum k_objects otype) size_t ret; switch (otype) { -#include +#include default: ret = sizeof(const struct device); break; diff --git a/kernel/userspace_handler.c b/kernel/userspace_handler.c index da4053b4bdbd..ab6e4f0623c7 100644 --- a/kernel/userspace_handler.c +++ b/kernel/userspace_handler.c @@ -64,7 +64,7 @@ static inline void z_vrfy_k_object_access_grant(const void *object, object)); k_thread_perms_set(ko, thread); } -#include +#include static inline void z_vrfy_k_object_release(const void *object) { @@ -74,16 +74,16 @@ static inline void z_vrfy_k_object_release(const void *object) K_OOPS(K_SYSCALL_VERIFY_MSG(ko != NULL, "object %p access denied", object)); k_thread_perms_clear(ko, _current); } -#include +#include static inline void *z_vrfy_k_object_alloc(enum k_objects otype) { return z_impl_k_object_alloc(otype); } -#include +#include static inline void *z_vrfy_k_object_alloc_size(enum k_objects otype, size_t size) { return z_impl_k_object_alloc_size(otype, size); } -#include +#include diff --git a/kernel/version.c b/kernel/version.c index 799e555f1aaa..029671f8259e 100644 --- a/kernel/version.c +++ b/kernel/version.c @@ -5,7 +5,7 @@ */ #include -#include "version.h" /* generated by MAKE, at compile time */ +#include /* generated by MAKE, at compile time */ /** * @brief Return the kernel version of the present build diff --git a/lib/libc/arcmwdt/libc-hooks.c b/lib/libc/arcmwdt/libc-hooks.c index babf24ebda8c..8e094d25975f 100644 --- a/lib/libc/arcmwdt/libc-hooks.c +++ b/lib/libc/arcmwdt/libc-hooks.c @@ -59,7 +59,7 @@ static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes) K_OOPS(K_SYSCALL_MEMORY_READ(buf, nbytes)); return z_impl_zephyr_write_stdout(buf, nbytes); } -#include +#include #endif #ifndef CONFIG_POSIX_API diff --git a/lib/libc/minimal/source/stdout/stdout_console.c b/lib/libc/minimal/source/stdout/stdout_console.c index 33ea7ffaa66d..e3d5a374a53d 100644 --- a/lib/libc/minimal/source/stdout/stdout_console.c +++ b/lib/libc/minimal/source/stdout/stdout_console.c @@ -35,7 +35,7 @@ static inline int z_vrfy_zephyr_fputc(int c, FILE *stream) { return z_impl_zephyr_fputc(c, stream); } -#include +#include #endif int fputc(int c, FILE *stream) @@ -105,7 +105,7 @@ static inline size_t z_vrfy_zephyr_fwrite(const void *ZRESTRICT ptr, return z_impl_zephyr_fwrite((const void *ZRESTRICT)ptr, size, nitems, (FILE *ZRESTRICT)stream); } -#include +#include #endif size_t fwrite(const void *ZRESTRICT ptr, size_t size, size_t nitems, diff --git a/lib/libc/newlib/libc-hooks.c b/lib/libc/newlib/libc-hooks.c index 5e8629d44124..75a2859fb42a 100644 --- a/lib/libc/newlib/libc-hooks.c +++ b/lib/libc/newlib/libc-hooks.c @@ -184,7 +184,7 @@ static inline int z_vrfy_zephyr_read_stdin(char *buf, int nbytes) K_OOPS(K_SYSCALL_MEMORY_WRITE(buf, nbytes)); return z_impl_zephyr_read_stdin((char *)buf, nbytes); } -#include +#include #endif int z_impl_zephyr_write_stdout(const void *buffer, int nbytes) @@ -207,7 +207,7 @@ static inline int z_vrfy_zephyr_write_stdout(const void *buf, int nbytes) K_OOPS(K_SYSCALL_MEMORY_READ(buf, nbytes)); return z_impl_zephyr_write_stdout((const void *)buf, nbytes); } -#include +#include #endif #ifndef CONFIG_POSIX_API diff --git a/lib/libc/picolibc/libc-hooks.c b/lib/libc/picolibc/libc-hooks.c index e7539bc5dfe1..cefb0d46ddd3 100644 --- a/lib/libc/picolibc/libc-hooks.c +++ b/lib/libc/picolibc/libc-hooks.c @@ -39,7 +39,7 @@ static inline int z_vrfy_zephyr_fputc(int c, FILE *stream) { return z_impl_zephyr_fputc(c, stream); } -#include +#include #endif static int picolibc_put(char a, FILE *f) diff --git a/lib/os/mutex.c b/lib/os/mutex.c index e1c6d7fb48f1..9bfcf6368dd9 100644 --- a/lib/os/mutex.c +++ b/lib/os/mutex.c @@ -50,7 +50,7 @@ static inline int z_vrfy_z_sys_mutex_kernel_lock(struct sys_mutex *mutex, return z_impl_z_sys_mutex_kernel_lock(mutex, timeout); } -#include +#include int z_impl_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) { @@ -71,4 +71,4 @@ static inline int z_vrfy_z_sys_mutex_kernel_unlock(struct sys_mutex *mutex) return z_impl_z_sys_mutex_kernel_unlock(mutex); } -#include +#include diff --git a/lib/os/printk.c b/lib/os/printk.c index 71a0d6aeac8b..cb4073fed74a 100644 --- a/lib/os/printk.c +++ b/lib/os/printk.c @@ -178,7 +178,7 @@ static inline void z_vrfy_k_str_out(char *c, size_t n) K_OOPS(K_SYSCALL_MEMORY_READ(c, n)); z_impl_k_str_out((char *)c, n); } -#include +#include #endif /* CONFIG_USERSPACE */ /** diff --git a/lib/posix/options/clock.c b/lib/posix/options/clock.c index 48789ae49c25..68692b5ecd6f 100644 --- a/lib/posix/options/clock.c +++ b/lib/posix/options/clock.c @@ -57,7 +57,7 @@ int z_vrfy___posix_clock_get_base(clockid_t clock_id, struct timespec *ts) K_OOPS(K_SYSCALL_MEMORY_WRITE(ts, sizeof(*ts))); return z_impl___posix_clock_get_base(clock_id, ts); } -#include +#include #endif int clock_gettime(clockid_t clock_id, struct timespec *ts) diff --git a/lib/posix/options/posix_clock.h b/lib/posix/options/posix_clock.h index a665f4ce06d9..f505dbc17527 100644 --- a/lib/posix/options/posix_clock.h +++ b/lib/posix/options/posix_clock.h @@ -14,6 +14,6 @@ __syscall int __posix_clock_get_base(clockid_t clock_id, struct timespec *ts); -#include +#include #endif diff --git a/lib/posix/options/uname.c b/lib/posix/options/uname.c index eb1d9a3f4630..decba8dd0143 100644 --- a/lib/posix/options/uname.c +++ b/lib/posix/options/uname.c @@ -4,11 +4,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "version.h" #include #include #include #include +#include #ifdef CONFIG_NET_HOSTNAME_ENABLE #define UTSNAME_NODENAME CONFIG_NET_HOSTNAME diff --git a/samples/posix/env/src/main.c b/samples/posix/env/src/main.c index 9385abce6441..9ae50c36cd1a 100644 --- a/samples/posix/env/src/main.c +++ b/samples/posix/env/src/main.c @@ -4,8 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "version.h" - #include #include #include @@ -15,6 +13,7 @@ #include #include +#include #ifdef BUILD_VERSION #define VERSION_BUILD STRINGIFY(BUILD_VERSION) diff --git a/samples/subsys/llext/edk/app/include/app_api.h b/samples/subsys/llext/edk/app/include/app_api.h index bc6cb49dca85..73d8fe3133d8 100644 --- a/samples/subsys/llext/edk/app/include/app_api.h +++ b/samples/subsys/llext/edk/app/include/app_api.h @@ -34,5 +34,5 @@ extern "C" { } #endif -#include +#include #endif /* _TEST_EDK_H_ */ diff --git a/samples/subsys/llext/edk/app/src/pubsub.c b/samples/subsys/llext/edk/app/src/pubsub.c index fa7641be4616..79719af1b2b9 100644 --- a/samples/subsys/llext/edk/app/src/pubsub.c +++ b/samples/subsys/llext/edk/app/src/pubsub.c @@ -151,7 +151,7 @@ static inline int z_vrfy_publish(enum Channels channel, void *data, return ret; } -#include +#include #endif int z_impl_receive(enum Channels channel, void *data, size_t data_len) @@ -182,7 +182,7 @@ static inline int z_vrfy_receive(enum Channels channel, void *data, return z_impl_receive(channel, data, data_len); } -#include +#include #endif int z_impl_register_subscriber(enum Channels channel, struct k_event *evt) @@ -218,5 +218,5 @@ static inline int z_vrfy_register_subscriber(enum Channels channel, return z_impl_register_subscriber(channel, evt); } -#include +#include #endif diff --git a/samples/subsys/shell/shell_module/src/main.c b/samples/subsys/shell/shell_module/src/main.c index a3248cc7dc34..c7519c7485c6 100644 --- a/samples/subsys/shell/shell_module/src/main.c +++ b/samples/subsys/shell/shell_module/src/main.c @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include diff --git a/samples/userspace/prod_consumer/src/app_syscall.c b/samples/userspace/prod_consumer/src/app_syscall.c index c1b630ba9f2a..28090260c5a2 100644 --- a/samples/userspace/prod_consumer/src/app_syscall.c +++ b/samples/userspace/prod_consumer/src/app_syscall.c @@ -54,4 +54,4 @@ static int z_vrfy_magic_syscall(unsigned int *cookie) return ret; } -#include +#include diff --git a/samples/userspace/prod_consumer/src/app_syscall.h b/samples/userspace/prod_consumer/src/app_syscall.h index 7a6d1ff19b6c..cda913ac6c58 100644 --- a/samples/userspace/prod_consumer/src/app_syscall.h +++ b/samples/userspace/prod_consumer/src/app_syscall.h @@ -8,6 +8,6 @@ __syscall int magic_syscall(unsigned int *cookie); -#include +#include #endif /* MAGIC_SYSCALL_H */ diff --git a/samples/userspace/prod_consumer/src/sample_driver.h b/samples/userspace/prod_consumer/src/sample_driver.h index 0f5eaecee5d4..88329313434a 100644 --- a/samples/userspace/prod_consumer/src/sample_driver.h +++ b/samples/userspace/prod_consumer/src/sample_driver.h @@ -86,6 +86,6 @@ static inline int sample_driver_set_callback(const struct device *dev, return api->set_callback(dev, cb, context); } -#include +#include #endif diff --git a/samples/userspace/prod_consumer/src/sample_driver_handlers.c b/samples/userspace/prod_consumer/src/sample_driver_handlers.c index 89a4ff120446..333204eac796 100644 --- a/samples/userspace/prod_consumer/src/sample_driver_handlers.c +++ b/samples/userspace/prod_consumer/src/sample_driver_handlers.c @@ -17,7 +17,7 @@ int z_vrfy_sample_driver_state_set(const struct device *dev, bool active) return z_impl_sample_driver_state_set(dev, active); } -#include +#include int z_vrfy_sample_driver_write(const struct device *dev, void *buf) { @@ -31,4 +31,4 @@ int z_vrfy_sample_driver_write(const struct device *dev, void *buf) return z_impl_sample_driver_write(dev, buf); } -#include +#include diff --git a/scripts/build/gen_syscalls.py b/scripts/build/gen_syscalls.py index b6e332d45cae..84f6b546bde5 100755 --- a/scripts/build/gen_syscalls.py +++ b/scripts/build/gen_syscalls.py @@ -91,7 +91,7 @@ #include -#include +#include #include #include @@ -476,7 +476,7 @@ def main(): if mrsh and to_emit: syscall = typename_split(match_group[0])[1] mrsh_defs[syscall] = mrsh - mrsh_includes[syscall] = "#include " % fn + mrsh_includes[syscall] = "#include " % fn with open(args.syscall_dispatch, "w") as fp: table_entries.append("[K_SYSCALL_BAD] = handler_bad_syscall") diff --git a/soc/andestech/ae350/soc_irq.S b/soc/andestech/ae350/soc_irq.S index f057cd8804fc..d5e28d307f5a 100644 --- a/soc/andestech/ae350/soc_irq.S +++ b/soc/andestech/ae350/soc_irq.S @@ -6,7 +6,7 @@ #include "soc_v5.h" -#include +#include #include #ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE diff --git a/soc/common/riscv-privileged/soc_irq.S b/soc/common/riscv-privileged/soc_irq.S index acf7e724aea4..21d6bd56f99d 100644 --- a/soc/common/riscv-privileged/soc_irq.S +++ b/soc/common/riscv-privileged/soc_irq.S @@ -9,7 +9,7 @@ * privileged architecture specification */ #include -#include +#include #include #include #include diff --git a/soc/espressif/esp32/gdbstub.c b/soc/espressif/esp32/gdbstub.c index c8913b7f5a27..835c2ff51f72 100644 --- a/soc/espressif/esp32/gdbstub.c +++ b/soc/espressif/esp32/gdbstub.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include /* * Address Mappings From ESP32 Technical Reference Manual Version 4.5 diff --git a/soc/espressif/esp32c3/soc_irq.S b/soc/espressif/esp32c3/soc_irq.S index 6ce11ae6a818..0a9e917f5087 100644 --- a/soc/espressif/esp32c3/soc_irq.S +++ b/soc/espressif/esp32c3/soc_irq.S @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include /* Exports */ diff --git a/soc/intel/intel_adsp/common/multiprocessing.c b/soc/intel/intel_adsp/common/multiprocessing.c index dfd7bd2106e7..3797e283dd58 100644 --- a/soc/intel/intel_adsp/common/multiprocessing.c +++ b/soc/intel/intel_adsp/common/multiprocessing.c @@ -17,7 +17,7 @@ #include LOG_MODULE_REGISTER(soc_mp, CONFIG_SOC_LOG_LEVEL); -#include +#include #include #include #include diff --git a/soc/ite/ec/common/soc_irq.S b/soc/ite/ec/common/soc_irq.S index ceb0f3afecb7..c0f78103ec42 100644 --- a/soc/ite/ec/common/soc_irq.S +++ b/soc/ite/ec/common/soc_irq.S @@ -9,7 +9,7 @@ * privileged architecture specification */ #include -#include +#include #include #include #include diff --git a/soc/nordic/common/vpr/soc_context.S b/soc/nordic/common/vpr/soc_context.S index 82c8ecfe5985..19d041dce6d3 100644 --- a/soc/nordic/common/vpr/soc_context.S +++ b/soc/nordic/common/vpr/soc_context.S @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include GTEXT(__soc_save_context) diff --git a/soc/openisa/rv32m1/soc_irq.S b/soc/openisa/rv32m1/soc_irq.S index d3059d2bd280..8333faa4236c 100644 --- a/soc/openisa/rv32m1/soc_irq.S +++ b/soc/openisa/rv32m1/soc_irq.S @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include #include diff --git a/soc/telink/tlsr/tlsr951x/soc_irq.S b/soc/telink/tlsr/tlsr951x/soc_irq.S index ea43de3684bb..76b3ac5a45dc 100644 --- a/soc/telink/tlsr/tlsr951x/soc_irq.S +++ b/soc/telink/tlsr/tlsr951x/soc_irq.S @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include #include diff --git a/subsys/bindesc/bindesc_version.c b/subsys/bindesc/bindesc_version.c index d1c3a905aa04..76111ca17bb8 100644 --- a/subsys/bindesc/bindesc_version.c +++ b/subsys/bindesc/bindesc_version.c @@ -6,7 +6,7 @@ #include #include -#include +#include #if IS_ENABLED(CONFIG_BINDESC_KERNEL_VERSION_STRING) BINDESC_STR_DEFINE(kernel_version_string, BINDESC_ID_KERNEL_VERSION_STRING, @@ -34,7 +34,7 @@ BINDESC_UINT_DEFINE(kernel_version_number, BINDESC_ID_KERNEL_VERSION_NUMBER, #endif /* IS_ENABLED(CONFIG_BINDESC_KERNEL_VERSION_NUMBER) */ #if IS_ENABLED(HAS_APP_VERSION) -#include +#include #if IS_ENABLED(CONFIG_BINDESC_APP_VERSION_STRING) BINDESC_STR_DEFINE(app_version_string, BINDESC_ID_APP_VERSION_STRING, diff --git a/subsys/bluetooth/controller/hci/hci.c b/subsys/bluetooth/controller/hci/hci.c index 247a50959da9..0edc10310cb0 100644 --- a/subsys/bluetooth/controller/hci/hci.c +++ b/subsys/bluetooth/controller/hci/hci.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include #include diff --git a/subsys/logging/log_core.c b/subsys/logging/log_core.c index 3e767092b762..68e08547e98e 100644 --- a/subsys/logging/log_core.c +++ b/subsys/logging/log_core.c @@ -458,7 +458,7 @@ void z_vrfy_log_panic(void) { z_impl_log_panic(); } -#include +#include #endif static bool msg_filter_check(struct log_backend const *backend, @@ -594,7 +594,7 @@ bool z_vrfy_log_process(void) { return z_impl_log_process(); } -#include +#include #endif uint32_t z_impl_log_buffered_cnt(void) @@ -607,7 +607,7 @@ uint32_t z_vrfy_log_buffered_cnt(void) { return z_impl_log_buffered_cnt(); } -#include +#include #endif void z_log_dropped(bool buffered) diff --git a/subsys/logging/log_mgmt.c b/subsys/logging/log_mgmt.c index ec6441379e37..dbde3d24b44c 100644 --- a/subsys/logging/log_mgmt.c +++ b/subsys/logging/log_mgmt.c @@ -498,7 +498,7 @@ uint32_t z_vrfy_log_filter_set(struct log_backend const *const backend, return z_impl_log_filter_set(NULL, domain_id, src_id, level); } -#include +#include #endif static void link_filter_set(const struct log_link *link, diff --git a/subsys/logging/log_msg.c b/subsys/logging/log_msg.c index 11a8a9735d36..0d40c5b3155f 100644 --- a/subsys/logging/log_msg.c +++ b/subsys/logging/log_msg.c @@ -337,7 +337,7 @@ static inline void z_vrfy_z_log_msg_static_create(const void *source, { return z_impl_z_log_msg_static_create(source, desc, package, data); } -#include +#include #endif void z_log_msg_runtime_vcreate(uint8_t domain_id, const void *source, diff --git a/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c b/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c index 9fc02f81661a..e46c6aa8214a 100644 --- a/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c +++ b/subsys/mgmt/mcumgr/grp/os_mgmt/src/os_mgmt.c @@ -40,7 +40,7 @@ #if defined(CONFIG_MCUMGR_GRP_OS_INFO) || defined(CONFIG_MCUMGR_GRP_OS_BOOTLOADER_INFO) #include -#include +#include #if defined(CONFIG_MCUMGR_GRP_OS_INFO) #include #endif diff --git a/subsys/mgmt/mcumgr/transport/src/smp_shell.c b/subsys/mgmt/mcumgr/transport/src/smp_shell.c index 0660235ab69f..669f46391e9d 100644 --- a/subsys/mgmt/mcumgr/transport/src/smp_shell.c +++ b/subsys/mgmt/mcumgr/transport/src/smp_shell.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include diff --git a/subsys/mgmt/updatehub/updatehub_handlers.c b/subsys/mgmt/updatehub/updatehub_handlers.c index 4d8897317581..498b0b59caea 100644 --- a/subsys/mgmt/updatehub/updatehub_handlers.c +++ b/subsys/mgmt/updatehub/updatehub_handlers.c @@ -12,28 +12,28 @@ static inline void z_vrfy_updatehub_autohandler(void) { z_impl_updatehub_autohandler(); } -#include +#include static inline enum updatehub_response z_vrfy_updatehub_probe(void) { return z_impl_updatehub_probe(); } -#include +#include static inline enum updatehub_response z_vrfy_updatehub_update(void) { return z_impl_updatehub_update(); } -#include +#include static inline int z_vrfy_updatehub_confirm(void) { return z_impl_updatehub_confirm(); } -#include +#include static inline int z_vrfy_updatehub_reboot(void) { return z_impl_updatehub_reboot(); } -#include +#include diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index dc115aaf2c32..e1903668b8dd 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -166,7 +166,7 @@ struct net_if *z_vrfy_net_if_get_by_index(int index) return iface; } -#include +#include #endif static inline void net_context_send_cb(struct net_context *context, @@ -1646,7 +1646,7 @@ static inline int z_vrfy_net_if_ipv6_addr_lookup_by_index( return z_impl_net_if_ipv6_addr_lookup_by_index(&addr_v6); } -#include +#include #endif /* To be called when interface comes up so that all the non-joined multicast @@ -2007,7 +2007,7 @@ bool z_vrfy_net_if_ipv6_addr_add_by_index(int index, vlifetime); } -#include +#include #endif /* CONFIG_USERSPACE */ bool z_impl_net_if_ipv6_addr_rm_by_index(int index, @@ -2040,7 +2040,7 @@ bool z_vrfy_net_if_ipv6_addr_rm_by_index(int index, return z_impl_net_if_ipv6_addr_rm_by_index(index, &addr_v6); } -#include +#include #endif /* CONFIG_USERSPACE */ void net_if_ipv6_addr_foreach(struct net_if *iface, net_if_ip_addr_cb_t cb, @@ -3844,7 +3844,7 @@ static inline int z_vrfy_net_if_ipv4_addr_lookup_by_index( return z_impl_net_if_ipv4_addr_lookup_by_index(&addr_v4); } -#include +#include #endif struct in_addr net_if_ipv4_get_netmask_by_addr(struct net_if *iface, @@ -4056,7 +4056,7 @@ bool z_vrfy_net_if_ipv4_set_netmask_by_index(int index, return z_impl_net_if_ipv4_set_netmask_by_index(index, &netmask_addr); } -#include +#include bool z_vrfy_net_if_ipv4_set_netmask_by_addr_by_index(int index, const struct in_addr *addr, @@ -4080,7 +4080,7 @@ bool z_vrfy_net_if_ipv4_set_netmask_by_addr_by_index(int index, &netmask_addr); } -#include +#include #endif /* CONFIG_USERSPACE */ void net_if_ipv4_set_gw(struct net_if *iface, const struct in_addr *gw) @@ -4132,7 +4132,7 @@ bool z_vrfy_net_if_ipv4_set_gw_by_index(int index, return z_impl_net_if_ipv4_set_gw_by_index(index, &gw_addr); } -#include +#include #endif /* CONFIG_USERSPACE */ static struct net_if_addr *ipv4_addr_find(struct net_if *iface, @@ -4295,7 +4295,7 @@ bool z_vrfy_net_if_ipv4_addr_add_by_index(int index, vlifetime); } -#include +#include #endif /* CONFIG_USERSPACE */ bool z_impl_net_if_ipv4_addr_rm_by_index(int index, @@ -4328,7 +4328,7 @@ bool z_vrfy_net_if_ipv4_addr_rm_by_index(int index, return (uint32_t)z_impl_net_if_ipv4_addr_rm_by_index(index, &addr_v4); } -#include +#include #endif /* CONFIG_USERSPACE */ void net_if_ipv4_addr_foreach(struct net_if *iface, net_if_ip_addr_cb_t cb, diff --git a/subsys/net/ip/utils.c b/subsys/net/ip/utils.c index 623bb2b89e22..51048b0eeb6b 100644 --- a/subsys/net/ip/utils.c +++ b/subsys/net/ip/utils.c @@ -340,7 +340,7 @@ char *z_vrfy_net_addr_ntop(sa_family_t family, const void *src, return dst; } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_net_addr_pton(sa_family_t family, const char *src, @@ -512,7 +512,7 @@ int z_vrfy_net_addr_pton(sa_family_t family, const char *src, return 0; } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/subsys/net/l2/ethernet/ethernet.c b/subsys/net/l2/ethernet/ethernet.c index 1f448d454efd..76591856be89 100644 --- a/subsys/net/l2/ethernet/ethernet.c +++ b/subsys/net/l2/ethernet/ethernet.c @@ -869,7 +869,7 @@ static inline const struct device *z_vrfy_net_eth_get_ptp_clock_by_index(int ind { return z_impl_net_eth_get_ptp_clock_by_index(index); } -#include +#include #endif /* CONFIG_USERSPACE */ #else /* CONFIG_PTP_CLOCK */ const struct device *z_impl_net_eth_get_ptp_clock_by_index(int index) diff --git a/subsys/net/l2/openthread/openthread.c b/subsys/net/l2/openthread/openthread.c index d820e083d8b0..2ba600f35e99 100644 --- a/subsys/net/l2/openthread/openthread.c +++ b/subsys/net/l2/openthread/openthread.c @@ -19,7 +19,7 @@ LOG_MODULE_REGISTER(net_l2_openthread, CONFIG_OPENTHREAD_L2_LOG_LEVEL); #include #include #include -#include +#include #include #include diff --git a/subsys/net/lib/sockets/getaddrinfo.c b/subsys/net/lib/sockets/getaddrinfo.c index 70e320017709..b0c01ab50c1c 100644 --- a/subsys/net/lib/sockets/getaddrinfo.c +++ b/subsys/net/lib/sockets/getaddrinfo.c @@ -346,7 +346,7 @@ static inline int z_vrfy_z_zsock_getaddrinfo_internal(const char *host, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* defined(CONFIG_DNS_RESOLVER) */ diff --git a/subsys/net/lib/sockets/socketpair.c b/subsys/net/lib/sockets/socketpair.c index 417a3b34fb1f..f02b91df45fb 100644 --- a/subsys/net/lib/sockets/socketpair.c +++ b/subsys/net/lib/sockets/socketpair.c @@ -357,7 +357,7 @@ int z_vrfy_zsock_socketpair(int family, int type, int proto, int *sv) return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ /** diff --git a/subsys/net/lib/sockets/sockets.c b/subsys/net/lib/sockets/sockets.c index e75c0b0203fa..454cd009fb5f 100644 --- a/subsys/net/lib/sockets/sockets.c +++ b/subsys/net/lib/sockets/sockets.c @@ -110,7 +110,7 @@ void *z_vrfy_zsock_get_context_object(int sock) return z_impl_zsock_get_context_object(sock); } -#include +#include #endif static void zsock_received_cb(struct net_context *ctx, @@ -249,7 +249,7 @@ static inline int z_vrfy_zsock_socket(int family, int type, int proto) */ return z_impl_zsock_socket(family, type, proto); } -#include +#include #endif /* CONFIG_USERSPACE */ int zsock_close_ctx(struct net_context *ctx) @@ -308,7 +308,7 @@ static inline int z_vrfy_zsock_close(int sock) { return z_impl_zsock_close(sock); } -#include +#include #endif /* CONFIG_USERSPACE */ int z_impl_zsock_shutdown(int sock, int how) @@ -345,7 +345,7 @@ static inline int z_vrfy_zsock_shutdown(int sock, int how) { return z_impl_zsock_shutdown(sock, how); } -#include +#include #endif /* CONFIG_USERSPACE */ static void zsock_accepted_cb(struct net_context *new_ctx, @@ -487,7 +487,7 @@ static inline int z_vrfy_zsock_bind(int sock, const struct sockaddr *addr, return z_impl_zsock_bind(sock, (struct sockaddr *)&dest_addr_copy, addrlen); } -#include +#include #endif /* CONFIG_USERSPACE */ static void zsock_connected_cb(struct net_context *ctx, int status, void *user_data) @@ -566,7 +566,7 @@ int z_vrfy_zsock_connect(int sock, const struct sockaddr *addr, return z_impl_zsock_connect(sock, (struct sockaddr *)&dest_addr_copy, addrlen); } -#include +#include #endif /* CONFIG_USERSPACE */ int zsock_listen_ctx(struct net_context *ctx, int backlog) @@ -587,7 +587,7 @@ static inline int z_vrfy_zsock_listen(int sock, int backlog) { return z_impl_zsock_listen(sock, backlog); } -#include +#include #endif /* CONFIG_USERSPACE */ int zsock_accept_ctx(struct net_context *parent, struct sockaddr *addr, @@ -704,7 +704,7 @@ static inline int z_vrfy_zsock_accept(int sock, struct sockaddr *addr, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ #define WAIT_BUFS_INITIAL_MS 10 @@ -872,7 +872,7 @@ ssize_t z_vrfy_zsock_sendto(int sock, const void *buf, size_t len, int flags, dest_addr ? (struct sockaddr *)&dest_addr_copy : NULL, addrlen); } -#include +#include #endif /* CONFIG_USERSPACE */ size_t msghdr_non_empty_iov_count(const struct msghdr *msg) @@ -1024,7 +1024,7 @@ static inline ssize_t z_vrfy_zsock_sendmsg(int sock, return -1; } -#include +#include #endif /* CONFIG_USERSPACE */ static int sock_get_pkt_src_addr(struct net_pkt *pkt, @@ -1802,7 +1802,7 @@ ssize_t z_vrfy_zsock_recvfrom(int sock, void *buf, size_t max_len, int flags, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ ssize_t zsock_recvmsg_ctx(struct net_context *ctx, struct msghdr *msg, @@ -2017,7 +2017,7 @@ ssize_t z_vrfy_zsock_recvmsg(int sock, struct msghdr *msg, int flags) return -1; } -#include +#include #endif /* CONFIG_USERSPACE */ /* As this is limited function, we don't follow POSIX signature, with @@ -2051,7 +2051,7 @@ static inline int z_vrfy_zsock_fcntl_impl(int sock, int cmd, int flags) { return z_impl_zsock_fcntl_impl(sock, cmd, flags); } -#include +#include #endif int z_impl_zsock_ioctl_impl(int sock, unsigned long request, va_list args) @@ -2102,7 +2102,7 @@ static inline int z_vrfy_zsock_ioctl_impl(int sock, unsigned long request, va_li return z_impl_zsock_ioctl_impl(sock, request, args); } -#include +#include #endif static int zsock_poll_prepare_ctx(struct net_context *ctx, @@ -2402,7 +2402,7 @@ static inline int z_vrfy_zsock_poll(struct zsock_pollfd *fds, return ret; } -#include +#include #endif int z_impl_zsock_inet_pton(sa_family_t family, const char *src, void *dst) @@ -2441,7 +2441,7 @@ static inline int z_vrfy_zsock_inet_pton(sa_family_t family, return ret; } -#include +#include #endif static enum tcp_conn_option get_tcp_option(int optname) @@ -2788,7 +2788,7 @@ int z_vrfy_zsock_getsockopt(int sock, int level, int optname, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ static int ipv4_multicast_group(struct net_context *ctx, const void *optval, @@ -3393,7 +3393,7 @@ int z_vrfy_zsock_setsockopt(int sock, int level, int optname, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ int zsock_getpeername_ctx(struct net_context *ctx, struct sockaddr *addr, @@ -3477,7 +3477,7 @@ static inline int z_vrfy_zsock_getpeername(int sock, struct sockaddr *addr, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ int zsock_getsockname_ctx(struct net_context *ctx, struct sockaddr *addr, @@ -3563,7 +3563,7 @@ static inline int z_vrfy_zsock_getsockname(int sock, struct sockaddr *addr, return ret; } -#include +#include #endif /* CONFIG_USERSPACE */ static ssize_t sock_read_vmeth(void *obj, void *buffer, size_t count) diff --git a/subsys/net/lib/sockets/sockets_misc.c b/subsys/net/lib/sockets/sockets_misc.c index f16bfc8e9623..19e8155370f0 100644 --- a/subsys/net/lib/sockets/sockets_misc.c +++ b/subsys/net/lib/sockets/sockets_misc.c @@ -24,5 +24,5 @@ static inline int z_vrfy_zsock_gethostname(char *buf, size_t len) K_OOPS(K_SYSCALL_MEMORY_WRITE(buf, len)); return z_impl_zsock_gethostname(buf, len); } -#include +#include #endif diff --git a/subsys/net/lib/sockets/sockets_select.c b/subsys/net/lib/sockets/sockets_select.c index af88e51e7586..49d61a2d28c6 100644 --- a/subsys/net/lib/sockets/sockets_select.c +++ b/subsys/net/lib/sockets/sockets_select.c @@ -284,5 +284,5 @@ static int z_vrfy_zsock_select(int nfds, zsock_fd_set *readfds, return ret; } -#include +#include #endif diff --git a/subsys/random/random_handlers.c b/subsys/random/random_handlers.c index 77bf068ed0d3..dc5fba5c47cb 100644 --- a/subsys/random/random_handlers.c +++ b/subsys/random/random_handlers.c @@ -13,7 +13,7 @@ static inline void z_vrfy_sys_rand_get(void *dst, size_t len) z_impl_sys_rand_get(dst, len); } -#include +#include #ifdef CONFIG_CSPRNG_ENABLED static inline int z_vrfy_sys_csrand_get(void *dst, size_t len) @@ -22,5 +22,5 @@ static inline int z_vrfy_sys_csrand_get(void *dst, size_t len) return z_impl_sys_csrand_get(dst, len); } -#include +#include #endif diff --git a/subsys/rtio/rtio_handlers.c b/subsys/rtio/rtio_handlers.c index 3930d5bdee91..d3f3824614b5 100644 --- a/subsys/rtio/rtio_handlers.c +++ b/subsys/rtio/rtio_handlers.c @@ -57,7 +57,7 @@ static inline void z_vrfy_rtio_release_buffer(struct rtio *r, void *buff, uint32 K_OOPS(K_SYSCALL_OBJ(r, K_OBJ_RTIO)); z_impl_rtio_release_buffer(r, buff, buff_len); } -#include +#include static inline int z_vrfy_rtio_cqe_get_mempool_buffer(const struct rtio *r, struct rtio_cqe *cqe, uint8_t **buff, uint32_t *buff_len) @@ -68,13 +68,13 @@ static inline int z_vrfy_rtio_cqe_get_mempool_buffer(const struct rtio *r, struc K_OOPS(K_SYSCALL_MEMORY_READ(buff_len, sizeof(uint32_t))); return z_impl_rtio_cqe_get_mempool_buffer(r, cqe, buff, buff_len); } -#include +#include static inline int z_vrfy_rtio_sqe_cancel(struct rtio_sqe *sqe) { return z_impl_rtio_sqe_cancel(sqe); } -#include +#include static inline int z_vrfy_rtio_sqe_copy_in_get_handles(struct rtio *r, const struct rtio_sqe *sqes, struct rtio_sqe **handle, size_t sqe_count) @@ -107,7 +107,7 @@ static inline int z_vrfy_rtio_sqe_copy_in_get_handles(struct rtio *r, const stru /* Already copied *and* verified, no need to redo */ return z_impl_rtio_sqe_copy_in_get_handles(r, NULL, NULL, 0); } -#include +#include static inline int z_vrfy_rtio_cqe_copy_out(struct rtio *r, struct rtio_cqe *cqes, @@ -120,7 +120,7 @@ static inline int z_vrfy_rtio_cqe_copy_out(struct rtio *r, return z_impl_rtio_cqe_copy_out(r, cqes, cqe_count, timeout); } -#include +#include static inline int z_vrfy_rtio_submit(struct rtio *r, uint32_t wait_count) { @@ -132,4 +132,4 @@ static inline int z_vrfy_rtio_submit(struct rtio *r, uint32_t wait_count) return z_impl_rtio_submit(r, wait_count); } -#include +#include diff --git a/subsys/shell/modules/kernel_service.c b/subsys/shell/modules/kernel_service.c index 3d940ba5ee3d..992a83f65b51 100644 --- a/subsys/shell/modules/kernel_service.c +++ b/subsys/shell/modules/kernel_service.c @@ -5,7 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include #include diff --git a/subsys/testsuite/ztest/include/zephyr/ztest_error_hook.h b/subsys/testsuite/ztest/include/zephyr/ztest_error_hook.h index 6ebee086fc86..5d6ac64a9c1b 100644 --- a/subsys/testsuite/ztest/include/zephyr/ztest_error_hook.h +++ b/subsys/testsuite/ztest/include/zephyr/ztest_error_hook.h @@ -76,7 +76,7 @@ void ztest_post_assert_fail_hook(void); #endif #if defined(CONFIG_ZTEST_FATAL_HOOK) || defined(CONFIG_ZTEST_ASSERT_HOOK) -#include +#include #endif #endif /* ZEPHYR_INCLUDE_ZTEST_FATAL_HOOK_H_ */ diff --git a/subsys/testsuite/ztest/include/zephyr/ztest_test.h b/subsys/testsuite/ztest/include/zephyr/ztest_test.h index b6bec89a0b81..2924de9c643a 100644 --- a/subsys/testsuite/ztest/include/zephyr/ztest_test.h +++ b/subsys/testsuite/ztest/include/zephyr/ztest_test.h @@ -577,7 +577,7 @@ __syscall void sys_clock_tick_set(uint64_t tick); #endif #ifndef ZTEST_UNITTEST -#include +#include #endif #endif /* ZEPHYR_TESTSUITE_ZTEST_TEST_H_ */ diff --git a/subsys/testsuite/ztest/src/ztest.c b/subsys/testsuite/ztest/src/ztest.c index a3eba14e6162..b9a6be291d0c 100644 --- a/subsys/testsuite/ztest/src/ztest.c +++ b/subsys/testsuite/ztest/src/ztest.c @@ -289,10 +289,10 @@ void z_impl_z_test_1cpu_stop(void) #ifdef CONFIG_USERSPACE void z_vrfy_z_test_1cpu_start(void) { z_impl_z_test_1cpu_start(); } -#include +#include void z_vrfy_z_test_1cpu_stop(void) { z_impl_z_test_1cpu_stop(); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif @@ -1135,13 +1135,13 @@ void z_vrfy___ztest_set_test_result(enum ztest_result new_result) { z_impl___ztest_set_test_result(new_result); } -#include +#include void z_vrfy___ztest_set_test_phase(enum ztest_phase new_phase) { z_impl___ztest_set_test_phase(new_phase); } -#include +#include #endif /* CONFIG_USERSPACE */ void ztest_verify_all_test_suites_ran(void) diff --git a/subsys/testsuite/ztest/src/ztest_error_hook.c b/subsys/testsuite/ztest/src/ztest_error_hook.c index 64dede71533e..6982e96c7c55 100644 --- a/subsys/testsuite/ztest/src/ztest_error_hook.c +++ b/subsys/testsuite/ztest/src/ztest_error_hook.c @@ -38,7 +38,7 @@ static inline void z_vrfy_ztest_set_fault_valid(bool valid) { z_impl_ztest_set_fault_valid(valid); } -#include +#include #endif __weak void ztest_post_fatal_error_hook(unsigned int reason, @@ -100,7 +100,7 @@ static inline void z_vrfy_ztest_set_assert_valid(bool valid) { z_impl_ztest_set_assert_valid(valid); } -#include +#include #endif __weak void ztest_post_assert_fail_hook(void) diff --git a/tests/arch/arm/arm_interrupt/src/arm_interrupt.c b/tests/arch/arm/arm_interrupt/src/arm_interrupt.c index 1bbfe08bc017..b569bbe1678a 100644 --- a/tests/arch/arm/arm_interrupt/src/arm_interrupt.c +++ b/tests/arch/arm/arm_interrupt/src/arm_interrupt.c @@ -415,7 +415,7 @@ static inline void z_vrfy_test_arm_user_interrupt_syscall(void) { z_impl_test_arm_user_interrupt_syscall(); } -#include +#include ZTEST_USER(arm_interrupt, test_arm_user_interrupt) { diff --git a/tests/arch/arm/arm_interrupt/src/test_syscalls.h b/tests/arch/arm/arm_interrupt/src/test_syscalls.h index 5d85f7d4f87d..1bef59e33aea 100644 --- a/tests/arch/arm/arm_interrupt/src/test_syscalls.h +++ b/tests/arch/arm/arm_interrupt/src/test_syscalls.h @@ -10,6 +10,6 @@ __syscall void test_arm_user_interrupt_syscall(void); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c b/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c index e32de6ca7261..e1573bd1e39a 100644 --- a/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c +++ b/tests/arch/arm/arm_thread_swap/src/arm_syscalls.c @@ -66,7 +66,7 @@ static inline void z_vrfy_test_arm_user_syscall(void) { z_impl_test_arm_user_syscall(); } -#include +#include void arm_isr_handler(const void *args) @@ -271,7 +271,7 @@ static inline void z_vrfy_test_arm_cpu_write_reg(void) { z_impl_test_arm_cpu_write_reg(); } -#include +#include /** * @brief Test CPU scrubs registers after system call diff --git a/tests/arch/arm/arm_thread_swap/src/test_syscalls.h b/tests/arch/arm/arm_thread_swap/src/test_syscalls.h index 760ae3cbaa18..712db1670a4b 100644 --- a/tests/arch/arm/arm_thread_swap/src/test_syscalls.h +++ b/tests/arch/arm/arm_thread_swap/src/test_syscalls.h @@ -11,6 +11,6 @@ __syscall void test_arm_user_syscall(void); __syscall void test_arm_cpu_write_reg(void); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/arch/x86/cpu_scrubs_regs/src/main.c b/tests/arch/x86/cpu_scrubs_regs/src/main.c index 6c27f73cd1b4..3f4ea3fa078d 100644 --- a/tests/arch/x86/cpu_scrubs_regs/src/main.c +++ b/tests/arch/x86/cpu_scrubs_regs/src/main.c @@ -54,7 +54,7 @@ static inline void z_vrfy_test_cpu_write_reg(void) { z_impl_test_cpu_write_reg(); } -#include +#include /** * @brief Test CPU scrubs registers after system call diff --git a/tests/arch/x86/cpu_scrubs_regs/src/test_syscalls.h b/tests/arch/x86/cpu_scrubs_regs/src/test_syscalls.h index 105ded868ada..5b6817de8461 100644 --- a/tests/arch/x86/cpu_scrubs_regs/src/test_syscalls.h +++ b/tests/arch/x86/cpu_scrubs_regs/src/test_syscalls.h @@ -10,6 +10,6 @@ __syscall void test_cpu_write_reg(void); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/arch/x86/pagetables/src/main.c b/tests/arch/x86/pagetables/src/main.c index aa3fde1fd9ff..e42c4e3494ec 100644 --- a/tests/arch/x86/pagetables/src/main.c +++ b/tests/arch/x86/pagetables/src/main.c @@ -238,7 +238,7 @@ void z_vrfy_dump_my_ptables(void) { z_impl_dump_my_ptables(); } -#include +#include #endif /* CONFIG_USERSPACE */ void dump_pagetables(void) diff --git a/tests/arch/x86/pagetables/src/main.h b/tests/arch/x86/pagetables/src/main.h index 2a7fa3f28b70..7f7dd71f3224 100644 --- a/tests/arch/x86/pagetables/src/main.h +++ b/tests/arch/x86/pagetables/src/main.h @@ -8,6 +8,6 @@ __syscall void dump_my_ptables(void); -#include +#include #endif diff --git a/tests/benchmarks/app_kernel/src/master.c b/tests/benchmarks/app_kernel/src/master.c index ba0cf53a4f70..541be64040cc 100644 --- a/tests/benchmarks/app_kernel/src/master.c +++ b/tests/benchmarks/app_kernel/src/master.c @@ -95,7 +95,7 @@ static timing_t z_vrfy_timing_timestamp_get(void) return z_impl_timing_timestamp_get(); } -#include +#include #endif /* diff --git a/tests/benchmarks/app_kernel/src/master.h b/tests/benchmarks/app_kernel/src/master.h index 9f9c902afa90..952961ff8afa 100644 --- a/tests/benchmarks/app_kernel/src/master.h +++ b/tests/benchmarks/app_kernel/src/master.h @@ -126,6 +126,6 @@ extern struct k_mem_slab MAP1; __syscall void test_thread_priority_set(k_tid_t thread, int prio); __syscall timing_t timing_timestamp_get(void); -#include +#include #endif /* _MASTER_H */ diff --git a/tests/benchmarks/footprints/src/userspace.c b/tests/benchmarks/footprints/src/userspace.c index ef6a62cdeacd..7e94a314fb89 100644 --- a/tests/benchmarks/footprints/src/userspace.c +++ b/tests/benchmarks/footprints/src/userspace.c @@ -32,7 +32,7 @@ static inline int z_vrfy_dummy_syscall(void) { return 0; } -#include +#include int z_impl_validation_overhead_syscall(void) { @@ -47,7 +47,7 @@ static inline int z_vrfy_validation_overhead_syscall(void) return status_0 || status_1; } -#include +#include void test_drop_to_user_mode_1(void *p1, void *p2, void *p3) diff --git a/tests/benchmarks/footprints/src/userspace.h b/tests/benchmarks/footprints/src/userspace.h index 5c682a3c5708..d85da725af58 100644 --- a/tests/benchmarks/footprints/src/userspace.h +++ b/tests/benchmarks/footprints/src/userspace.h @@ -10,6 +10,6 @@ __syscall int dummy_syscall(void); __syscall int validation_overhead_syscall(void); -#include +#include #endif /* _USERSPACE_H_ */ diff --git a/tests/benchmarks/latency_measure/src/timing_sc.c b/tests/benchmarks/latency_measure/src/timing_sc.c index 9397a258b5ab..6b160e97bd31 100644 --- a/tests/benchmarks/latency_measure/src/timing_sc.c +++ b/tests/benchmarks/latency_measure/src/timing_sc.c @@ -29,7 +29,7 @@ timing_t z_vrfy_timing_timestamp_get(void) { return z_impl_timing_timestamp_get(); } -#include +#include #endif static void start_thread_entry(void *p1, void *p2, void *p3) diff --git a/tests/benchmarks/latency_measure/src/timing_sc.h b/tests/benchmarks/latency_measure/src/timing_sc.h index 265d71f50480..5d08fac5a14d 100644 --- a/tests/benchmarks/latency_measure/src/timing_sc.h +++ b/tests/benchmarks/latency_measure/src/timing_sc.h @@ -16,6 +16,6 @@ __syscall timing_t timing_timestamp_get(void); void timestamp_overhead_init(uint32_t num_iterations); uint64_t timestamp_overhead_adjustment(uint32_t options1, uint32_t options2); -#include +#include #endif diff --git a/tests/bluetooth/host/id/mocks/devicetree_generated.h b/tests/bluetooth/host/id/mocks/zephyr/devicetree_generated.h similarity index 100% rename from tests/bluetooth/host/id/mocks/devicetree_generated.h rename to tests/bluetooth/host/id/mocks/zephyr/devicetree_generated.h diff --git a/tests/bluetooth/host/id/mocks/syscalls/device.h b/tests/bluetooth/host/id/mocks/zephyr/syscalls/device.h similarity index 100% rename from tests/bluetooth/host/id/mocks/syscalls/device.h rename to tests/bluetooth/host/id/mocks/zephyr/syscalls/device.h diff --git a/tests/bluetooth/host/id/mocks/syscalls/mem_manage.h b/tests/bluetooth/host/id/mocks/zephyr/syscalls/mem_manage.h similarity index 100% rename from tests/bluetooth/host/id/mocks/syscalls/mem_manage.h rename to tests/bluetooth/host/id/mocks/zephyr/syscalls/mem_manage.h diff --git a/tests/boot/mcuboot_data_sharing/CMakeLists.txt b/tests/boot/mcuboot_data_sharing/CMakeLists.txt index 6bdbb43d36ba..ca9f15019509 100644 --- a/tests/boot/mcuboot_data_sharing/CMakeLists.txt +++ b/tests/boot/mcuboot_data_sharing/CMakeLists.txt @@ -27,4 +27,8 @@ include(${ZEPHYR_BASE}/cmake/modules/version.cmake) file(READ ${ZEPHYR_BASE}/version.h.in version_content) string(CONFIGURE "${version_content}" version_content) string(CONFIGURE "${version_content}" version_content) -file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zephyr/include/generated/mcuboot_version.h "${version_content}") +file( + WRITE + ${CMAKE_CURRENT_BINARY_DIR}/zephyr/include/generated/zephyr/mcuboot_version.h + "${version_content}" +) diff --git a/tests/boot/mcuboot_data_sharing/src/main.c b/tests/boot/mcuboot_data_sharing/src/main.c index 1cf3954169b2..f26da710fa16 100644 --- a/tests/boot/mcuboot_data_sharing/src/main.c +++ b/tests/boot/mcuboot_data_sharing/src/main.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #define FLASH_SECTOR_SIZE 1024 #define FLASH_SECTOR_SIZE_KB 4 diff --git a/tests/kernel/common/src/main.c b/tests/kernel/common/src/main.c index e618d882094d..352ae87ffeda 100644 --- a/tests/kernel/common/src/main.c +++ b/tests/kernel/common/src/main.c @@ -8,7 +8,7 @@ #include #include #include -#include "version.h" +#include /** * @defgroup kernel_common_tests Common Tests diff --git a/tests/kernel/fatal/exception/src/main.c b/tests/kernel/fatal/exception/src/main.c index 30050d3ca364..8d2cff2b1d9e 100644 --- a/tests/kernel/fatal/exception/src/main.c +++ b/tests/kernel/fatal/exception/src/main.c @@ -225,7 +225,7 @@ static inline void z_vrfy_blow_up_priv_stack(void) { z_impl_blow_up_priv_stack(); } -#include +#include #endif /* CONFIG_USERSPACE */ #endif /* CONFIG_STACK_SENTINEL */ diff --git a/tests/kernel/fatal/exception/src/test_syscalls.h b/tests/kernel/fatal/exception/src/test_syscalls.h index 096547c35e83..a3bf55630906 100644 --- a/tests/kernel/fatal/exception/src/test_syscalls.h +++ b/tests/kernel/fatal/exception/src/test_syscalls.h @@ -10,6 +10,6 @@ __syscall void blow_up_priv_stack(void); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/kernel/mem_protect/mem_protect/src/inherit.c b/tests/kernel/mem_protect/mem_protect/src/inherit.c index 8925535ef33c..021fdf884fdd 100644 --- a/tests/kernel/mem_protect/mem_protect/src/inherit.c +++ b/tests/kernel/mem_protect/mem_protect/src/inherit.c @@ -132,7 +132,7 @@ static inline struct k_heap *z_vrfy_ret_resource_pool_ptr(void) { return z_impl_ret_resource_pool_ptr(); } -#include +#include struct k_heap *child_heap_mem_ptr; struct k_heap *parent_heap_mem_ptr; diff --git a/tests/kernel/mem_protect/mem_protect/src/mem_protect.h b/tests/kernel/mem_protect/mem_protect/src/mem_protect.h index 4d5400bb1d6b..db6d448219fe 100644 --- a/tests/kernel/mem_protect/mem_protect/src/mem_protect.h +++ b/tests/kernel/mem_protect/mem_protect/src/mem_protect.h @@ -93,6 +93,6 @@ static inline void set_fault_valid(bool valid) __syscall struct k_heap *ret_resource_pool_ptr(void); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/kernel/mem_protect/syscalls/src/main.c b/tests/kernel/mem_protect/syscalls/src/main.c index 5ba99e2f72fb..7d2b0568f96d 100644 --- a/tests/kernel/mem_protect/syscalls/src/main.c +++ b/tests/kernel/mem_protect/syscalls/src/main.c @@ -63,7 +63,7 @@ static inline size_t z_vrfy_string_nlen(char *src, size_t maxlen, int *err) return ret; } -#include +#include int z_impl_string_alloc_copy(char *src) { @@ -89,7 +89,7 @@ static inline int z_vrfy_string_alloc_copy(char *src) return ret; } -#include +#include int z_impl_string_copy(char *src) { @@ -110,7 +110,7 @@ static inline int z_vrfy_string_copy(char *src) return z_impl_string_copy(kernel_buf); } -#include +#include /* Not actually used, but will copy wrong string if called by mistake instead * of the handler @@ -125,7 +125,7 @@ static inline int z_vrfy_to_copy(char *dest) { return k_usermode_to_copy((char *)dest, user_string, BUF_SIZE); } -#include +#include int z_impl_syscall_arg64(uint64_t arg) { @@ -139,7 +139,7 @@ static inline int z_vrfy_syscall_arg64(uint64_t arg) { return z_impl_syscall_arg64(arg); } -#include +#include /* Bigger 64 bit arg syscall to exercise marshalling 7+ words of * arguments (this one happens to need 9), and to test generation of @@ -166,7 +166,7 @@ static inline uint64_t z_vrfy_syscall_arg64_big(uint32_t arg1, uint32_t arg2, { return z_impl_syscall_arg64_big(arg1, arg2, arg3, arg4, arg5, arg6); } -#include +#include uint32_t z_impl_more_args(uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, @@ -190,7 +190,7 @@ static inline uint32_t z_vrfy_more_args(uint32_t arg1, uint32_t arg2, { return z_impl_more_args(arg1, arg2, arg3, arg4, arg5, arg6, arg7); } -#include +#include /** * @brief Test to demonstrate usage of k_usermode_string_nlen() @@ -417,7 +417,7 @@ static inline bool z_vrfy_syscall_context(void) { return z_impl_syscall_context(); } -#include +#include void test_syscall_context_user(void *p1, void *p2, void *p3) { diff --git a/tests/kernel/mem_protect/syscalls/src/test_syscalls.h b/tests/kernel/mem_protect/syscalls/src/test_syscalls.h index 968928c54bf5..88f2c8e29f69 100644 --- a/tests/kernel/mem_protect/syscalls/src/test_syscalls.h +++ b/tests/kernel/mem_protect/syscalls/src/test_syscalls.h @@ -27,6 +27,6 @@ __syscall uint32_t more_args(uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7); -#include +#include #endif /* _TEST_SYSCALLS_H_ */ diff --git a/tests/kernel/mem_protect/userspace/src/main.c b/tests/kernel/mem_protect/userspace/src/main.c index d2b5842ee97e..98510461e220 100644 --- a/tests/kernel/mem_protect/userspace/src/main.c +++ b/tests/kernel/mem_protect/userspace/src/main.c @@ -1009,7 +1009,7 @@ static inline void z_vrfy_check_syscall_context(void) { return z_impl_check_syscall_context(); } -#include +#include ZTEST_USER(userspace, test_syscall_context) { diff --git a/tests/kernel/mem_protect/userspace/src/test_syscall.h b/tests/kernel/mem_protect/userspace/src/test_syscall.h index bc2a5d62b042..f92b41a4e8f5 100644 --- a/tests/kernel/mem_protect/userspace/src/test_syscall.h +++ b/tests/kernel/mem_protect/userspace/src/test_syscall.h @@ -10,6 +10,6 @@ __syscall void missing_syscall(void); __syscall void check_syscall_context(void); -#include +#include #endif diff --git a/tests/kernel/threads/dynamic_thread/src/main.c b/tests/kernel/threads/dynamic_thread/src/main.c index f7e4a93d2db8..0fa88caee8cc 100644 --- a/tests/kernel/threads/dynamic_thread/src/main.c +++ b/tests/kernel/threads/dynamic_thread/src/main.c @@ -156,7 +156,7 @@ ZTEST(thread_dynamic, test_thread_index_management) switch (K_OBJ_THREAD) { /** @cond keep_doxygen_away */ - #include + #include /** @endcond */ } blob = k_object_create_dynamic_aligned(16, ret); diff --git a/tests/kernel/threads/thread_stack/src/main.c b/tests/kernel/threads/thread_stack/src/main.c index ad14e92bdfb3..bc1684271cd2 100644 --- a/tests/kernel/threads/thread_stack/src/main.c +++ b/tests/kernel/threads/thread_stack/src/main.c @@ -46,7 +46,7 @@ static inline void z_vrfy_stack_info_get(char **start_addr, z_impl_stack_info_get(start_addr, size); } -#include +#include int z_impl_check_perms(void *addr, size_t size, int write) { @@ -57,7 +57,7 @@ static inline int z_vrfy_check_perms(void *addr, size_t size, int write) { return z_impl_check_perms((void *)addr, size, write); } -#include +#include #endif /* CONFIG_USERSPACE */ /* Global data structure with object information, used by diff --git a/tests/kernel/threads/thread_stack/src/test_syscall.h b/tests/kernel/threads/thread_stack/src/test_syscall.h index eb466dd79464..a9bd7dbac1bc 100644 --- a/tests/kernel/threads/thread_stack/src/test_syscall.h +++ b/tests/kernel/threads/thread_stack/src/test_syscall.h @@ -11,6 +11,6 @@ __syscall void stack_info_get(char **start_addr, size_t *size); #ifdef CONFIG_USERSPACE __syscall int check_perms(void *addr, size_t size, int write); #endif -#include +#include #endif diff --git a/tests/misc/llext-edk/include/app_api.h b/tests/misc/llext-edk/include/app_api.h index 5270bca68735..3bf1c112f3c4 100644 --- a/tests/misc/llext-edk/include/app_api.h +++ b/tests/misc/llext-edk/include/app_api.h @@ -18,5 +18,5 @@ __syscall int foo(int bar); } #endif -#include +#include #endif /* _TEST_EDK_H_ */ diff --git a/tests/misc/llext-edk/src/foo.c b/tests/misc/llext-edk/src/foo.c index 190dac2bea69..e7a3d221e0d0 100644 --- a/tests/misc/llext-edk/src/foo.c +++ b/tests/misc/llext-edk/src/foo.c @@ -19,5 +19,5 @@ static inline int z_vrfy_foo(int bar) /* Nothing to verify */ return z_impl_foo(bar); } -#include +#include #endif diff --git a/tests/subsys/bindesc/definition/src/main.c b/tests/subsys/bindesc/definition/src/main.c index 487fa186790b..a112cc377504 100644 --- a/tests/subsys/bindesc/definition/src/main.c +++ b/tests/subsys/bindesc/definition/src/main.c @@ -6,7 +6,7 @@ #include #include -#include +#include #define STR_ID 1 #define UINT_ID 2 diff --git a/tests/subsys/llext/simple/src/syscalls_ext.h b/tests/subsys/llext/simple/src/syscalls_ext.h index 4d1b7fd43d9a..85b7371b97f1 100644 --- a/tests/subsys/llext/simple/src/syscalls_ext.h +++ b/tests/subsys/llext/simple/src/syscalls_ext.h @@ -16,4 +16,4 @@ __syscall int ext_syscall_ok(int a); */ __syscall void ext_syscall_fail(void); -#include +#include diff --git a/tests/subsys/llext/simple/src/test_llext_simple.c b/tests/subsys/llext/simple/src/test_llext_simple.c index f5e608d89128..2552844946e4 100644 --- a/tests/subsys/llext/simple/src/test_llext_simple.c +++ b/tests/subsys/llext/simple/src/test_llext_simple.c @@ -61,7 +61,7 @@ static inline int z_vrfy_ext_syscall_ok(int a) { return z_impl_ext_syscall_ok(a); } -#include +#include #endif /* CONFIG_USERSPACE */ diff --git a/tests/subsys/logging/log_benchmark/src/test_helpers.c b/tests/subsys/logging/log_benchmark/src/test_helpers.c index ad8b4f571bbf..f4d5ca7e1720 100644 --- a/tests/subsys/logging/log_benchmark/src/test_helpers.c +++ b/tests/subsys/logging/log_benchmark/src/test_helpers.c @@ -31,7 +31,7 @@ static inline void z_vrfy_test_helpers_log_setup(void) { return z_impl_test_helpers_log_setup(); } -#include +#include #endif int z_impl_test_helpers_cycle_get(void) @@ -44,7 +44,7 @@ static inline int z_vrfy_test_helpers_cycle_get(void) { return z_impl_test_helpers_cycle_get(); } -#include +#include #endif bool z_impl_test_helpers_log_dropped_pending(void) @@ -57,5 +57,5 @@ static inline bool z_vrfy_test_helpers_log_dropped_pending(void) { return z_impl_test_helpers_log_dropped_pending(); } -#include +#include #endif diff --git a/tests/subsys/logging/log_benchmark/src/test_helpers.h b/tests/subsys/logging/log_benchmark/src/test_helpers.h index 0383d840c8b9..d2b0c2213d37 100644 --- a/tests/subsys/logging/log_benchmark/src/test_helpers.h +++ b/tests/subsys/logging/log_benchmark/src/test_helpers.h @@ -12,6 +12,6 @@ __syscall void test_helpers_log_setup(void); __syscall int test_helpers_cycle_get(void); __syscall bool test_helpers_log_dropped_pending(void); -#include +#include #endif /* SRC_TEST_HELPERS_H__ */ diff --git a/tests/subsys/mgmt/mcumgr/cb_notifications/src/main.c b/tests/subsys/mgmt/mcumgr/cb_notifications/src/main.c index 99dee33e380e..aa1bd143ed96 100644 --- a/tests/subsys/mgmt/mcumgr/cb_notifications/src/main.c +++ b/tests/subsys/mgmt/mcumgr/cb_notifications/src/main.c @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include "smp_test_util.h" diff --git a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/build_date.c b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/build_date.c index 5674e338dfa2..a1503e0f9cf3 100644 --- a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/build_date.c +++ b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/build_date.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include "smp_test_util.h" diff --git a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/limited.c b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/limited.c index 613402e16242..9932d11b7a0a 100644 --- a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/limited.c +++ b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/limited.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include "smp_test_util.h" diff --git a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/main.c b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/main.c index bc86791b350a..f1828856ebb8 100644 --- a/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/main.c +++ b/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/main.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include "smp_test_util.h" diff --git a/tests/subsys/shell/shell_backend_uart/src/main.c b/tests/subsys/shell/shell_backend_uart/src/main.c index 0e5d2704eb40..2aa6d7946085 100644 --- a/tests/subsys/shell/shell_backend_uart/src/main.c +++ b/tests/subsys/shell/shell_backend_uart/src/main.c @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include +#include #include #include