Skip to content

arch: arm: remove redundant definitions of typeof #16199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions arch/arm/include/cortex_m/cmse.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,6 @@ int arm_cmse_addr_range_read_ok(u32_t addr, u32_t size, int force_npriv);
*/
int arm_cmse_addr_range_readwrite_ok(u32_t addr, u32_t size, int force_npriv);

/* Required for C99 compilation */
#ifndef typeof
#define typeof __typeof__
#endif

/**
* @brief Read accessibility of an object
*
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/include/cortex_m/tz.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ int tz_sau_region_configure(tz_sau_conf_t *p_sau_conf);
*/
typedef void __attribute__((cmse_nonsecure_call)) (*tz_ns_func_ptr_t) (void);

/* Required for C99 compilation */
#define typeof __typeof__

#if defined(CONFIG_ARM_FIRMWARE_HAS_SECURE_ENTRY_FUNCS)
/**
* @brief Non-Secure entry function attribute.
Expand Down