summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-09-06 19:55:28 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-09-06 19:55:28 +0000
commita3ce50b7185a05d616d549ad78626fbbdca61db4 (patch)
tree7d2bf454cb1cb64f35fc6ed089bd6860ea2e9e3a /sys/dev/fdt
parent7646a42e642633f7a41b2bcb7d7938593bc9b63a (diff)
Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline. ok kettenis@ mpi@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/axppmic.c6
-rw-r--r--sys/dev/fdt/mvsw.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/fdt/axppmic.c b/sys/dev/fdt/axppmic.c
index d62f0b15ce5..f301c03e8c8 100644
--- a/sys/dev/fdt/axppmic.c
+++ b/sys/dev/fdt/axppmic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: axppmic.c,v 1.9 2020/01/23 10:01:41 kettenis Exp $ */
+/* $OpenBSD: axppmic.c,v 1.10 2021/09/06 19:55:27 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
*
@@ -327,13 +327,13 @@ struct axppmic_softc {
uint8_t sc_crit;
};
-inline uint8_t
+static inline uint8_t
axppmic_read_reg(struct axppmic_softc *sc, uint8_t reg)
{
return sc->sc_read(sc, reg);
}
-inline void
+static inline void
axppmic_write_reg(struct axppmic_softc *sc, uint8_t reg, uint8_t value)
{
sc->sc_write(sc, reg, value);
diff --git a/sys/dev/fdt/mvsw.c b/sys/dev/fdt/mvsw.c
index 559e370502b..b3f442fc705 100644
--- a/sys/dev/fdt/mvsw.c
+++ b/sys/dev/fdt/mvsw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mvsw.c,v 1.3 2021/04/05 12:13:07 dtucker Exp $ */
+/* $OpenBSD: mvsw.c,v 1.4 2021/09/06 19:55:27 patrick Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
*
@@ -160,14 +160,14 @@ mvsw_attach(struct device *parent, struct device *self, void *aux)
}
}
-inline int
+static inline int
mvsw_read(struct mvsw_softc *sc, int reg)
{
struct mii_bus *md = sc->sc_mdio;
return md->md_readreg(md->md_cookie, sc->sc_reg, reg);
}
-inline void
+static inline void
mvsw_write(struct mvsw_softc *sc, int reg, int val)
{
struct mii_bus *md = sc->sc_mdio;