lkml.org 
[lkml]   [2009]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 13/15] PCI Hotplug: cpqphp: constify slot_name()
    From
    Date
    Eliminate this warning:
    warning: return discards qualifiers from pointer target type

    Signed-off-by: Alex Chiang <achiang@hp.com>
    ---

    drivers/pci/hotplug/cpqphp.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h
    index 1d5561c..5383600 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);
    }


    \
     
     \ /
      Last update: 2009-03-31 17:33    [W:0.025 / U:0.012 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site