summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-12-24 06:34:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-12-24 06:34:04 +0000
commit0f81118b889c8660d50d48092af6b222949b19ce (patch)
tree4dfc03a279bc61d823079373b2fc969c1a929de7
parente91ca81b4e854f5a2eba56e45937d0461b5bb58c (diff)
ramdisks do not contain WOL
-rw-r--r--sys/dev/pci/if_rge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_rge.c b/sys/dev/pci/if_rge.c
index d7f7d48568c..36a9d13fb37 100644
--- a/sys/dev/pci/if_rge.c
+++ b/sys/dev/pci/if_rge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rge.c,v 1.10 2020/12/24 01:00:00 kevlo Exp $ */
+/* $OpenBSD: if_rge.c,v 1.11 2020/12/24 06:34:03 deraadt Exp $ */
/*
* Copyright (c) 2019, 2020 Kevin Lo <kevlo@openbsd.org>
@@ -300,7 +300,9 @@ rge_attach(struct device *parent, struct device *self, void *aux)
int
rge_activate(struct device *self, int act)
{
+#ifndef SMALL_KERNEL
struct rge_softc *sc = (struct rge_softc *)self;
+#endif
int rv = 0;
switch (act) {