common: Drop linux/bitops.h from common header
[oweals/u-boot.git] / arch / riscv / include / asm / encoding.h
index a0695da93643b8c07d8e4b20c3b2d2702f799900..edafad36b38ddb0f4f2a9ffbc66ad17260858f0f 100644 (file)
@@ -8,6 +8,9 @@
 #define RISCV_CSR_ENCODING_H
 
 #include <asm/csr.h>
+#ifndef __ASSEMBLY__
+#include <linux/bitops.h>
+#endif
 
 #if CONFIG_IS_ENABLED(RISCV_SMODE)
 #define MODE_PREFIX(__suffix)  s##__suffix