]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e: Make struct i40e_stats const
authorJoe Perches <joe@perches.com>
Tue, 27 Sep 2016 03:17:01 +0000 (20:17 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:40:19 +0000 (19:40 -0500)
Orabug: 24568124

Move some data to text

$ size drivers/net/ethernet/intel/i40e/i40e_ethtool.o*
   text    data     bss     dec     hex filename
  25012       0      32   25044    61d4 drivers/net/ethernet/intel/i40e/i40e_ethtool.o.new
  22868    2120      32   25020    61bc drivers/net/ethernet/intel/i40e/i40e_ethtool.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit fe180a5e275adc7430ada9e4881dcca5ea1a8037)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index b6c6e687190bfb54f04e3ffa09ecd55478c30aea..2265d4f12f8dd292a76820c2ab2dd6af9d6fd10e 100644 (file)
@@ -104,7 +104,7 @@ static const struct i40e_stats i40e_gstrings_misc_stats[] = {
  * The PF_STATs are appended to the netdev stats only when ethtool -S
  * is queried on the base PF netdev, not on the VMDq or FCoE netdev.
  */
-static struct i40e_stats i40e_gstrings_stats[] = {
+static const struct i40e_stats i40e_gstrings_stats[] = {
        I40E_PF_STAT("rx_bytes", stats.eth.rx_bytes),
        I40E_PF_STAT("tx_bytes", stats.eth.tx_bytes),
        I40E_PF_STAT("rx_unicast", stats.eth.rx_unicast),