]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: octeon: octeon-model.h: Enable inclusion from assembler files
authorStefan Roese <sr@denx.de>
Thu, 20 Aug 2020 05:21:55 +0000 (07:21 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 7 Oct 2020 18:25:57 +0000 (20:25 +0200)
Add the #ifdef __ASSEMBLY__ checks to enable inclusion of this header
from assembler files.

Signed-off-by: Stefan Roese <sr@denx.de>
arch/mips/mach-octeon/include/mach/octeon-model.h

index a346b3472b847da50002289edc656cfaab722f48..22d6df6a9e18ba9a99f20bd48334423beab08dab 100644 (file)
                  )));                                                  \
        })
 
+#ifndef __ASSEMBLY__
+
 #ifndef OCTEON_IS_MODEL
 
 static inline int __octeon_is_model_runtime_internal__(u32 model)
@@ -310,4 +312,6 @@ static inline u32 cvmx_get_octeon_family(void)
        return (read_c0_prid() & OCTEON_FAMILY_MASK);
 }
 
+#endif /* __ASSEMBLY__ */
+
 #endif /* __OCTEON_MODEL_H__ */