summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/module-avoid-abi-changes-when-debug-info-is-disabled.patch
blob: 3582f4ba33b103dfe57a27d8112a534e0e5d1718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ben Hutchings <benh@debian.org>
Date: Fri, 13 May 2022 21:08:08 +0200
Subject: module: Avoid ABI changes when debug info is disabled
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.

---
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -471,7 +471,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