Skip to content

Commit

Permalink
headers: Fix headers across the project
Browse files Browse the repository at this point in the history
Any word started with underscore followed by and uppercase letter or a
second underscore is a reserved word according with C99.

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin authored and nashif committed Sep 17, 2018
1 parent a7fffa9 commit 67ca176
Show file tree
Hide file tree
Showing 505 changed files with 1,463 additions and 1,458 deletions.
6 changes: 3 additions & 3 deletions arch/arc/include/kernel_arch_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* symbols" in the offsets.o module.
*/

#ifndef _kernel_arch_data__h_
#define _kernel_arch_data__h_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -188,4 +188,4 @@ typedef struct _kernel_arch _kernel_arch_t;
}
#endif

#endif /* _kernel_arch_data__h_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/kernel_arch_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* symbols" in the offsets.o module.
*/

#ifndef _kernel_arch_func__h_
#define _kernel_arch_func__h_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -75,4 +75,4 @@ extern void _arc_userspace_enter(k_thread_entry_t user_entry, void *p1,
}
#endif

#endif /* _kernel_arch_func__h_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/kernel_arch_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread.
*/

#ifndef _kernel_arch_thread__h_
#define _kernel_arch_thread__h_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_

/*
* Reason a thread has relinquished control: threads can only be in the NONE
Expand Down Expand Up @@ -79,4 +79,4 @@ typedef struct _thread_arch _thread_arch_t;

#endif /* _ASMLANGUAGE */

#endif /* _kernel_arch_thread__h_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/offsets_short_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _offsets_short_arch__h_
#define _offsets_short_arch__h_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_

#include <offsets.h>

Expand Down Expand Up @@ -43,4 +43,4 @@

/* end - threads */

#endif /* _offsets_short_arch__h_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/swap_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _SWAP_MACROS__H_
#define _SWAP_MACROS__H_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_

#include <kernel_structs.h>
#include <offsets_short.h>
Expand Down Expand Up @@ -278,4 +278,4 @@ extern "C" {
}
#endif

#endif /* _SWAP_MACROS__H_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/tracing_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* @brief Kernel event logger support for ARM
*/

#ifndef __KERNEL_TRACING_H__
#define __KERNEL_TRACING_H__
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_

#ifdef __cplusplus
extern "C" {
Expand All @@ -33,4 +33,4 @@ int _sys_current_irq_key_get(void)
}
#endif

#endif /* __KERNEL_TRACING_H__ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/v2/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* ARCv2 processor architecture.
*/

#ifndef _ARCV2_CACHE__H_
#define _ARCV2_CACHE__H_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_

#include <arch/cpu.h>

Expand Down Expand Up @@ -56,4 +56,4 @@ static ALWAYS_INLINE void _icache_setup(void)
}
#endif

#endif /* _ARCV2_CACHE__H_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/v2/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* other definitions for the ARCv2 processor architecture.
*/

#ifndef _ARCV2_IRQ__H_
#define _ARCV2_IRQ__H_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -64,4 +64,4 @@ static ALWAYS_INLINE void _irq_setup(void)
}
#endif

#endif /* _ARCV2_IRQ__H_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_ */
6 changes: 3 additions & 3 deletions arch/arc/include/vector_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* Refer to the ARCv2 manual for an explanation of the exceptions.
*/

#ifndef _VECTOR_TABLE__H_
#define _VECTOR_TABLE__H_
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_
#define ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -77,4 +77,4 @@ extern void __ev_maligned(void);
}
#endif

#endif /* _VECTOR_TABLE__H_ */
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_ */
6 changes: 3 additions & 3 deletions arch/arm/core/cortex_m/vector_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* No other symbol has the same format, so they are easy to spot.
*/

#ifndef _VECTOR_TABLE__H_
#define _VECTOR_TABLE__H_
#ifndef ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_
#define ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -68,4 +68,4 @@ extern void *_vector_table[];
}
#endif

#endif /* _VECTOR_TABLE__H_ */
#endif /* ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/cortex_m/cmse.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* CMSE API for Cortex-M23/M33 CPUs.
*/

#ifndef _ARM_CORTEXM_CMSE__H_
#define _ARM_CORTEXM_CMSE__H_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -449,4 +449,4 @@ int arm_cmse_addr_range_nonsecure_readwrite_ok(u32_t addr, u32_t size,
}
#endif

#endif /* _ARM_CORTEXM_CMSE__H_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_CMSE_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/cortex_m/exc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* Exception/interrupt context helpers.
*/

#ifndef _ARM_CORTEXM_ISR__H_
#define _ARM_CORTEXM_ISR__H_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_

#include <arch/cpu.h>

Expand Down Expand Up @@ -167,4 +167,4 @@ static ALWAYS_INLINE void _ClearFaults(void)
#endif


