diff --git a/include/linker/section_tags.h b/include/linker/section_tags.h index a578e8609d2..b0bfd6d5294 100644 --- a/include/linker/section_tags.h +++ b/include/linker/section_tags.h @@ -34,6 +34,8 @@ #if defined(CONFIG_NOCACHE_MEMORY) #define __nocache __in_section_unique(_NOCACHE_SECTION_NAME) +#else +#define __nocache #endif /* CONFIG_NOCACHE_MEMORY */ #endif /* !_ASMLANGUAGE */