forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kernel framework & USB driver package update (SynoCommunity#5746)
* kernel: Remove building modules for DSM-6.1 * kernel: Divide configure in sub-mk file * kernel: Migrate make kernelversion to kernel-configure.mk * kernel: Divide kernel module compilation in sub-mk file * kernel-rtd1296: Patch to remove duplicate YYLTYPE declaration * kernel-geminilake: Patch to remove duplicate YYLTYPE declaration * kernel: Move REQUIRE_KERNEL_MODULE to spksrc.kernel-module.mk * kernel-configure.mk: Add variables comments * kernel.mk: Always configure the kernel sources * kernel-configure.mk: Be less verbose using @ * kernel.mk: Install kernel headers in include/linux/<arch>-<version> * kernel-module.mk: Remove additional printouts * kernel: Various build fixes * kernel: Add syno-broadwellntbap-7.0 * archs.mk: Add syno-broadwellntbap-7.0 to x64_ARCHS * synokernel-cdrom: Bump package version and changelog * synokernel-usbserial: Bump package version and changelog
- Loading branch information
Showing
40 changed files
with
714 additions
and
82 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
kernel/syno-alpine-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-alpine-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-alpine4k-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-alpine4k-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-armada37xx-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000 | ||
@@ -1196,7 +1196,7 @@ int yychar; | ||
/* The semantic value of the lookahead symbol. */ | ||
YYSTYPE yylval; | ||
/* Location data for the lookahead symbol. */ | ||
-YYLTYPE yylloc | ||
+//YYLTYPE yylloc | ||
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL | ||
= { 1, 1, 1, 1 } | ||
# endif |
11 changes: 11 additions & 0 deletions
11
kernel/syno-armada37xx-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000 | ||
@@ -1196,7 +1196,7 @@ int yychar; | ||
/* The semantic value of the lookahead symbol. */ | ||
YYSTYPE yylval; | ||
/* Location data for the lookahead symbol. */ | ||
-YYLTYPE yylloc | ||
+//YYLTYPE yylloc | ||
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL | ||
= { 1, 1, 1, 1 } | ||
# endif |
11 changes: 11 additions & 0 deletions
11
kernel/syno-armada38x-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-armada38x-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
21 changes: 21 additions & 0 deletions
21
kernel/syno-avoton-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-avoton-7.0/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-braswell-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-braswell-7.0/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-broadwell-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
KERNEL_ARCH = broadwellntbap | ||
KERNEL_VERS = 7.0 | ||
KERNEL_BUILD = 41890 | ||
KERNEL_DIST = linux-4.4.x | ||
KERNEL_BASE_ARCH = x86 | ||
|
||
include ../../mk/spksrc.kernel.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
broadwellntbap-linux-4.4.x.txz SHA1 22d72eccaaab71eef8d15ae8d0ffc5b2beed5ffa | ||
broadwellntbap-linux-4.4.x.txz SHA256 ec02e154d98cc9cbc4729e8ca2f9d3b5ae3e67a9fc3185ddb8f4b5359840afbb | ||
broadwellntbap-linux-4.4.x.txz MD5 cf0196f6e85e3ace976cd1b390d216e7 |
21 changes: 21 additions & 0 deletions
21
kernel/syno-bromolow-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-bromolow-7.0/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-cedarview-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-cedarview-7.0/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
11 changes: 11 additions & 0 deletions
11
kernel/syno-geminilake-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000 | ||
@@ -1196,7 +1196,7 @@ int yychar; | ||
/* The semantic value of the lookahead symbol. */ | ||
YYSTYPE yylval; | ||
/* Location data for the lookahead symbol. */ | ||
-YYLTYPE yylloc | ||
+//YYLTYPE yylloc | ||
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL | ||
= { 1, 1, 1, 1 } | ||
# endif |
11 changes: 11 additions & 0 deletions
11
kernel/syno-geminilake-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000 | ||
@@ -1196,7 +1196,7 @@ int yychar; | ||
/* The semantic value of the lookahead symbol. */ | ||
YYSTYPE yylval; | ||
/* Location data for the lookahead symbol. */ | ||
-YYLTYPE yylloc | ||
+//YYLTYPE yylloc | ||
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL | ||
= { 1, 1, 1, 1 } | ||
# endif |
21 changes: 21 additions & 0 deletions
21
kernel/syno-grantley-6.2.4/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
21 changes: 21 additions & 0 deletions
21
kernel/syno-grantley-7.0/patches/001-define-per_cpu_load_addr-as-static.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
per_cpu_load_addr is only used for 64-bit relocations, but is declared | ||
in both configurations of relocs.c - with different types. This has | ||
undefined behaviour in general. GNU ld is documented to use the | ||
larger size in this case, but other tools may differ and some warn | ||
about this. | ||
|
||
References: https://bugs.debian.org/748577 | ||
Reported-by: Michael Tautschnig <[email protected]> | ||
Signed-off-by: Ben Hutchings <[email protected]> | ||
|
||
--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000 | ||
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000 | ||
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s | ||
* | ||
*/ | ||
static int per_cpu_shndx = -1; | ||
-Elf_Addr per_cpu_load_addr; | ||
+static Elf_Addr per_cpu_load_addr; | ||
|
||
static void percpu_init(void) | ||
{ |
11 changes: 11 additions & 0 deletions
11
kernel/syno-monaco-6.2.4/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
11 changes: 11 additions & 0 deletions
11
kernel/syno-monaco-7.0/patches/001-remove-duplicate-YYLTYPE-yylloc-declaration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000 | ||
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000 | ||
@@ -73,7 +73,7 @@ | ||
#include "dtc.h" | ||
#include "srcpos.h" | ||
|
||
-YYLTYPE yylloc; | ||
+extern YYLTYPE yylloc; | ||
|
||
extern int yylex(void); | ||
extern void print_error(char const *fmt, ...); |
Oops, something went wrong.