soc: intel_adsp: fix inclusion of sys/util.h under XCC assembler

This moves the inclusion of sys/util.h inside the #if block to
avoid this being included when going through XCC's assembler.
With the old behavior, a bunch of std*.h get pulled in resulted
in build failure as keywords such as "typedef" are not supposed
to be in assembly files according to XCC assembler.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-07-01 11:42:52 -07:00 committed by Anas Nashif
commit 5fbe389d9f
4 changed files with 4 additions and 4 deletions

View file

@ -9,10 +9,10 @@
#ifndef __PLATFORM_LIB_SHIM_H__ #ifndef __PLATFORM_LIB_SHIM_H__
#define __PLATFORM_LIB_SHIM_H__ #define __PLATFORM_LIB_SHIM_H__
#include <sys/util.h>
#include <soc/memory.h> #include <soc/memory.h>
#ifndef ASSEMBLY #ifndef ASSEMBLY
#include <sys/util.h>
#include <stdint.h> #include <stdint.h>
#endif #endif

View file

@ -10,10 +10,10 @@
#ifndef __PLATFORM_LIB_SHIM_H__ #ifndef __PLATFORM_LIB_SHIM_H__
#define __PLATFORM_LIB_SHIM_H__ #define __PLATFORM_LIB_SHIM_H__
#include <sys/util.h>
#include <soc/memory.h> #include <soc/memory.h>
#ifndef ASSEMBLY #ifndef ASSEMBLY
#include <sys/util.h>
#include <stdint.h> #include <stdint.h>
#endif #endif

View file

@ -10,10 +10,10 @@
#ifndef __PLATFORM_LIB_SHIM_H__ #ifndef __PLATFORM_LIB_SHIM_H__
#define __PLATFORM_LIB_SHIM_H__ #define __PLATFORM_LIB_SHIM_H__
#include <sys/util.h>
#include <soc/memory.h> #include <soc/memory.h>
#ifndef ASSEMBLY #ifndef ASSEMBLY
#include <sys/util.h>
#include <stdint.h> #include <stdint.h>
#endif #endif

View file

@ -10,10 +10,10 @@
#ifndef __PLATFORM_LIB_SHIM_H__ #ifndef __PLATFORM_LIB_SHIM_H__
#define __PLATFORM_LIB_SHIM_H__ #define __PLATFORM_LIB_SHIM_H__
#include <sys/util.h>
#include <soc/memory.h> #include <soc/memory.h>
#ifndef ASSEMBLY #ifndef ASSEMBLY
#include <sys/util.h>
#include <stdint.h> #include <stdint.h>
#endif #endif