From: Youling Tang <[email protected]>

loongarch_load_other_segments() mainly loads initrd and cmdline. Fix this
annotation.

Signed-off-by: Youling Tang <[email protected]>
---
 kexec/arch/loongarch/kexec-pei-loongarch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kexec/arch/loongarch/kexec-pei-loongarch.c 
b/kexec/arch/loongarch/kexec-pei-loongarch.c
index 1a11103..f0e0d09 100644
--- a/kexec/arch/loongarch/kexec-pei-loongarch.c
+++ b/kexec/arch/loongarch/kexec-pei-loongarch.c
@@ -102,10 +102,10 @@ int pei_loongarch_load(int argc, char **argv, const char 
*buf,
        /* Load the kernel */
        add_segment(info, buf, len, kernel_segment, loongarch_mem.image_size);
 
-       /* Prepare and load dtb and initrd data */
+       /* Prepare and load initrd and cmdline data */
        result = loongarch_load_other_segments(info, hole_min);
        if (result) {
-               fprintf(stderr, "kexec: Load dtb and initrd segments 
failed.\n");
+               fprintf(stderr, "kexec: Load initrd and cmdline segments 
failed.\n");
                goto exit;
        }
 
-- 
2.34.1


Reply via email to