Skip to content

Commit 67ca176

Browse files
Flavio Ceolinnashif
authored andcommitted
headers: Fix headers across the project
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]>
1 parent a7fffa9 commit 67ca176

File tree

505 files changed

+1463
-1458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

505 files changed

+1463
-1458
lines changed

arch/arc/include/kernel_arch_data.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* symbols" in the offsets.o module.
1818
*/
1919

20-
#ifndef _kernel_arch_data__h_
21-
#define _kernel_arch_data__h_
20+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
21+
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_
2222

2323
#ifdef __cplusplus
2424
extern "C" {
@@ -188,4 +188,4 @@ typedef struct _kernel_arch _kernel_arch_t;
188188
}
189189
#endif
190190

191-
#endif /* _kernel_arch_data__h_ */
191+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_DATA_H_ */

arch/arc/include/kernel_arch_func.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* symbols" in the offsets.o module.
1818
*/
1919

20-
#ifndef _kernel_arch_func__h_
21-
#define _kernel_arch_func__h_
20+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_
21+
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_
2222

2323
#ifdef __cplusplus
2424
extern "C" {
@@ -75,4 +75,4 @@ extern void _arc_userspace_enter(k_thread_entry_t user_entry, void *p1,
7575
}
7676
#endif
7777

78-
#endif /* _kernel_arch_func__h_ */
78+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_FUNC_H_ */

arch/arc/include/kernel_arch_thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* necessary to instantiate instances of struct k_thread.
1818
*/
1919

20-
#ifndef _kernel_arch_thread__h_
21-
#define _kernel_arch_thread__h_
20+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_
21+
#define ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_
2222

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

8080
#endif /* _ASMLANGUAGE */
8181

82-
#endif /* _kernel_arch_thread__h_ */
82+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_KERNEL_ARCH_THREAD_H_ */

arch/arc/include/offsets_short_arch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef _offsets_short_arch__h_
8-
#define _offsets_short_arch__h_
7+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
8+
#define ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_
99

1010
#include <offsets.h>
1111

@@ -43,4 +43,4 @@
4343

4444
/* end - threads */
4545

46-
#endif /* _offsets_short_arch__h_ */
46+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_OFFSETS_SHORT_ARCH_H_ */

arch/arc/include/swap_macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* SPDX-License-Identifier: Apache-2.0
77
*/
88

9-
#ifndef _SWAP_MACROS__H_
10-
#define _SWAP_MACROS__H_
9+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
10+
#define ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_
1111

1212
#include <kernel_structs.h>
1313
#include <offsets_short.h>
@@ -278,4 +278,4 @@ extern "C" {
278278
}
279279
#endif
280280

281-
#endif /* _SWAP_MACROS__H_ */
281+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_SWAP_MACROS_H_ */

arch/arc/include/tracing_arch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @brief Kernel event logger support for ARM
1010
*/
1111

12-
#ifndef __KERNEL_TRACING_H__
13-
#define __KERNEL_TRACING_H__
12+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_
13+
#define ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_
1414

1515
#ifdef __cplusplus
1616
extern "C" {
@@ -33,4 +33,4 @@ int _sys_current_irq_key_get(void)
3333
}
3434
#endif
3535

36-
#endif /* __KERNEL_TRACING_H__ */
36+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_TRACING_ARCH_H_ */

arch/arc/include/v2/cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* ARCv2 processor architecture.
1313
*/
1414

15-
#ifndef _ARCV2_CACHE__H_
16-
#define _ARCV2_CACHE__H_
15+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_
16+
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_
1717

1818
#include <arch/cpu.h>
1919

@@ -56,4 +56,4 @@ static ALWAYS_INLINE void _icache_setup(void)
5656
}
5757
#endif
5858

59-
#endif /* _ARCV2_CACHE__H_ */
59+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_CACHE_H_ */

arch/arc/include/v2/irq.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* other definitions for the ARCv2 processor architecture.
1313
*/
1414

15-
#ifndef _ARCV2_IRQ__H_
16-
#define _ARCV2_IRQ__H_
15+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
16+
#define ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_
1717

1818
#ifdef __cplusplus
1919
extern "C" {
@@ -64,4 +64,4 @@ static ALWAYS_INLINE void _irq_setup(void)
6464
}
6565
#endif
6666

67-
#endif /* _ARCV2_IRQ__H_ */
67+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_V2_IRQ_H_ */

arch/arc/include/vector_table.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* Refer to the ARCv2 manual for an explanation of the exceptions.
1919
*/
2020

21-
#ifndef _VECTOR_TABLE__H_
22-
#define _VECTOR_TABLE__H_
21+
#ifndef ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_
22+
#define ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_
2323

2424
#ifdef __cplusplus
2525
extern "C" {
@@ -77,4 +77,4 @@ extern void __ev_maligned(void);
7777
}
7878
#endif
7979

80-
#endif /* _VECTOR_TABLE__H_ */
80+
#endif /* ZEPHYR_ARCH_ARC_INCLUDE_VECTOR_TABLE_H_ */

arch/arm/core/cortex_m/vector_table.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* No other symbol has the same format, so they are easy to spot.
1919
*/
2020

21-
#ifndef _VECTOR_TABLE__H_
22-
#define _VECTOR_TABLE__H_
21+
#ifndef ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_
22+
#define ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_
2323

2424
#ifdef __cplusplus
2525
extern "C" {
@@ -68,4 +68,4 @@ extern void *_vector_table[];
6868
}
6969
#endif
7070

71-
#endif /* _VECTOR_TABLE__H_ */
71+
#endif /* ZEPHYR_ARCH_ARM_CORE_CORTEX_M_VECTOR_TABLE_H_ */

0 commit comments

Comments
 (0)