]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv/sifive: remove warning in errata
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Wed, 29 Jul 2026 17:43:28 +0000 (11:43 -0600)
committerPaul Walmsley <pjw@kernel.org>
Wed, 29 Jul 2026 17:43:28 +0000 (11:43 -0600)
The alternative patching of sifive vendor extensions also calls the
sifive_errata_patch_func(), but the patch_id of the vendor extension
(ext + RISCV_VENDOR_EXT_ALTERNATIVES_BASE) is always larger than
ERRATA_SIFIVE_NUMBER. Remove this unnecessary warning.

Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Link: https://patch.msgid.link/20260503-sifive_errata-v1-1-6f12a81bc267@sifive.com
[pjw@kernel.org: drop unnecessary braces]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/errata/sifive/errata.c

index d0c61f86cba33705221a8a20257f84fcfdf54f95..df80c9614df1a01b9453cf3ce3c8ca9f579918ab 100644 (file)
@@ -93,10 +93,8 @@ void sifive_errata_patch_func(struct alt_entry *begin, struct alt_entry *end,
        for (alt = begin; alt < end; alt++) {
                if (alt->vendor_id != SIFIVE_VENDOR_ID)
                        continue;
-               if (alt->patch_id >= ERRATA_SIFIVE_NUMBER) {
-                       WARN(1, "This errata id:%d is not in kernel errata list", alt->patch_id);
+               if (alt->patch_id >= ERRATA_SIFIVE_NUMBER)
                        continue;
-               }
 
                tmp = (1U << alt->patch_id);
                if (cpu_req_errata & tmp) {