Commit 1fa21420 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Fix some warnings in the ppc64 build, from Andrew Morton

parent e56720c6
...@@ -12,12 +12,11 @@ ...@@ -12,12 +12,11 @@
#include "ppc32-types.h" #include "ppc32-types.h"
#include "zlib.h" #include "zlib.h"
#include <linux/elf.h> #include <linux/elf.h>
#include <linux/string.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
void memmove(void *dst, void *im, int len);
extern void *finddevice(const char *); extern void *finddevice(const char *);
extern int getprop(void *, const char *, void *, int); extern int getprop(void *, const char *, void *, int);
extern void printk(char *fmt, ...); extern void printk(char *fmt, ...);
......
...@@ -2040,11 +2040,11 @@ prom_bi_rec_verify(struct bi_record *bi_recs) ...@@ -2040,11 +2040,11 @@ prom_bi_rec_verify(struct bi_record *bi_recs)
if ( bi_recs == NULL || bi_recs->tag != BI_FIRST ) if ( bi_recs == NULL || bi_recs->tag != BI_FIRST )
return NULL; return NULL;
last = (struct bi_record *)bi_recs->data[0]; last = (struct bi_record *)(long)bi_recs->data[0];
if ( last == NULL || last->tag != BI_LAST ) if ( last == NULL || last->tag != BI_LAST )
return NULL; return NULL;
first = (struct bi_record *)last->data[0]; first = (struct bi_record *)(long)last->data[0];
if ( first == NULL || first != bi_recs ) if ( first == NULL || first != bi_recs )
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment