mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
A few more casts and a function declaration for warning free kernel builds.
This commit is contained in:
parent
76f2ca6559
commit
1fa27e1c81
3 changed files with 6 additions and 4 deletions
|
|
@ -26,7 +26,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcivar.h,v 1.2 1997/08/21 06:54:09 smp Exp smp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -199,5 +199,6 @@ int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
|
|||
int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
|
||||
int pci_unmap_int (pcici_t tag);
|
||||
int pci_register_lkm (struct pci_device *dvp, int if_revision);
|
||||
void pci_configure (void);
|
||||
|
||||
#endif /* PCI_COMPAT */
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pci_compat.c,v 1.3 1997/05/30 20:58:04 se Exp $
|
||||
* $Id: pci_compat.c,v 1.2 1997/08/21 07:00:12 smp Exp smp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ pci_map_int(pcici_t cfg, pci_inthand_t *func, void *arg, unsigned *maskptr)
|
|||
void *dev_instance = (void *)-1; /* XXX use cfg->devdata */
|
||||
void *idesc;
|
||||
|
||||
idesc = intr_create(dev_instance, irq, func, arg, maskptr, 0);
|
||||
idesc = intr_create(dev_instance, irq, (inthand2_t*)func, arg, maskptr, 0);
|
||||
return (intr_connect(idesc) == 0);
|
||||
}
|
||||
return (1);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcivar.h,v 1.2 1997/08/21 06:54:09 smp Exp smp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -199,5 +199,6 @@ int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa);
|
|||
int pci_map_int (pcici_t tag, pci_inthand_t *func, void *arg, unsigned *maskptr);
|
||||
int pci_unmap_int (pcici_t tag);
|
||||
int pci_register_lkm (struct pci_device *dvp, int if_revision);
|
||||
void pci_configure (void);
|
||||
|
||||
#endif /* PCI_COMPAT */
|
||||
|
|
|
|||
Loading…
Reference in a new issue