generic: 5.10: refresh backport patches
Refresh backport patches for kernel 5.10. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
6893dd4803
commit
6b4bdab918
4 changed files with 15 additions and 14 deletions
|
@ -39,13 +39,13 @@ Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -416,7 +416,8 @@ HOSTCXX = g++
|
@@ -416,7 +416,8 @@ HOSTCXX = g++
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
- -O2 -fomit-frame-pointer -std=gnu89
|
- -O2 -fomit-frame-pointer -std=gnu89
|
||||||
+ -O2 -fomit-frame-pointer -std=gnu89 \
|
+ -O2 -fomit-frame-pointer -std=gnu89 \
|
||||||
+ -Wdeclaration-after-statement
|
+ -Wdeclaration-after-statement
|
||||||
export KBUILD_USERLDFLAGS :=
|
export KBUILD_USERLDFLAGS :=
|
||||||
|
|
||||||
KBUILD_HOSTCFLAGS := $(KBUILD_USERCFLAGS) $(HOST_LFS_CFLAGS) $(HOSTCFLAGS)
|
KBUILD_HOSTCFLAGS := $(KBUILD_USERCFLAGS) $(HOST_LFS_CFLAGS) $(HOSTCFLAGS)
|
||||||
--- a/arch/arm64/kernel/vdso32/Makefile
|
--- a/arch/arm64/kernel/vdso32/Makefile
|
||||||
+++ b/arch/arm64/kernel/vdso32/Makefile
|
+++ b/arch/arm64/kernel/vdso32/Makefile
|
||||||
|
@ -61,13 +61,13 @@ Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
||||||
+++ b/scripts/mod/modpost.c
|
+++ b/scripts/mod/modpost.c
|
||||||
@@ -844,8 +844,10 @@ static int match(const char *sym, const
|
@@ -844,8 +844,10 @@ static int match(const char *sym, const
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
while (*pat) {
|
while (*pat) {
|
||||||
+ const char *endp;
|
+ const char *endp;
|
||||||
+
|
+
|
||||||
p = *pat++;
|
p = *pat++;
|
||||||
- const char *endp = p + strlen(p) - 1;
|
- const char *endp = p + strlen(p) - 1;
|
||||||
+ endp = p + strlen(p) - 1;
|
+ endp = p + strlen(p) - 1;
|
||||||
|
|
||||||
/* "*foo*" */
|
/* "*foo*" */
|
||||||
if (*p == '*' && *endp == '*') {
|
if (*p == '*' && *endp == '*') {
|
||||||
|
|
|
@ -50,9 +50,9 @@ Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -498,7 +498,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror
|
@@ -498,7 +498,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror
|
||||||
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
|
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
|
||||||
-Werror=implicit-function-declaration -Werror=implicit-int \
|
-Werror=implicit-function-declaration -Werror=implicit-int \
|
||||||
-Werror=return-type -Wno-format-security \
|
-Werror=return-type -Wno-format-security \
|
||||||
- -std=gnu89
|
- -std=gnu89
|
||||||
+ -std=gnu11
|
+ -std=gnu11
|
||||||
KBUILD_CPPFLAGS := -D__KERNEL__
|
KBUILD_CPPFLAGS := -D__KERNEL__
|
||||||
|
|
|
@ -34,9 +34,10 @@ Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -416,7 +416,7 @@ HOSTCXX = g++
|
@@ -416,7 +416,7 @@ HOSTCXX = g++
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
export KBUILD_USERCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
- -O2 -fomit-frame-pointer -std=gnu89 \
|
- -O2 -fomit-frame-pointer -std=gnu89 \
|
||||||
+ -O2 -fomit-frame-pointer -std=gnu11 \
|
+ -O2 -fomit-frame-pointer -std=gnu11 \
|
||||||
-Wdeclaration-after-statement
|
-Wdeclaration-after-statement
|
||||||
export KBUILD_USERLDFLAGS :=
|
export KBUILD_USERLDFLAGS :=
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
||||||
|
|
||||||
--- a/Makefile
|
--- a/Makefile
|
||||||
+++ b/Makefile
|
+++ b/Makefile
|
||||||
@@ -507,7 +507,7 @@ KBUILD_LDFLAGS_MODULE :=
|
@@ -508,7 +508,7 @@ KBUILD_LDFLAGS_MODULE :=
|
||||||
KBUILD_LDFLAGS :=
|
KBUILD_LDFLAGS :=
|
||||||
CLANG_FLAGS :=
|
CLANG_FLAGS :=
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue