From 32fb67c36b33ab6d14a82d469c776f287d96e9c0 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 16 Oct 2002 09:14:59 +0000 Subject: Be consistent about functions being static. Properly put macro args in (). Spotted by: FlexeLint. --- sys/pci/if_wb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/pci/if_wb.c') diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index e17b9aa..9e5e330 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -227,19 +227,19 @@ DRIVER_MODULE(miibus, wb, miibus_driver, miibus_devclass, 0, 0); #define WB_SETBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, \ - CSR_READ_4(sc, reg) | x) + CSR_READ_4(sc, reg) | (x)) #define WB_CLRBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, \ - CSR_READ_4(sc, reg) & ~x) + CSR_READ_4(sc, reg) & ~(x)) #define SIO_SET(x) \ CSR_WRITE_4(sc, WB_SIO, \ - CSR_READ_4(sc, WB_SIO) | x) + CSR_READ_4(sc, WB_SIO) | (x)) #define SIO_CLR(x) \ CSR_WRITE_4(sc, WB_SIO, \ - CSR_READ_4(sc, WB_SIO) & ~x) + CSR_READ_4(sc, WB_SIO) & ~(x)) /* * Send a read command and address to the EEPROM, check for ACK. @@ -1212,7 +1212,7 @@ wb_rxeof(sc) } } -void +static void wb_rxeoc(sc) struct wb_softc *sc; { -- cgit v1.1