--- /dev/null
+From ced0f245ed951e2b8bd68f79c15238d7dd253662 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 6 Mar 2023 11:14:50 +0100
+Subject: kallsyms: add kallsyms_seqs_of_names to list of special symbols
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit ced0f245ed951e2b8bd68f79c15238d7dd253662 upstream.
+
+My randconfig build setup ran into another kallsyms warning:
+
+Inconsistent kallsyms data
+Try make KALLSYMS_EXTRA_PASS=1 as a workaround
+
+After adding some debugging code to kallsyms.c, I saw that the recently
+added kallsyms_seqs_of_names symbol can sometimes cause the second stage
+table to be slightly longer than the first stage, which makes the
+build inconsistent.
+
+Add it to the exception table that contains all other kallsyms-generated
+symbols.
+
+Fixes: 60443c88f3a8 ("kallsyms: Improve the performance of kallsyms_lookup_name()")
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com>
+Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ scripts/kallsyms.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/scripts/kallsyms.c
++++ b/scripts/kallsyms.c
+@@ -118,6 +118,7 @@ static bool is_ignored_symbol(const char
+ "kallsyms_markers",
+ "kallsyms_token_table",
+ "kallsyms_token_index",
++ "kallsyms_seqs_of_names",
+ /* Exclude linker generated symbols which vary between passes */
+ "_SDA_BASE_", /* ppc */
+ "_SDA2_BASE_", /* ppc */
--- /dev/null
+From 79549da691edd4874c19d99c578a134471817c47 Mon Sep 17 00:00:00 2001
+From: Masahiro Yamada <masahiroy@kernel.org>
+Date: Wed, 8 Mar 2023 20:52:43 +0900
+Subject: scripts/kallsyms: update the usage in the comment block
+
+From: Masahiro Yamada <masahiroy@kernel.org>
+
+commit 79549da691edd4874c19d99c578a134471817c47 upstream.
+
+Commit 010a0aad39fc ("kallsyms: Correctly sequence symbols when
+CONFIG_LTO_CLANG=y") added --lto-clang, and updated the usage()
+function, but not the comment. Update it in the same way.
+
+Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
+Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ scripts/kallsyms.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/scripts/kallsyms.c
++++ b/scripts/kallsyms.c
+@@ -6,7 +6,7 @@
+ * of the GNU General Public License, incorporated herein by reference.
+ *
+ * Usage: kallsyms [--all-symbols] [--absolute-percpu]
+- * [--base-relative] in.map > out.S
++ * [--base-relative] [--lto-clang] in.map > out.S
+ *
+ * Table compression uses all the unused char codes on the symbols and
+ * maps these to the most used substrings (tokens). For instance, it might
--- /dev/null
+From adc40221bf676f3e722d135889a7b913b4162dc2 Mon Sep 17 00:00:00 2001
+From: Yuma Ueda <cyan@0x00a1e9.dev>
+Date: Fri, 18 Nov 2022 22:36:31 +0900
+Subject: scripts/kallsyms.c Make the comment up-to-date with current implementation
+
+From: Yuma Ueda <cyan@0x00a1e9.dev>
+
+commit adc40221bf676f3e722d135889a7b913b4162dc2 upstream.
+
+The comment in scripts/kallsyms.c describing the usage of
+scripts/kallsyms does not reflect the latest implementation.
+Fix the comment to be equivalent to what the usage() function prints.
+
+Signed-off-by: Yuma Ueda <cyan@0x00a1e9.dev>
+Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
+Link: https://lore.kernel.org/r/20221118133631.4554-1-cyan@0x00a1e9.dev
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ scripts/kallsyms.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/scripts/kallsyms.c
++++ b/scripts/kallsyms.c
+@@ -5,7 +5,8 @@
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ *
+- * Usage: nm -n vmlinux | scripts/kallsyms [--all-symbols] > symbols.S
++ * Usage: kallsyms [--all-symbols] [--absolute-percpu]
++ * [--base-relative] in.map > out.S
+ *
+ * Table compression uses all the unused char codes on the symbols and
+ * maps these to the most used substrings (tokens). For instance, it might
tracing-histograms-return-an-error-if-we-fail-to-add-histogram-to-hist_vars-list.patch
drm-ttm-fix-bulk_move-corruption-when-adding-a-entry.patch
spi-dw-remove-misleading-comment-for-mount-evans-soc.patch
+kallsyms-add-kallsyms_seqs_of_names-to-list-of-special-symbols.patch
+scripts-kallsyms.c-make-the-comment-up-to-date-with-current-implementation.patch
+scripts-kallsyms-update-the-usage-in-the-comment-block.patch