Skip to content

Commit 01a71ea

Browse files
ioannisgMaureenHelm
authored andcommitted
arch: arm: remove redundant definitions of typeof
The typeof definitions in tz.h and cmse.h are not required any more, as the ARM GCC toolchain intrinsics have been modified to use __typeof__ directly. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent bf74f54 commit 01a71ea

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

arch/arm/include/cortex_m/cmse.h

-5
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ int arm_cmse_addr_range_read_ok(u32_t addr, u32_t size, int force_npriv);
136136
*/
137137
int arm_cmse_addr_range_readwrite_ok(u32_t addr, u32_t size, int force_npriv);
138138

139-
/* Required for C99 compilation */
140-
#ifndef typeof
141-
#define typeof __typeof__
142-
#endif
143-
144139
/**
145140
* @brief Read accessibility of an object
146141
*

arch/arm/include/cortex_m/tz.h

-3
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@ int tz_sau_region_configure(tz_sau_conf_t *p_sau_conf);
283283
*/
284284
typedef void __attribute__((cmse_nonsecure_call)) (*tz_ns_func_ptr_t) (void);
285285

286-
/* Required for C99 compilation */
287-
#define typeof __typeof__
288-
289286
#if defined(CONFIG_ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS)
290287
/**
291288
* @brief Non-Secure entry function attribute.

0 commit comments

Comments
 (0)