]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hyperv/vmbus: include linux/bitops.h
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Oct 2021 13:19:08 +0000 (15:19 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:41:50 +0000 (18:41 +0100)
commit56cd92c68a43fe7493e019ea45fbac4872eb92eb
tree03e5dba39f4655646b34de57b4bdea21de2a1a97
parent3720d671003ad3ae8498743349b2a4e9f9a4618f
hyperv/vmbus: include linux/bitops.h

BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit 8017c99680fa65e1e8d999df1583de476a187830 ]

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 <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211018131929.2260087-1-arnd@kernel.org
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/hv/hyperv_vmbus.h