8ea7e963866667de5623807414d38809cdbb9441
[openwrt/staging/linusw.git] /
1 From cef5502a62eac90de1299bdd3a804b26675003c7 Mon Sep 17 00:00:00 2001
2 From: Ben Hutchings <benh@debian.org>
3 Date: Fri, 13 May 2022 21:08:08 +0200
4 Subject: [PATCH 1021/1085] module: Avoid ABI changes when debug info is
5 disabled
6
7 CI builds are done with debug info disabled, but this removes some
8 members from struct module. This causes builds to fail if there is an
9 ABI reference for the current ABI.
10
11 Define these members unconditionally, so that there is no ABI change.
12 ---
13 include/linux/module.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/include/linux/module.h
17 +++ b/include/linux/module.h
18 @@ -512,7 +512,7 @@ struct module {
19 unsigned int num_bpf_raw_events;
20 struct bpf_raw_event_map *bpf_raw_events;
21 #endif
22 -#ifdef CONFIG_DEBUG_INFO_BTF_MODULES
23 +#if 1
24 unsigned int btf_data_size;
25 void *btf_data;
26 #endif