summaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm/bitops/fls.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/openrisc/include/asm/bitops/fls.h')
-rw-r--r--arch/openrisc/include/asm/bitops/fls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/include/asm/bitops/fls.h b/arch/openrisc/include/asm/bitops/fls.h
index 6b77f6556fb9..77da7639bb3e 100644
--- a/arch/openrisc/include/asm/bitops/fls.h
+++ b/arch/openrisc/include/asm/bitops/fls.h
@@ -11,7 +11,7 @@
#ifdef CONFIG_OPENRISC_HAVE_INST_FL1
-static inline int fls(unsigned int x)
+static inline __attribute_const__ int fls(unsigned int x)
{
int ret;