Переглянути джерело

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>
Alex Chiang 16 роки тому
батько
коміт
6d1e87daee
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      drivers/pci/hotplug/cpqphp.h

+ 1 - 1
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);
 }