difos/target/linux/bcm27xx/patches-6.12/950-0449-module-Avoid-ABI-changes-when-debug-info-is-disabled.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

25 lines
855 B
Diff

From df2f27c5b29f7eb42450bfe2eb2c2308e84c0db5 Mon Sep 17 00:00:00 2001
From: Ben Hutchings <benh@debian.org>
Date: Fri, 13 May 2022 21:08:08 +0200
Subject: [PATCH] module: Avoid ABI changes when debug info is disabled
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.
---
include/linux/module.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -518,7 +518,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;
unsigned int btf_base_data_size;
void *btf_data;