summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-20 22:40:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-20 22:40:14 +0000
commit5c3bad716b8fd62ceb09fc597c1b634f6858090e (patch)
tree8f7dac09606f9356613bead1ebbfc8fd1903c2bf
parent284cdc0e6e5f7d89f53872008e15cd6019396666 (diff)
armv7 RAMDISK is now compiled with -Oz (just to be like other ramdisks),
so clang's rule about "static inline" comes into play. ok patrick
-rw-r--r--sys/dev/fdt/acrtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/acrtc.c b/sys/dev/fdt/acrtc.c
index 460bae916c1..d147ecaeced 100644
--- a/sys/dev/fdt/acrtc.c
+++ b/sys/dev/fdt/acrtc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acrtc.c,v 1.2 2017/12/17 15:29:29 kettenis Exp $ */
+/* $OpenBSD: acrtc.c,v 1.3 2019/04/20 22:40:13 deraadt Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
@@ -117,13 +117,13 @@ acrtc_attach(struct device *parent, struct device *self, void *aux)
clock_register(&sc->sc_cd);
}
-inline uint16_t
+static inline uint16_t
acrtc_read_reg(struct acrtc_softc *sc, uint8_t reg)
{
return rsb_read_2(sc->sc_cookie, sc->sc_rta, reg);
}
-inline void
+static inline void
acrtc_write_reg(struct acrtc_softc *sc, uint8_t reg, uint16_t value)
{
rsb_write_2(sc->sc_cookie, sc->sc_rta, reg, value);