mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-09-22 10:19:23 +00:00
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.44 Removed upstreamed: generic-backport/220-v6.16-powerpc-boot-fix-build-with-gcc-15.patch[1] imx/patches-6.12/506-pending-PCI-imx6-Remove-apps_reset-toggle-in-_core_reset-function.patch[2] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.44&id=e42ac65e257b875614dd8f435b026a3e379e92e6 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.44&id=90fa5884bc8f52cbf493492e32978c723c85e6ab Build system: x86/64 (Intel N150 based) Build-tested: flogic/gl.inet-gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc Run-tested: flogic/gl.inet-gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/19892 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
30 lines
824 B
Diff
30 lines
824 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Thu, 22 Oct 2020 22:00:03 +0200
|
|
Subject: [PATCH] compiler.h: only include asm/rwonce.h for kernel code
|
|
|
|
This header file is not in uapi, which makes any user space code that includes
|
|
linux/compiler.h to fail with the error 'asm/rwonce.h: No such file or directory'
|
|
|
|
Fixes: e506ea451254 ("compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h")
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/include/linux/compiler.h
|
|
+++ b/include/linux/compiler.h
|
|
@@ -191,6 +191,8 @@ void ftrace_likely_update(struct ftrace_
|
|
__v; \
|
|
})
|
|
|
|
+#include <asm/rwonce.h>
|
|
+
|
|
#endif /* __KERNEL__ */
|
|
|
|
/**
|
|
@@ -298,6 +300,4 @@ static inline void *offset_to_ptr(const
|
|
*/
|
|
#define prevent_tail_call_optimization() mb()
|
|
|
|
-#include <asm/rwonce.h>
|
|
-
|
|
#endif /* __LINUX_COMPILER_H */
|