bitops: fls64: add missing include
Subsystems (2)
PATCH 1/1 bitops: fls64: add missing include
--- include/asm-generic/bitops/fls64.h | 1 + 1 file changed, 1 insertion(+)
include/asm-generic/bitops/fls64.h +1 -0
@@ -2,6 +2,7 @@#define _ASM_GENERIC_BITOPS_FLS64_H_#include <asm/types.h> +#include <asm-generic/bitops/__fls.h> /** * fls64 - find last set bit in a 64-bit word
Signature · 7 lines
2.1.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Raphael Poggi
Signed-off-by Raphael Poggi <[email protected]>--- include/asm-generic/bitops/fls64.h | 1 + 1 file changed, 1 insertion(+)include/asm-generic/bitops/fls64.h +0
-0
include/asm-generic/bitops/fls64.h line 5
Quoted 4 lines
include/asm-generic/bitops/fls64.h +1
-0@@ -2,6 +2,7 @@#define _ASM_GENERIC_BITOPS_FLS64_H_#include <asm/types.h> +#include <asm-generic/bitops/__fls.h>
This is wrong. This include must not be here to give the architecture the chance to provide an optimized version of __fls(), but the generic version of fls64(). This may not be clear in barebox context since all users use the generic version, but in the kernel there are some architectures implementing their own version of __fls() while others use the generic variant:
arch/mips/include/asm/bitops.h:480:static inline unsigned long __fls(unsigned long word)
...
#include <asm-generic/bitops/fls64.h>
arch/metag/include/asm/bitops.h:118:#include <asm-generic/bitops/__fls.h>
...
#include <asm-generic/bitops/fls64.h>
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
2016-04-14 9:58 GMT+02:00 Sascha Hauer <[email protected]>:
Quoted 35 lines · Raphael Poggi
Quoted 10 lines
Signed-off-by Raphael Poggi <[email protected]>--- include/asm-generic/bitops/fls64.h | 1 + 1 file changed, 1 insertion(+)include/asm-generic/bitops/fls64.h +0
-0include/asm-generic/bitops/fls64.h line 5
Quoted 4 lines
include/asm-generic/bitops/fls64.h +1
-0@@ -2,6 +2,7 @@#define _ASM_GENERIC_BITOPS_FLS64_H_#include <asm/types.h> +#include <asm-generic/bitops/__fls.h> This is wrong. This include must not be here to give the architecture the chance to provide an optimized version of
__fls(), but the generic version offls64(). This may not be clear in barebox context since all users use the generic version, but in the kernel there are some architectures implementing their own version of__fls()while others use the generic variant:arch/mips/include/asm/bitops.h:480:static inline unsigned long
__fls(unsigned long word)
...
#include <asm-generic/bitops/fls64.h>arch/metag/include/asm/bitops.h:118:#include <
asm-generic/bitops/__fls.h>
...
#include <asm-generic/bitops/fls64.h>Sascha
Quoted 5 lines
--
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Ok, I understand how it works now,
Thank you,
Raphaël
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox