diff options
author | phk <phk@FreeBSD.org> | 2002-10-16 09:14:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-16 09:14:59 +0000 |
commit | 32fb67c36b33ab6d14a82d469c776f287d96e9c0 (patch) | |
tree | ba4045bde297cdb63765059d6a40200ca20ee92f /sys/pci/if_wb.c | |
parent | 3f4eea0f283fbdb73c023326a77c63f051a63b93 (diff) | |
download | FreeBSD-src-32fb67c36b33ab6d14a82d469c776f287d96e9c0.zip FreeBSD-src-32fb67c36b33ab6d14a82d469c776f287d96e9c0.tar.gz |
Be consistent about functions being static.
Properly put macro args in ().
Spotted by: FlexeLint.
Diffstat (limited to 'sys/pci/if_wb.c')
-rw-r--r-- | sys/pci/if_wb.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; { |