From c87e4fcd080314063149bb5f7062389634e8b559 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 21 Nov 2007 12:55:33 +0000 Subject: [PATCH] Take out em_poll() prototype from under EM_FAST_IRQ control. Reported by: tindebox compiling a LINT kernel --- sys/dev/em/if_em.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 43ee9400fc3..88cf57a537b 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -298,9 +298,6 @@ static void em_enable_wakeup(device_t); #ifndef EM_FAST_IRQ static void em_intr(void *); -#ifdef DEVICE_POLLING -static poll_handler_t em_poll; -#endif /* POLLING */ #else /* FAST IRQ */ #if __FreeBSD_version < 700000 static void em_intr_fast(void *); @@ -313,6 +310,10 @@ static void em_handle_rxtx(void *context, int pending); static void em_handle_link(void *context, int pending); #endif /* EM_FAST_IRQ */ +#ifdef DEVICE_POLLING +static poll_handler_t em_poll; +#endif /* POLLING */ + /********************************************************************* * FreeBSD Device Interface Entry Points *********************************************************************/