ATA: fix PCI must_checks
PATCH 1/1 ATA: fix PCI must_checks
From: Randy Dunlap <[email protected]>
Check PCI interface functions results for PATA/SATA drivers.
Fixes these warnings:
drivers/ata/pata_cs5530.c:284: warning: ignoring return value of 'pci_set_mwi', declared with attribute warn_unused_result
Signed-off-by Randy Dunlap <[email protected]>
--- drivers/ata/pata_cs5530.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/ata/pata_cs5530.c +3 -1
@@ -270,7 +270,9 @@ static int cs5530_init_chip(void) }pci_set_master (cs5530_0); -pci_set_mwi (cs5530_0); +if (pci_set_mwi (cs5530_0)) + printk(KERN_WARNING DRV_NAME +": error enabling PCI MWI transactions\n" );/* * Set PCI CacheLineSize to 16-bytes:
Alan Cox
NAKQuoted 7 lines · On Wed, 4 Apr 2007 21:37:11 -0700 Randy Dunlap <[email protected]> wrote:
From: Randy Dunlap <[email protected]>
Check PCI interface functions results for PATA/SATA drivers.
Fixes these warnings:
drivers/ata/pata_cs5530.c:284: warning: ignoring return value of 'pci_set_mwi', declared with attributewarn_unused_result
NAK
The bug is in pci_set_mwi being marked as warn_unused_result. Please fix that instead