diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-24 04:44:20 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-24 04:44:20 +0000 |
commit | 32297dab9d1d48b907b550de834489b6f40db447 (patch) | |
tree | b1a029646f30f0158bcf5a8855803200e5622762 /sys | |
parent | cb603e18457a12ca07722720369c40943b5dda77 (diff) |
More inline function clean for -W flags strictness.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/include/bus.h | 50 |
1 files changed, 13 insertions, 37 deletions
diff --git a/sys/arch/powerpc/include/bus.h b/sys/arch/powerpc/include/bus.h index 540c07fe24b..f0b09535599 100644 --- a/sys/arch/powerpc/include/bus.h +++ b/sys/arch/powerpc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.12 2001/06/10 15:20:16 drahn Exp $ */ +/* $OpenBSD: bus.h,v 1.13 2001/06/24 04:44:19 drahn Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom. All rights reserved. @@ -150,12 +150,8 @@ bus_space_write_multi(4,32) #define __BA(t, h, o) ((void *)((h) + (o))) static __inline void -bus_space_read_region_1(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int8_t *addr; - size_t count; +bus_space_read_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, u_int8_t *addr, size_t count) { volatile u_int8_t *s = __BA(tag, bsh, offset); @@ -165,12 +161,8 @@ bus_space_read_region_1(tag, bsh, offset, addr, count) } static __inline void -bus_space_read_region_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int16_t *addr; - size_t count; +bus_space_read_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, u_int16_t *addr, size_t count) { volatile u_int16_t *s = __BA(tag, bsh, offset); @@ -181,12 +173,8 @@ bus_space_read_region_2(tag, bsh, offset, addr, count) } static __inline void -bus_space_read_region_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - u_int32_t *addr; - size_t count; +bus_space_read_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, u_int32_t *addr, size_t count) { volatile u_int32_t *s = __BA(tag, bsh, offset); @@ -211,12 +199,8 @@ bus_space_read_region_4(tag, bsh, offset, addr, count) */ static __inline void -bus_space_write_region_1(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int8_t *addr; - size_t count; +bus_space_write_region_1(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, const u_int8_t *addr, size_t count) { volatile u_int8_t *d = __BA(tag, bsh, offset); @@ -226,12 +210,8 @@ bus_space_write_region_1(tag, bsh, offset, addr, count) } static __inline void -bus_space_write_region_2(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int16_t *addr; - size_t count; +bus_space_write_region_2(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, const u_int16_t *addr, size_t count) { volatile u_int16_t *d = __BA(tag, bsh, offset); @@ -242,12 +222,8 @@ bus_space_write_region_2(tag, bsh, offset, addr, count) } static __inline void -bus_space_write_region_4(tag, bsh, offset, addr, count) - bus_space_tag_t tag; - bus_space_handle_t bsh; - bus_size_t offset; - const u_int32_t *addr; - size_t count; +bus_space_write_region_4(bus_space_tag_t tag, bus_space_handle_t bsh, + bus_size_t offset, const u_int32_t *addr, size_t count) { volatile u_int32_t *d = __BA(tag, bsh, offset); |