blob: a5b645927d84d58b231cc8b42cbe6b2deeb3fe33 [file] [log] [blame] [raw]
Disable unused static functions via macros.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/arm/allwinner/aw_machdep.c freebsd-11.1/sys/arm/allwinner/aw_machdep.c
--- /usr/src/sys/arm/allwinner/aw_machdep.c 2017-07-21 07:42:04.000000000 +0800
+++ freebsd-11.1/sys/arm/allwinner/aw_machdep.c 2020-01-11 18:19:29.853045980 +0800
@@ -59,6 +59,7 @@
static u_int soc_type;
static u_int soc_family;
+#if defined(SOC_ALLWINNER_A10)
static int
a10_attach(platform_t plat)
{
@@ -66,7 +67,9 @@
soc_family = ALLWINNERSOC_SUN4I;
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_A13)
static int
a13_attach(platform_t plat)
{
@@ -74,7 +77,9 @@
soc_family = ALLWINNERSOC_SUN5I;
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_A20)
static int
a20_attach(platform_t plat)
{
@@ -83,7 +88,9 @@
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_A31)
static int
a31_attach(platform_t plat)
{
@@ -92,7 +99,9 @@
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_A31S)
static int
a31s_attach(platform_t plat)
{
@@ -101,7 +110,9 @@
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_A83T)
static int
a83t_attach(platform_t plat)
{
@@ -110,7 +121,9 @@
return (0);
}
+#endif
+#if defined(SOC_ALLWINNER_H3)
static int
h3_attach(platform_t plat)
{
@@ -119,6 +132,7 @@
return (0);
}
+#endif
static vm_offset_t
allwinner_lastaddr(platform_t plat)
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)