Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <drjones@redhat.com>
To: kexec@lists.infradead.org
Subject: [PATCH 1/4] uImage: cleanup some warnings
Date: Fri, 20 Nov 2015 12:31:51 -0500	[thread overview]
Message-ID: <1448040714-19841-2-git-send-email-drjones@redhat.com> (raw)
In-Reply-To: <1448040714-19841-1-git-send-email-drjones@redhat.com>

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 kexec/arch/arm/kexec-uImage-arm.c | 3 ++-
 kexec/arch/ppc/kexec-uImage-ppc.c | 5 +++--
 kexec/arch/sh/kexec-uImage-sh.c   | 3 ++-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/kexec/arch/arm/kexec-uImage-arm.c b/kexec/arch/arm/kexec-uImage-arm.c
index 03c2f4ddca7b0..285883eb9779d 100644
--- a/kexec/arch/arm/kexec-uImage-arm.c
+++ b/kexec/arch/arm/kexec-uImage-arm.c
@@ -11,7 +11,8 @@
 
 int uImage_arm_probe(const char *buf, off_t len)
 {
-	return uImage_probe_kernel(buf, len, IH_ARCH_ARM);
+	return uImage_probe_kernel((const unsigned char *)buf,
+				   len, IH_ARCH_ARM);
 }
 
 int uImage_arm_load(int argc, char **argv, const char *buf, off_t len,
diff --git a/kexec/arch/ppc/kexec-uImage-ppc.c b/kexec/arch/ppc/kexec-uImage-ppc.c
index c89a1a77926d2..30be9d9cb5817 100644
--- a/kexec/arch/ppc/kexec-uImage-ppc.c
+++ b/kexec/arch/ppc/kexec-uImage-ppc.c
@@ -78,7 +78,8 @@ char *slurp_ramdisk_ppc(const char *filename, off_t *r_size)
 	
 int uImage_ppc_probe(const char *buf, off_t len)
 {
-	return uImage_probe_kernel(buf, len, IH_ARCH_PPC);
+	return uImage_probe_kernel((const unsigned char *)buf,
+				   len, IH_ARCH_PPC);
 }
 
 static int ppc_load_bare_bits(int argc, char **argv, const char *buf,
@@ -316,7 +317,7 @@ int uImage_ppc_load(int argc, char **argv, const char *buf, off_t len,
 	struct Image_info img;
 	int ret;
 
-	ret = uImage_load(buf, len, &img);
+	ret = uImage_load((const unsigned char *)buf, len, &img);
 	if (ret)
 		return ret;
 
diff --git a/kexec/arch/sh/kexec-uImage-sh.c b/kexec/arch/sh/kexec-uImage-sh.c
index 130f12ca94317..28c8f2fde3a35 100644
--- a/kexec/arch/sh/kexec-uImage-sh.c
+++ b/kexec/arch/sh/kexec-uImage-sh.c
@@ -13,7 +13,8 @@
 
 int uImage_sh_probe(const char *buf, off_t len)
 {
-	return uImage_probe_kernel(buf, len, IH_ARCH_SH);
+	return uImage_probe_kernel((const unsigned char *)buf,
+				   len, IH_ARCH_SH);
 }
 
 int uImage_sh_load(int argc, char **argv, const char *buf, off_t len,
-- 
2.4.3


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

  reply	other threads:[~2015-11-20 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 17:31 [PATCH 0/4] [RFT] cleanup /chosen/linux,stdout-path warning Andrew Jones
2015-11-20 17:31 ` Andrew Jones [this message]
2015-11-24  7:00   ` [PATCH 1/4] uImage: cleanup some warnings Simon Horman
2015-11-25 17:32     ` Andrew Jones
2015-11-20 17:31 ` [PATCH 2/4] kexec/fs2dt: s/diabled/disabled/ Andrew Jones
2015-11-24  7:00   ` Simon Horman
2015-11-20 17:31 ` [PATCH 3/4] kexec/fs2dt: cleanup pathname Andrew Jones
2015-11-24  7:01   ` Simon Horman
2015-11-20 17:31 ` [PATCH 4/4] kexec/fs2dt: check for /chosen/stdout-path first Andrew Jones
2015-11-24  7:03   ` Simon Horman

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=1448040714-19841-2-git-send-email-drjones@redhat.com \
    --to=drjones@redhat.com \
    --cc=kexec@lists.infradead.org \
    /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