lkml.org 
[lkml]   [2010]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/25] drivers/net/vnxnet3: Use static const char arrays
    Date
    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/net/vmxnet3/vmxnet3_drv.c | 2 +-
    drivers/net/vmxnet3/vmxnet3_int.h | 2 +-
    2 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
    index 198ce92..dfc0014 100644
    --- a/drivers/net/vmxnet3/vmxnet3_drv.c
    +++ b/drivers/net/vmxnet3/vmxnet3_drv.c
    @@ -28,7 +28,7 @@

    #include "vmxnet3_int.h"

    -char vmxnet3_driver_name[] = "vmxnet3";
    +const char vmxnet3_driver_name[] = "vmxnet3";
    #define VMXNET3_DRIVER_DESC "VMware vmxnet3 virtual NIC driver"

    /*
    diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h
    index 2121c73..201fcf7 100644
    --- a/drivers/net/vmxnet3/vmxnet3_int.h
    +++ b/drivers/net/vmxnet3/vmxnet3_int.h
    @@ -384,5 +384,5 @@ vmxnet3_create_queues(struct vmxnet3_adapter *adapter,
    extern void vmxnet3_set_ethtool_ops(struct net_device *netdev);
    extern struct net_device_stats *vmxnet3_get_stats(struct net_device *netdev);

    -extern char vmxnet3_driver_name[];
    +extern const char vmxnet3_driver_name[];
    #endif
    --
    1.7.3.rc1


    \
     
     \ /
      Last update: 2010-09-13 21:53    [W:0.019 / U:29.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site