linux/drivers/net/ethernet/cisco/enic
Govindarajulu Varadarajan 7044f429e7 enic: Fix format truncation warning
With -Wformat-truncation, gcc throws the following warning.

Fix this by increasing the size of devname to accommodate 15 character
netdev interface name and description.

Remove length format precision for %s. We can fit entire name.

Also increment the version.

drivers/net/ethernet/cisco/enic/enic_main.c: In function ‘enic_open’:
drivers/net/ethernet/cisco/enic/enic_main.c:1740:15: warning: ‘%u’ directive output may be truncated writing between 1 and 2 bytes into a region of size between 1 and 12 [-Wformat-truncation=]
     "%.11s-rx-%u", netdev->name, i);
               ^~
drivers/net/ethernet/cisco/enic/enic_main.c:1740:5: note: directive argument in the range [0, 16]
     "%.11s-rx-%u", netdev->name, i);
     ^~~~~~~~~~~~~
drivers/net/ethernet/cisco/enic/enic_main.c:1738:4: note: ‘snprintf’ output between 6 and 18 bytes into a destination of size 16
    snprintf(enic->msix[intr].devname,
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     sizeof(enic->msix[intr].devname),
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     "%.11s-rx-%u", netdev->name, i);
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-20 15:24:53 -04:00
..
Kconfig
Makefile enic: devcmd for adding IP 5 tuple hardware filters 2014-06-23 14:32:19 -07:00
cq_desc.h
cq_enet_desc.h
enic.h enic: Fix format truncation warning 2017-06-20 15:24:53 -04:00
enic_api.c enic: fix lockdep around devcmd_lock 2014-06-23 14:32:19 -07:00
enic_api.h
enic_clsf.c flow_dissector: Add flags argument to skb_flow_dissector functions 2015-09-01 15:06:22 -07:00
enic_clsf.h enic: Add ethtool support to show classifier filters added by the driver 2014-07-21 20:22:46 -07:00
enic_dev.c net: ethernet: cisco: enic: enic_dev: Remove some unused functions 2015-01-02 16:36:08 -05:00
enic_dev.h net: ethernet: cisco: enic: enic_dev: Remove some unused functions 2015-01-02 16:36:08 -05:00
enic_ethtool.c net: ethernet: enic: move to new ethtool api {get|set}_link_ksettings 2016-06-14 17:16:14 -04:00
enic_main.c enic: Fix format truncation warning 2017-06-20 15:24:53 -04:00
enic_pp.c
enic_pp.h
enic_res.c enic: Add Accelerated RFS support 2014-06-23 14:32:19 -07:00
enic_res.h ethernet: use core min/max MTU checking 2016-10-18 11:34:22 -04:00
rq_enet_desc.h
vnic_cq.c cisco: enic: Update logging macros and uses 2016-03-11 15:07:48 -05:00
vnic_cq.h enic: Add support for adaptive interrupt coalescing 2014-05-21 17:04:13 -04:00
vnic_dev.c enic: add devcmds for vxlan offload 2017-02-09 17:24:29 -05:00
vnic_dev.h enic: add devcmds for vxlan offload 2017-02-09 17:24:29 -05:00
vnic_devcmd.h enic: add devcmds for vxlan offload 2017-02-09 17:24:29 -05:00
vnic_enet.h enic: add devcmds for vxlan offload 2017-02-09 17:24:29 -05:00
vnic_intr.c cisco: enic: Update logging macros and uses 2016-03-11 15:07:48 -05:00
vnic_intr.h
vnic_nic.h
vnic_resource.h enic: add devcmd2 resources 2015-08-17 15:25:29 -07:00
vnic_rq.c enic: fix rq disable 2016-10-29 17:23:39 -04:00
vnic_rq.h enic: Remove local ndo_busy_poll() implementation. 2017-02-03 17:28:21 -05:00
vnic_rss.h enic: use netdev_rss_key_fill() helper 2014-11-23 21:01:42 -05:00
vnic_stats.h enic: add stats for dma mapping error 2014-12-31 13:08:45 -05:00
vnic_vic.c
vnic_vic.h
vnic_wq.c cisco: enic: Update logging macros and uses 2016-03-11 15:07:48 -05:00
vnic_wq.h enic: reduce ioread in devcmd2 2015-08-25 16:05:48 -07:00
wq_enet_desc.h