Re: [PATCH V2 3/7] USB: UHCI: Move PCI specific functions to uhci-pci.c

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

 



On 05/05/2011 09:22 PM, Sergei Shtylyov wrote:
> Hello.
> 
> Jan Andersson wrote:
>> The patch has the following checkpatch error/warnings:
> 
>> ERROR: switch and case should be at the same indent
>> +	switch (to_pci_dev(uhci_dev(uhci))->vendor) {
>> +	    default:
>> [...]
>> +	    case PCI_VENDOR_ID_GENESYS:
>> [...]
>> +	    case PCI_VENDOR_ID_INTEL:
> 
>> WARNING: static char array declaration should probably be static const char
>> +	static char bad_Asus_board[] = "A7V8X";
> 
>> WARNING: braces {} are not necessary for single statement blocks
>> +	else {
>> +		check_and_reset_hc(uhci);
>> +	}
> 
>> (false positive)
> 
>> WARNING: Use DEFINE_PCI_DEVICE_TABLE for struct pci_device_id
>> +static const struct pci_device_id uhci_pci_ids[] = { {
> 
>> total: 1 errors, 3 warnings, 688 lines checked
> 
>> These warnings come from code moved from uhci-hcd.c to uhci-pci.c. The
>> valid warnings are fixed in the next patch of this series.
> 
>     You could have avoided these errors/warnings (and the above text) if you 
> fixed them in the original code before moving it to the new file.

I will swap patches 3 and 4 for V3.

Thanks,
  Jan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux