Wrap ()'s around an argument before casting it to a void *. If the

argument is an expression you can end up casting part of it to void *.
This resulted in bogus warnings about pointer arith using void *'s for
the ep(4) driver.
This commit is contained in:
John Baldwin 2002-11-06 22:18:26 +00:00
parent b76c5a11e5
commit ddb554f76d

View File

@ -233,18 +233,18 @@ extern struct alpha_busspace *busspace_isa_mem;
#define writel(o, v) bus_space_write_4(busspace_isa_mem, o, 0, v)
#define insb(o, a, c) bus_space_read_multi_1(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define insw(o, a, c) bus_space_read_multi_2(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define insl(o, a, c) bus_space_read_multi_4(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define outsb(o, a, c) bus_space_write_multi_1(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define outsw(o, a, c) bus_space_write_multi_2(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define outsl(o, a, c) bus_space_write_multi_4(busspace_isa_io, o, 0, \
(void*)a, c)
(void*)(a), c)
#define memcpy_fromio(d, s, c) \
bus_space_read_region_1(busspace_isa_mem, s, 0, d, c)