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 a346b34..22d6df6 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__ */