summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_poll.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2002-03-09 08:02:52 +0000
committerluigi <luigi@FreeBSD.org>2002-03-09 08:02:52 +0000
commit282d2b3dfb5250f7c9feb0b1912a2c31308810c7 (patch)
tree93461538f7237a334296d68e7157251a19ccb3d0 /sys/kern/kern_poll.c
parent2984232a9677e06779c33fb03458a9f45b16a060 (diff)
downloadFreeBSD-src-282d2b3dfb5250f7c9feb0b1912a2c31308810c7.zip
FreeBSD-src-282d2b3dfb5250f7c9feb0b1912a2c31308810c7.tar.gz
Make the DEVICE_POLLING code compile with -Werror and in LINT
Diffstat (limited to 'sys/kern/kern_poll.c')
-rw-r--r--sys/kern/kern_poll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c
index 3fc4930..4101cdf 100644
--- a/sys/kern/kern_poll.c
+++ b/sys/kern/kern_poll.c
@@ -41,8 +41,10 @@
#include <sys/kthread.h>
#ifdef SMP
+#ifndef COMPILING_LINT
#error DEVICE_POLLING is not compatible with SMP
#endif
+#endif
static void netisr_poll(void); /* the two netisr handlers */
void netisr_pollmore(void);
@@ -156,7 +158,7 @@ static int polling = 0; /* global polling enable */
SYSCTL_UINT(_kern_polling, OID_AUTO, enable, CTLFLAG_RW,
&polling, 0, "Polling enabled");
-static volatile u_int32_t phase;
+static u_int32_t phase;
SYSCTL_UINT(_kern_polling, OID_AUTO, phase, CTLFLAG_RW,
&phase, 0, "Polling phase");
@@ -164,7 +166,7 @@ static u_int32_t suspect;
SYSCTL_UINT(_kern_polling, OID_AUTO, suspect, CTLFLAG_RW,
&suspect, 0, "suspect event");
-static volatile u_int32_t stalled;
+static u_int32_t stalled;
SYSCTL_UINT(_kern_polling, OID_AUTO, stalled, CTLFLAG_RW,
&stalled, 0, "potential stalls");
OpenPOWER on IntegriCloud