From cda9fae97ed528f7ce3e523906d79e1cb861d06e Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Fri, 13 May 2022 21:08:08 +0200 Subject: [PATCH] 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. Gbp-Pq: Topic debian Gbp-Pq: Name module-avoid-abi-changes-when-debug-info-is-disabled.patch --- include/linux/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/module.h b/include/linux/module.h index a98e188cf37..2e07b5743c4 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -507,7 +507,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 -- 2.30.2