summaryrefslogtreecommitdiffstats
path: root/arch/ppc64/boot/addnote.c
diff options
context:
space:
mode:
authorOlaf Hering2005-08-08 05:24:38 +0200
committerPaul Mackerras2005-08-29 02:53:31 +0200
commitdecd300b30e499fe6be1bbfc5650fc971de8c1fa (patch)
treeef4c2842b943b951130abcd0fdf844fcb53720fd /arch/ppc64/boot/addnote.c
parentLinux v2.6.13 (diff)
downloadkernel-qcow2-linux-decd300b30e499fe6be1bbfc5650fc971de8c1fa.tar.gz
kernel-qcow2-linux-decd300b30e499fe6be1bbfc5650fc971de8c1fa.tar.xz
kernel-qcow2-linux-decd300b30e499fe6be1bbfc5650fc971de8c1fa.zip
[PATCH] ppc64: make arch/ppc64/boot standalone
Make the bootheader for ppc64 independent from kernel and libc headers. * add -nostdinc -isystem $gccincludes to not include libc headers * declare all functions in header files, also the stuff from string.S * declare some functions static * use stddef.h to get size_t (hopefully ok) * remove ppc32-types.h, only elf.h used the __NN types With further modifications by Paul Mackerras and Stephen Rothwell. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/boot/addnote.c')
-rw-r--r--arch/ppc64/boot/addnote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/boot/addnote.c b/arch/ppc64/boot/addnote.c
index 719663a694bb..8041a9845ab7 100644
--- a/arch/ppc64/boot/addnote.c
+++ b/arch/ppc64/boot/addnote.c
@@ -157,7 +157,7 @@ main(int ac, char **av)
PUT_32BE(ns, strlen(arch) + 1);
PUT_32BE(ns + 4, N_DESCR * 4);
PUT_32BE(ns + 8, 0x1275);
- strcpy(&buf[ns + 12], arch);
+ strcpy((char *) &buf[ns + 12], arch);
ns += 12 + strlen(arch) + 1;
for (i = 0; i < N_DESCR; ++i, ns += 4)
PUT_32BE(ns, descr[i]);
@@ -172,7 +172,7 @@ main(int ac, char **av)
PUT_32BE(ns, strlen(rpaname) + 1);
PUT_32BE(ns + 4, sizeof(rpanote));
PUT_32BE(ns + 8, 0x12759999);
- strcpy(&buf[ns + 12], rpaname);
+ strcpy((char *) &buf[ns + 12], rpaname);
ns += 12 + ROUNDUP(strlen(rpaname) + 1);
for (i = 0; i < N_RPA_DESCR; ++i, ns += 4)
PUT_32BE(ns, rpanote[i]);