From: Michael Jeanson Date: Wed, 10 Aug 2022 15:07:14 +0000 (-0400) Subject: fix: tie compaction probe build to CONFIG_COMPACTION X-Git-Tag: v2.12.10~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e28ca43f665181c96531e90958fda734a857542b;p=lttng-modules.git fix: tie compaction probe build to CONFIG_COMPACTION The definition of 'struct compact_control' in 'mm/internal.h' depends on CONFIG_COMPACTION being defined. Only build the compaction probe when this configuration option is enabled. Thanks to Bruce Ashfield for reporting this issue. Change-Id: I81e77aa9c1bf10452c152d432fe5224df0db42c9 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/Kbuild b/probes/Kbuild index 4db634ab..7f88c9f5 100644 --- a/probes/Kbuild +++ b/probes/Kbuild @@ -167,7 +167,9 @@ ifneq ($(CONFIG_BTRFS_FS),) endif # $(wildcard $(btrfs_dep)) endif # CONFIG_BTRFS_FS -obj-$(CONFIG_LTTNG) += lttng-probe-compaction.o +ifneq ($(CONFIG_COMPACTION),) + obj-$(CONFIG_LTTNG) += lttng-probe-compaction.o +endif # CONFIG_COMPACTION ifneq ($(CONFIG_EXT4_FS),) ext4_dep = $(srctree)/fs/ext4/*.h