[bug report] ehea: Add 64bit statistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Anton Blanchard,

The patch 239c562c94dc: "ehea: Add 64bit statistics" from Oct 14,
2011, leads to the following static checker warning:

	drivers/net/ethernet/ibm/ehea/ehea_main.c:3047 ehea_setup_single_port()
	warn: struct type mismatch 'rtnl_link_stats64 vs net_device_stats'

drivers/net/ethernet/ibm/ehea/ehea_main.c
  3041          INIT_WORK(&port->reset_task, ehea_reset_port);
  3042          INIT_DELAYED_WORK(&port->stats_work, ehea_update_stats);
  3043  
  3044          init_waitqueue_head(&port->swqe_avail_wq);
  3045          init_waitqueue_head(&port->restart_wq);
  3046  
  3047          memset(&port->stats, 0, sizeof(struct net_device_stats));
                                               ^^^^^^^^^^^^^^^^^^^^^^^

This should be sizeof(struct rtnl_link_stats64).  But it's harmless,
the memory starts out as zeroed.  I don't have a cross compiler set up
so I'm not going to send a patch.

  3048          ret = register_netdev(dev);
  3049          if (ret) {
  3050                  pr_err("register_netdev failed. ret=%d\n", ret);
  3051                  goto out_unreg_port;
  3052          }

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux