summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
committerbde <bde@FreeBSD.org>1997-07-01 00:45:45 +0000
commit8dcf4da6425f47bc89ecf48cbfb3890e31f25a97 (patch)
treea6794dd316c3256c120c250d70c790117624259c
parent690047b9cbc0582b44ac9ffa57854cdf0d574baa (diff)
downloadFreeBSD-src-8dcf4da6425f47bc89ecf48cbfb3890e31f25a97.zip
FreeBSD-src-8dcf4da6425f47bc89ecf48cbfb3890e31f25a97.tar.gz
Don't cast function pointers to (void *). This will cause warnings.
They should be fixed when similar warnings for the general interrupt attach routines are fixed. Removed unused #include.
-rw-r--r--sys/dev/vx/if_vx_eisa.c6
-rw-r--r--sys/dev/vx/if_vx_pci.c4
-rw-r--r--sys/i386/eisa/if_vx_eisa.c6
-rw-r--r--sys/pci/if_vx_pci.c4
4 files changed, 6 insertions, 14 deletions
diff --git a/sys/dev/vx/if_vx_eisa.c b/sys/dev/vx/if_vx_eisa.c
index 264c17c..f185164 100644
--- a/sys/dev/vx/if_vx_eisa.c
+++ b/sys/dev/vx/if_vx_eisa.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <i386/eisa/eisaconf.h>
#include <dev/vx/if_vxreg.h>
@@ -165,7 +163,7 @@ vx_eisa_attach(e_dev)
level_intr = FALSE;
- if (eisa_reg_intr(e_dev, irq, (void *) vxintr, (void *) sc, &net_imask,
+ if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask,
/* shared == */ level_intr)) {
vxfree(sc);
return -1;
@@ -178,7 +176,7 @@ vx_eisa_attach(e_dev)
if (eisa_enable_intr(e_dev, irq)) {
vxfree(sc);
- eisa_release_intr(e_dev, irq, (void *) vxintr);
+ eisa_release_intr(e_dev, irq, vxintr);
return -1;
}
return 0;
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 5be83dc..b667b89 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <pci/pcivar.h>
#include <dev/vx/if_vxreg.h>
@@ -128,7 +126,7 @@ vx_pci_attach(
*/
at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC);
- pci_map_int(config_id, (void *) vxintr, (void *) sc, &net_imask);
+ pci_map_int(config_id, vxintr, (void *) sc, &net_imask);
}
static struct pci_device vxdevice = {
diff --git a/sys/i386/eisa/if_vx_eisa.c b/sys/i386/eisa/if_vx_eisa.c
index 264c17c..f185164 100644
--- a/sys/i386/eisa/if_vx_eisa.c
+++ b/sys/i386/eisa/if_vx_eisa.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <i386/eisa/eisaconf.h>
#include <dev/vx/if_vxreg.h>
@@ -165,7 +163,7 @@ vx_eisa_attach(e_dev)
level_intr = FALSE;
- if (eisa_reg_intr(e_dev, irq, (void *) vxintr, (void *) sc, &net_imask,
+ if (eisa_reg_intr(e_dev, irq, vxintr, (void *) sc, &net_imask,
/* shared == */ level_intr)) {
vxfree(sc);
return -1;
@@ -178,7 +176,7 @@ vx_eisa_attach(e_dev)
if (eisa_enable_intr(e_dev, irq)) {
vxfree(sc);
- eisa_release_intr(e_dev, irq, (void *) vxintr);
+ eisa_release_intr(e_dev, irq, vxintr);
return -1;
}
return 0;
diff --git a/sys/pci/if_vx_pci.c b/sys/pci/if_vx_pci.c
index 5be83dc..b667b89 100644
--- a/sys/pci/if_vx_pci.c
+++ b/sys/pci/if_vx_pci.c
@@ -51,8 +51,6 @@
#include <netns/ns_if.h>
#endif
-#include <machine/clock.h>
-
#include <pci/pcivar.h>
#include <dev/vx/if_vxreg.h>
@@ -128,7 +126,7 @@ vx_pci_attach(
*/
at_shutdown(vx_pci_shutdown, sc, SHUTDOWN_POST_SYNC);
- pci_map_int(config_id, (void *) vxintr, (void *) sc, &net_imask);
+ pci_map_int(config_id, vxintr, (void *) sc, &net_imask);
}
static struct pci_device vxdevice = {
OpenPOWER on IntegriCloud