diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-06 22:18:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-06 22:18:26 +0000 |
commit | c7c9518cebfc7c66e48b8b59f532de10684ca716 (patch) | |
tree | 2e92479cacdb79553c10c3bdaa8552b3ffe630ae | |
parent | a26811007ab4b2b4e90c687f05a600a73fbc3e57 (diff) | |
download | FreeBSD-src-c7c9518cebfc7c66e48b8b59f532de10684ca716.zip FreeBSD-src-c7c9518cebfc7c66e48b8b59f532de10684ca716.tar.gz |
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.
-rw-r--r-- | sys/alpha/include/bus.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/alpha/include/bus.h b/sys/alpha/include/bus.h index c3e8842..27c9cda 100644 --- a/sys/alpha/include/bus.h +++ b/sys/alpha/include/bus.h @@ -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) |