NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51902: src/sys/dev/pci/ahc_pci.c: bad call to ahc_9005_subdevinfo_valid



>Number:         51902
>Category:       kern
>Synopsis:       src/sys/dev/pci/ahc_pci.c: bad call to ahc_9005_subdevinfo_valid
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 21 17:00:00 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20170121
>Organization:
>Environment:
>Description:
[src/sys/dev/pci/ahc_pci.c:703] -> [src/sys/dev/pci/ahc_pci.c:1120]: (warning) Function 'ahc_9005_subdevinfo_valid' argument order different: declaration 'vendor, device, subvendor, subdevice' definition 'device, vendor, subdevice, subvendor'

$ fgrep ahc_9005_subdevinfo_valid src/sys/dev/pci/ahc_pci.c
static int ahc_9005_subdevinfo_valid(uint16_t vendor, uint16_t device,
	    && ahc_9005_subdevinfo_valid(PCI_VENDOR(id), PCI_PRODUCT(id),
ahc_9005_subdevinfo_valid(uint16_t device, uint16_t vendor,
$

So we can see that declaration and call both match, but they
don't match the definition.


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index