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.
This commit is contained in:
Bruce Evans 1997-07-01 00:45:45 +00:00
parent 61f3323058
commit 48792cfc18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27128
4 changed files with 6 additions and 14 deletions

View File

@ -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;

View File

@ -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 = {

View File

@ -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;

View File

@ -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 = {