module: Avoid ABI changes when debug info is disabled
authorBen Hutchings <benh@debian.org>
Fri, 13 May 2022 19:08:08 +0000 (21:08 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 7 Feb 2025 09:43:47 +0000 (10:43 +0100)
Forwarded: not-needed

CI builds are done with debug info disabled, but this removes some
members from struct module.  This causes builds to fail if there is an
ABI reference for the current ABI.

Define these members unconditionally, so that there is no ABI change.

Gbp-Pq: Topic debian
Gbp-Pq: Name module-avoid-abi-changes-when-debug-info-is-disabled.patch

include/linux/module.h

index 35876e89eb93fc939ef52949fd3d5c9c4064d0eb..d6165bd849a77af1fb3eddb428f1aec8398ed9a0 100644 (file)
@@ -473,7 +473,7 @@ struct module {
        unsigned int num_bpf_raw_events;
        struct bpf_raw_event_map *bpf_raw_events;
 #endif
-#ifdef CONFIG_DEBUG_INFO_BTF_MODULES
+#if 1
        unsigned int btf_data_size;
        void *btf_data;
 #endif