public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm19] f45: Add patch to fix build with new kernels
@ 2026-09-23 22:04 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-09-23 22:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llvm19
            Branch : f45
            Commit : ff9a3f79e1cbf097ebdab9127cdbd57bfb8ecd19
            Author : Zbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
            Date   : 2026-09-11T19:04:09+02:00
            Stats  : +65/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm19/c/ff9a3f79e1cbf097ebdab9127cdbd57bfb8ecd19?branch=f45

            Log:
            Add patch to fix build with new kernels

[skip changelog]

---
diff --git a/194116.patch b/194116.patch
new file mode 100644
index 0000000..0610150
--- /dev/null
+++ b/194116.patch
@@ -0,0 +1,62 @@
+From 8d04d7dbb6eaf07bdbba7fb581f3003ed82a99db Mon Sep 17 00:00:00 2001
+From: trcrsired <uwgghhbcad@gmail.com>
+Date: Sat, 25 Apr 2026 13:33:30 +0800
+Subject: [PATCH] [compiler-rt][sanitizer] Remove linux/scc.h
+
+Linux Kernel has removed scc.h header completely from the source code
+Therefore, we need to remove the usage in compiler-rt/sanitizer too.
+https://github.com/torvalds/linux/commit/64edfa65062dc4509ba75978116b2f6d392346f5#diff-1ca78e598a5041ee51ae795d168435afad598b82a7a0ce80f215993589b96c7c
+
+Without removing it, not only it breaks compiler-rt but also GCC build
+since GCC always builds libsanitizer for linux targets.
+
+After merging this we will need to cherry pick to GCC.
+
+[sanitizer] make git-clang-format happy
+
+git-clang-format tries to ask me to format other code even
+i did not actually write the code.
+Now apply the diff it asks us to do
+---
+ .../sanitizer_platform_limits_posix.cpp       | 21 ++++++++-----------
+ 1 file changed, 9 insertions(+), 12 deletions(-)
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index 39e157d278948..3ea9002f5f19e 100644
+--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -152,16 +152,15 @@ typedef struct user_fpregs elf_fpregset_t;
+ #if defined(__mips64)
+ # include <sys/procfs.h>
+ #endif
+-#include <sys/user.h>
+-#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 <linux/if_eql.h>
++#      include <linux/if_plip.h>
++#      include <linux/lp.h>
++#      include <linux/mroute.h>
++#      include <linux/mroute6.h>
++#      include <linux/serial.h>
++#      include <sys/ipc.h>
++#      include <sys/msg.h>
++#      include <sys/user.h>
+ #endif  // SANITIZER_ANDROID
+ 
+ #include <link.h>
+@@ -537,8 +536,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
+   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);

diff --git a/llvm19.spec b/llvm19.spec
index 9d7f104..35b6205 100644
--- a/llvm19.spec
+++ b/llvm19.spec
@@ -388,6 +388,9 @@ Patch1916: 131214.patch
 # https://github.com/llvm/llvm-project/pull/137403
 Patch1917: 137403.patch
 
+# linux/scc.h is removed in recent kernels
+Patch1919: https://patch-diff.githubusercontent.com/raw/llvm/llvm-project/pull/194116.patch
+
 %if 0%{?rhel} == 8
 %global python3_pkgversion 3.12
 %global __python3 /usr/bin/python3.12

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-23 22:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 22:04 [rpms/llvm19] f45: Add patch to fix build with new kernels 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox