Skip to content

Commit 6d1e87d

Browse files
Alex Chiangjbarnes993
authored andcommitted
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>
1 parent e3265ea commit 6d1e87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/hotplug/cpqphp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ extern u8 cpqhp_disk_irq;
464464

465465
/* inline functions */
466466

467-
static inline char *slot_name(struct slot *slot)
467+
static inline const char *slot_name(struct slot *slot)
468468
{
469469
return hotplug_slot_name(slot->hotplug_slot);
470470
}

0 commit comments

Comments
 (0)