mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
a4d7e8ae4a
The extended capability query code is currently under arch/x86, but it is architecture neutral, and is used by arch neutral code in the Hyper-V balloon driver. Hence the balloon driver fails to build on other architectures. Fix by moving the ext cap code out from arch/x86. Because it is also called from built-in architecture specific code, it can't be in a module, so the Makefile treats as built-in even when CONFIG_HYPERV is "m". Also drivers/Makefile is tweaked because this is the first occurrence of a Hyper-V file that is built-in even when CONFIG_HYPERV is "m". While here, update the hypercall status check to use the new helper function instead of open coding. No functional change. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Reviewed-by: Sunil Muthuswamy <sunilmut@microsoft.com> Link: https://lore.kernel.org/r/1622669804-2016-1-git-send-email-mikelley@microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
17 lines
531 B
Makefile
17 lines
531 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_HYPERV) += hv_vmbus.o
|
|
obj-$(CONFIG_HYPERV_UTILS) += hv_utils.o
|
|
obj-$(CONFIG_HYPERV_BALLOON) += hv_balloon.o
|
|
|
|
CFLAGS_hv_trace.o = -I$(src)
|
|
CFLAGS_hv_balloon.o = -I$(src)
|
|
|
|
hv_vmbus-y := vmbus_drv.o \
|
|
hv.o connection.o channel.o \
|
|
channel_mgmt.o ring_buffer.o hv_trace.o
|
|
hv_vmbus-$(CONFIG_HYPERV_TESTING) += hv_debugfs.o
|
|
hv_utils-y := hv_util.o hv_kvp.o hv_snapshot.o hv_fcopy.o hv_utils_transport.o
|
|
|
|
# Code that must be built-in
|
|
obj-$(subst m,y,$(CONFIG_HYPERV)) += hv_common.o
|