blob: a96755a1e338703f235ad392dec8eb15dea29079 [file] [log] [blame] [raw]
Disable unused static functions via macros
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/arm/amlogic/aml8726/aml8726_pic.c freebsd-11.1/sys/arm/amlogic/aml8726/aml8726_pic.c
--- /usr/src/sys/arm/amlogic/aml8726/aml8726_pic.c 2017-07-21 07:42:04.000000000 +0800
+++ freebsd-11.1/sys/arm/amlogic/aml8726/aml8726_pic.c 2020-01-06 18:54:45.165667666 +0800
@@ -113,6 +113,7 @@
#define CSR_BARRIER(sc, reg) bus_barrier((sc)->res[0], reg, 4, \
(BUS_SPACE_BARRIER_READ | BUS_SPACE_BARRIER_WRITE))
+#ifndef DEV_GIC
static void
aml8726_pic_eoi(void *arg)
{
@@ -127,6 +128,7 @@
CSR_BARRIER(aml8726_pic_sc, AML_PIC_STAT_CLR_REG(nb));
}
+#endif
static int
aml8726_pic_probe(device_t dev)