linux/drivers/net/ethernet/intel/igb
John Stultz 827da44c61 net: Explicitly initialize u64_stats_sync structures for lockdep
In order to enable lockdep on seqcount/seqlock structures, we
must explicitly initialize any locks.

The u64_stats_sync structure, uses a seqcount, and thus we need
to introduce a u64_stats_init() function and use it to initialize
the structure.

This unfortunately adds a lot of fairly trivial initialization code
to a number of drivers. But the benefit of ensuring correctness makes
this worth while.

Because these changes are required for lockdep to be enabled, and the
changes are quite trivial, I've not yet split this patch out into 30-some
separate patches, as I figured it would be better to get the various
maintainers thoughts on how to best merge this change along with
the seqcount lockdep enablement.

Feedback would be appreciated!

Signed-off-by: John Stultz <john.stultz@linaro.org>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: James Morris <jmorris@namei.org>
Cc: Jesse Gross <jesse@nicira.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Mirko Lindner <mlindner@marvell.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Roger Luethi <rl@hellgate.ch>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Simon Horman <horms@verge.net.au>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Wensong Zhang <wensong@linux-vs.org>
Cc: netdev@vger.kernel.org
Link: http://lkml.kernel.org/r/1381186321-4906-2-git-send-email-john.stultz@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2013-11-06 12:40:25 +01:00
..
e1000_82575.c igb: Add additional get_phy_id call for i354 devices 2013-09-12 16:24:55 -04:00
e1000_82575.h igb: Add support for i354 devices 2013-04-18 16:40:35 -07:00
e1000_defines.h igb: New PHY_ID for i354 device 2013-09-04 04:57:13 -07:00
e1000_hw.h igb: Add device support for flashless SKU of i210 device 2013-08-22 02:26:06 -07:00
e1000_i210.c igb: Refactor NVM read functions to accommodate devices with no flash 2013-08-22 02:26:00 -07:00
e1000_i210.h igb: Refactor NVM read functions to accommodate devices with no flash 2013-08-22 02:26:00 -07:00
e1000_mac.c igb: Read flow control for i350 from correct EEPROM section 2013-09-12 16:24:55 -04:00
e1000_mac.h igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
e1000_mbx.c igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
e1000_mbx.h igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
e1000_nvm.c igb: Fix get_fw_version function for all parts 2013-08-22 02:26:09 -07:00
e1000_nvm.h igb: Fix get_fw_version function for all parts 2013-08-22 02:26:09 -07:00
e1000_phy.c igb: M88E1543 PHY downshift implementation 2013-09-04 05:04:31 -07:00
e1000_phy.h igb: Support for SFP modules discovery 2013-05-21 02:37:36 -07:00
e1000_regs.h igb: Add support for i354 devices 2013-04-18 16:40:35 -07:00
igb.h igb: Implementation of 1-sec delay for i210 devices 2013-09-04 03:53:53 -07:00
igb_ethtool.c igb: Avoid uninitialized advertised variable in eee_set_cur 2013-10-02 16:31:48 -04:00
igb_hwmon.c igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
igb_main.c net: Explicitly initialize u64_stats_sync structures for lockdep 2013-11-06 12:40:25 +01:00
igb_ptp.c igb: Read register for latch_on without return value 2013-08-22 02:25:25 -07:00
Makefile igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00