summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/shpchp_sysfs.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-04-12 11:18:07 -0600
committerBjorn Helgaas <bhelgaas@google.com>2013-04-17 10:20:58 -0600
commitd67aed63b8bfa4a06575ed578328b02f909699ee (patch)
treee3d13dff8b71fdc254ce7d6ffceccaef80dc74e8 /drivers/pci/hotplug/shpchp_sysfs.c
parentb638d7e7b849ad402aaecfe7edb599687b5eb3a8 (diff)
downloadtalos-op-linux-d67aed63b8bfa4a06575ed578328b02f909699ee.tar.gz
talos-op-linux-d67aed63b8bfa4a06575ed578328b02f909699ee.zip
PCI: Remove __must_check from definitions
The __must_check (gcc "warn_unused_result") attribute only makes sense when compiling the *caller* of the function, so the attribute should appear on the declaration in the header file, not on the definition. The declarations of these functions are already annotated with __must_check. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/shpchp_sysfs.c')
-rw-r--r--drivers/pci/hotplug/shpchp_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/shpchp_sysfs.c b/drivers/pci/hotplug/shpchp_sysfs.c
index eeb23ceae4a8..e8c31fe20566 100644
--- a/drivers/pci/hotplug/shpchp_sysfs.c
+++ b/drivers/pci/hotplug/shpchp_sysfs.c
@@ -85,7 +85,7 @@ static ssize_t show_ctrl (struct device *dev, struct device_attribute *attr, cha
}
static DEVICE_ATTR (ctrl, S_IRUGO, show_ctrl, NULL);
-int __must_check shpchp_create_ctrl_files (struct controller *ctrl)
+int shpchp_create_ctrl_files (struct controller *ctrl)
{
return device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl);
}
OpenPOWER on IntegriCloud