OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3265ea
)
PCI Hotplug: cpqphp: constify slot_name()
author
Alex Chiang
<achiang@hp.com>
Tue, 31 Mar 2009 15:24:12 +0000
(09:24 -0600)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Thu, 11 Jun 2009 19:04:15 +0000
(12:04 -0700)
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>
drivers/pci/hotplug/cpqphp.h
patch
|
blob
|
history
diff --git
a/drivers/pci/hotplug/cpqphp.h
b/drivers/pci/hotplug/cpqphp.h
index
1d5561c
..
5383600
100644
(file)
--- 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 c
onst c
har *slot_name(struct slot *slot)
{
return hotplug_slot_name(slot->hotplug_slot);
}