commit: 500df47c29eddf6c891238c1454aa01d10f6f2a5 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Tue May 24 21:01:03 2022 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Tue May 24 21:01:03 2022 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=500df47c
Address -Warray-bounds warnings on sparc See: https://github.com/KSPP/linux/issues/109 Bug: https://bugs.gentoo.org/847124 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 ++++ 1700_sparc-address-warray-bound-warnings.patch | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/0000_README b/0000_README index f8cc57f0..298c5715 100644 --- a/0000_README +++ b/0000_README @@ -51,6 +51,10 @@ Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. +Patch: 1700_sparc-address-warray-bound-warnings.patch +From: https://github.com/KSPP/linux/issues/109 +Desc: Address -Warray-bounds warnings + Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/[email protected]/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1700_sparc-address-warray-bound-warnings.patch b/1700_sparc-address-warray-bound-warnings.patch new file mode 100644 index 00000000..f9393555 --- /dev/null +++ b/1700_sparc-address-warray-bound-warnings.patch @@ -0,0 +1,17 @@ +--- a/arch/sparc/mm/init_64.c 2022-05-24 16:48:40.749677491 -0400 ++++ b/arch/sparc/mm/init_64.c 2022-05-24 16:55:15.511356945 -0400 +@@ -3052,11 +3052,11 @@ static inline resource_size_t compute_ke + static void __init kernel_lds_init(void) + { + code_resource.start = compute_kern_paddr(_text); +- code_resource.end = compute_kern_paddr(_etext - 1); ++ code_resource.end = compute_kern_paddr(_etext) - 1; + data_resource.start = compute_kern_paddr(_etext); +- data_resource.end = compute_kern_paddr(_edata - 1); ++ data_resource.end = compute_kern_paddr(_edata) - 1; + bss_resource.start = compute_kern_paddr(__bss_start); +- bss_resource.end = compute_kern_paddr(_end - 1); ++ bss_resource.end = compute_kern_paddr(_end) - 1; + } + + static int __init report_memory(void)
