Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Youling Tang <tangyouling@loongson.cn>
Cc: kexec@lists.infradead.org
Subject: Re: [PATCH] MIPS: Fix compile warnnings in kexec-elf-mips.c
Date: Thu, 20 Aug 2020 17:31:31 +0200	[thread overview]
Message-ID: <20200820153131.GC23571@vergenet.net> (raw)
In-Reply-To: <1597296712-28069-1-git-send-email-tangyouling@loongson.cn>

On Thu, Aug 13, 2020 at 01:31:52PM +0800, Youling Tang wrote:
> Fix the following warnings:
> 
> kexec/arch/mips/kexec-elf-mips.c:161:41: warning: passing argument 3 of
> ‘dtb_set_initrd’ makes integer from pointer without a cast
> dtb_set_initrd(&dtb_buf, &dtb_length, initrd_buf, initrd_buf + initrd_size);
>                                          ^
> In file included from kexec/arch/mips/kexec-elf-mips.c:33:0:
> kexec/arch/mips/../../dt-ops.h:6:5: note: expected ‘off_t’ but argument is
> of type ‘char *’
> int dtb_set_initrd(char **dtb, off_t *dtb_size, off_t start, off_t end);
>      ^
> 
> kexec/arch/mips/kexec-elf-mips.c:161:53: warning: passing argument 4 of
> ‘dtb_set_initrd’ makes integer from pointer without a cast
> dtb_set_initrd(&dtb_buf, &dtb_length, initrd_buf, initrd_buf + initrd_size);
>                                                      ^
> In file included from kexec/arch/mips/kexec-elf-mips.c:33:0:
> kexec/arch/mips/../../dt-ops.h:6:5: note: expected ‘off_t’ but argument is
> of type ‘char *’
> int dtb_set_initrd(char **dtb, off_t *dtb_size, off_t start, off_t end);
>      ^
> 
> Signed-off-by: Youling Tang <tangyouling@loongson.cn>

Thanks, applied.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

      reply	other threads:[~2020-08-20 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-13  5:31 [PATCH] MIPS: Fix compile warnnings in kexec-elf-mips.c Youling Tang
2020-08-20 15:31 ` Simon Horman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200820153131.GC23571@vergenet.net \
    --to=horms@verge.net.au \
    --cc=kexec@lists.infradead.org \
    --cc=tangyouling@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox