Skip to content

Commit

Permalink
PCI Hotplug: cpqphp: constify slot_name()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Chiang authored and Jesse Barnes committed Jun 11, 2009
1 parent e3265ea commit 6d1e87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/hotplug/cpqphp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6d1e87d

Please sign in to comment.