summarylogtreecommitdiffstats
path: root/0000-kernel-7.1-remove-linux-scc.patch
blob: bcbfe7ed766333b235895ab145697188ab1eec8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
The <linux/scc.h> header was removed from the Linux kernel in Apr 2026,
so references to it need to be removed for GCC to build. Thankfully,
this header appears to be unused. This solution was adapted from the one
found by the LLVM project:
https://github.com/llvm/llvm-project/issues/194110

Nathan Williams

NetBSD: patch-libsanitizer_sanitizer__common_sanitizer__platform__limits__posix.cpp
OpenSUSE: compiler-rt-Remove-linux-scc-h.patch

gcc10

diff -pNaru5 a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp	2026-09-21 23:44:10.099998361 -0400
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp	2026-09-21 23:44:31.156844479 -0400
@@ -135,11 +135,10 @@ typedef struct user_fpregs elf_fpregset_
 #include <linux/if_eql.h>
 #include <linux/if_plip.h>
 #include <linux/lp.h>
 #include <linux/mroute.h>
 #include <linux/mroute6.h>
-#include <linux/scc.h>
 #include <linux/serial.h>
 #include <sys/msg.h>
 #include <sys/ipc.h>
 #include <crypt.h>
 #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
@@ -453,12 +452,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El
   unsigned struct_kbentry_sz = sizeof(struct kbentry);
   unsigned struct_kbkeycode_sz = sizeof(struct kbkeycode);
   unsigned struct_kbsentry_sz = sizeof(struct kbsentry);
   unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);
   unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);
-  unsigned struct_scc_modem_sz = sizeof(struct scc_modem);
-  unsigned struct_scc_stat_sz = sizeof(struct scc_stat);
   unsigned struct_serial_multiport_struct_sz
       = sizeof(struct serial_multiport_struct);
   unsigned struct_serial_struct_sz = sizeof(struct serial_struct);
   unsigned struct_sockaddr_ax25_sz = sizeof(struct sockaddr_ax25);
   unsigned struct_unimapdesc_sz = sizeof(struct unimapdesc);