summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpqphp.h
diff options
context:
space:
mode:
authorAlex Chiang2009-03-31 17:24:12 +0200
committerJesse Barnes2009-06-11 21:04:15 +0200
commit6d1e87daeeba864a18535b7f3aed0e65f5f52275 (patch)
treef96735aa840ce16f161a365c9c8cf565b583ecf0 /drivers/pci/hotplug/cpqphp.h
parentPCI Hotplug: cpqphp: eliminate dead code - PCI_ScanBusNonBridge (diff)
downloadkernel-qcow2-linux-6d1e87daeeba864a18535b7f3aed0e65f5f52275.tar.gz
kernel-qcow2-linux-6d1e87daeeba864a18535b7f3aed0e65f5f52275.tar.xz
kernel-qcow2-linux-6d1e87daeeba864a18535b7f3aed0e65f5f52275.zip
PCI Hotplug: cpqphp: constify slot_name()
Eliminate this warning: warning: return discards qualifiers from pointer target type Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/cpqphp.h')
-rw-r--r--drivers/pci/hotplug/cpqphp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h
index 1d5561c6bad4..53836001d511 100644
--- a/drivers/pci/hotplug/cpqphp.h
+++ b/drivers/pci/hotplug/cpqphp.h
@@ -464,7 +464,7 @@ extern u8 cpqhp_disk_irq;
/* inline functions */
-static inline char *slot_name(struct slot *slot)
+static inline const char *slot_name(struct slot *slot)
{
return hotplug_slot_name(slot->hotplug_slot);
}