#endif /* _ARM_CORTEXM_ISR__H_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_EXC_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/cortex_m/stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* Stack helper functions.
*/

#ifndef _ARM_CORTEXM_STACK__H_
#define _ARM_CORTEXM_STACK__H_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -63,4 +63,4 @@ static ALWAYS_INLINE void _InterruptStackSetup(void)
}
#endif

#endif /* _ARM_CORTEXM_STACK__H_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_STACK_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/cortex_m/tz.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* TrustZone API for Cortex-M23/M33 CPUs implementing the Security Extension.
*/

#ifndef _ARM_CORTEXM_TZ__H_
#define _ARM_CORTEXM_TZ__H_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -326,4 +326,4 @@ typedef void __attribute__((cmse_nonsecure_call)) (*tz_ns_func_ptr_t) (void);
}
#endif

#endif /* _ARM_CORTEXM_TZ__H_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_CORTEX_M_TZ_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/kernel_arch_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* in the offsets.o module.
*/

#ifndef _kernel_arch_data__h_
#define _kernel_arch_data__h_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -67,4 +67,4 @@ typedef struct _kernel_arch _kernel_arch_t;
}
#endif

#endif /* _kernel_arch_data__h_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_DATA_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/kernel_arch_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

/* this file is only meant to be included by kernel_structs.h */

#ifndef _kernel_arch_func__h_
#define _kernel_arch_func__h_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -135,4 +135,4 @@ extern FUNC_NORETURN void _arm_userspace_enter(k_thread_entry_t user_entry,
}
#endif

#endif /* _kernel_arch_func__h_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_FUNC_H_ */
4 changes: 2 additions & 2 deletions arch/arm/include/kernel_arch_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread.
*/

#ifndef _kernel_arch_thread_h_
#define _kernel_arch_thread_h_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_THREAD_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_KERNEL_ARCH_THREAD_H_

#ifndef _ASMLANGUAGE
#include <zephyr/types.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/include/offsets_short_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _offsets_short_arch__h_
#define _offsets_short_arch__h_
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_

#include <offsets.h>

Expand Down Expand Up @@ -36,4 +36,4 @@

/* end - threads */

#endif /* _offsets_short_arch__h_ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
6 changes: 3 additions & 3 deletions arch/arm/include/tracing_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* @brief Kernel event logger support for ARM
*/

#ifndef __KERNEL_TRACING_H__
#define __KERNEL_TRACING_H__
#ifndef ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_
#define ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_

#ifdef __cplusplus
extern "C" {
Expand All @@ -34,4 +34,4 @@ int _sys_current_irq_key_get(void)
}
#endif

#endif /* __KERNEL_TRACING_H__ */
#endif /* ZEPHYR_ARCH_ARM_INCLUDE_TRACING_ARCH_H_ */
6 changes: 3 additions & 3 deletions arch/nios2/include/kernel_arch_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* symbols" in the offsets.o module.
*/

#ifndef _kernel_arch_data__h_
#define _kernel_arch_data__h_
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -61,4 +61,4 @@ extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);
}
#endif

#endif /* _kernel_arch_data__h_ */
#endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_DATA_H_ */
6 changes: 3 additions & 3 deletions arch/nios2/include/kernel_arch_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* symbols" in the offsets.o module.
*/

#ifndef _kernel_arch_func__h_
#define _kernel_arch_func__h_
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -72,4 +72,4 @@ void _nios2_dcache_flush_no_writeback(void *start, u32_t len);
}
#endif

#endif /* _kernel_arch_func__h_ */
#endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_FUNC_H_ */
6 changes: 3 additions & 3 deletions arch/nios2/include/kernel_arch_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* necessary to instantiate instances of struct k_thread.
*/

#ifndef _kernel_arch_thread__h_
#define _kernel_arch_thread__h_
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_

#ifndef _ASMLANGUAGE
#include <zephyr/types.h>
Expand Down Expand Up @@ -71,5 +71,5 @@ typedef struct _thread_arch _thread_arch_t;

#endif /* _ASMLANGUAGE */

#endif /* _kernel_arch_thread__h_ */
#endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_KERNEL_ARCH_THREAD_H_ */

6 changes: 3 additions & 3 deletions arch/nios2/include/offsets_short_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef _offsets_short_arch__h_
#define _offsets_short_arch__h_
#ifndef ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_

#include <offsets.h>

Expand Down Expand Up @@ -58,4 +58,4 @@

/* end - threads */

#endif /* _offsets_short_arch__h_ */
#endif /* ZEPHYR_ARCH_NIOS2_INCLUDE_OFFSETS_SHORT_ARCH_H_ */
Loading

0 comments on commit 67ca176

Please sign in to comment.