Skip to content

Commit 8017c99

Browse files
arndbliuw
authored andcommitted
hyperv/vmbus: include linux/bitops.h
On arm64 randconfig builds, hyperv sometimes fails with this error: In file included from drivers/hv/hv_trace.c:3: In file included from drivers/hv/hyperv_vmbus.h:16: In file included from arch/arm64/include/asm/sync_bitops.h:5: arch/arm64/include/asm/bitops.h:11:2: error: only <linux/bitops.h> can be included directly In file included from include/asm-generic/bitops/hweight.h:5: include/asm-generic/bitops/arch_hweight.h:9:9: error: implicit declaration of function '__sw_hweight32' [-Werror,-Wimplicit-function-declaration] include/asm-generic/bitops/atomic.h:17:7: error: implicit declaration of function 'BIT_WORD' [-Werror,-Wimplicit-function-declaration] Include the correct header first. Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent f5c20e4 commit 8017c99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hv/hyperv_vmbus.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define _HYPERV_VMBUS_H
1414

1515
#include <linux/list.h>
16+
#include <linux/bitops.h>
1617
#include <asm/sync_bitops.h>
1718
#include <asm/hyperv-tlfs.h>
1819
#include <linux/atomic.h>

0 commit comments

Comments
 (0)