Commit 4c5eb8aa authored by David Mosberger's avatar David Mosberger

ia64: Fix some more warnings caused by casts used as l-values.

parent 91aea06e
......@@ -9,13 +9,13 @@
* This needs to be optimized.
*/
void
__ia64_memcpy_fromio (void * to, unsigned long from, long count)
__ia64_memcpy_fromio (void *to, unsigned long from, long count)
{
char *dst = to;
while (count) {
count--;
*(char *) to = readb(from);
((char *) to)++;
from++;
*dst++ = readb(from++);
}
}
EXPORT_SYMBOL(__ia64_memcpy_fromio);
......@@ -25,13 +25,13 @@ EXPORT_SYMBOL(__ia64_memcpy_fromio);
* This needs to be optimized.
*/
void
__ia64_memcpy_toio (unsigned long to, void * from, long count)
__ia64_memcpy_toio (unsigned long to, void *from, long count)
{
char *src = from;
while (count) {
count--;
writeb(*(char *) from, to);
((char *) from)++;
to++;
writeb(*src++, to++);
}
}
EXPORT_SYMBOL(__ia64_memcpy_toio);
......
......@@ -50,7 +50,7 @@ extern void *per_cpu_init(void);
#else /* ! SMP */
#define per_cpu(var, cpu) ((void)cpu, per_cpu__##var)
#define per_cpu(var, cpu) (*((void)cpu, &per_cpu__##var))
#define __get_cpu_var(var) per_cpu__##var
#define per_cpu_init() (__phys_per_cpu_start)
......
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