linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/9] net: qed/qede: W=1 C=1 warnings cleanup
@ 2020-07-06 15:38 Alexander Lobakin
  2020-07-06 15:38 ` [PATCH net-next 1/9] net: qed: move static iro_arr[] out of header file Alexander Lobakin
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Alexander Lobakin @ 2020-07-06 15:38 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski
  Cc: Alexander Lobakin, Igor Russkikh, Michal Kalderon, Ariel Elior,
	Denis Bolotin, GR-everest-linux-l2, netdev, linux-kernel

This set cleans qed/qede build log under W=1 C=1 with GCC 8 and
sparse 0.6.2. The only thing left is "context imbalance -- unexpected
unlock" in one of the source files, which will be issued later during
the refactoring cycles.

The biggest part is handling the endianness warnings. The current code
often just assumes that both host and device operate in LE, which is
obviously incorrect (despite the fact that it's true for x86 platforms),
and makes sparse {s,m}ad.

The rest of the series is mostly random non-functional fixes
here-and-there.

Alexander Lobakin (9):
  net: qed: move static iro_arr[] out of header file
  net: qed: cleanup global structs declarations
  net: qed: correct qed_hw_err_notify() prototype
  net: qed: address kernel-doc warnings
  net: qed: improve indentation of some parts of code
  net: qed: use ptr shortcuts to dedup field accessing in some parts
  net: qed: sanitize BE/LE data processing
  net: qede: fix kernel-doc for qede_ptp_adjfreq()
  net: qede: fix BE vs CPU comparison

 drivers/net/ethernet/qlogic/qed/qed_cxt.c     |  14 +-
 drivers/net/ethernet/qlogic/qed/qed_dcbx.c    |  27 +-
 drivers/net/ethernet/qlogic/qed/qed_dcbx.h    |   2 +
 drivers/net/ethernet/qlogic/qed/qed_debug.c   |  52 ++--
 drivers/net/ethernet/qlogic/qed/qed_fcoe.c    |  54 ++--
 drivers/net/ethernet/qlogic/qed/qed_fcoe.h    |   5 -
 drivers/net/ethernet/qlogic/qed/qed_hsi.h     | 267 +++++++-----------
 drivers/net/ethernet/qlogic/qed/qed_hw.c      |   5 +-
 drivers/net/ethernet/qlogic/qed/qed_hw.h      |   7 +-
 .../ethernet/qlogic/qed/qed_init_fw_funcs.c   | 128 +++++----
 .../net/ethernet/qlogic/qed/qed_init_ops.c    |  73 +++++
 drivers/net/ethernet/qlogic/qed/qed_int.c     | 123 ++++----
 drivers/net/ethernet/qlogic/qed/qed_iscsi.c   |  48 ++--
 drivers/net/ethernet/qlogic/qed/qed_iscsi.h   |   4 -
 drivers/net/ethernet/qlogic/qed/qed_iwarp.c   | 150 ++++++----
 drivers/net/ethernet/qlogic/qed/qed_l2.c      |  81 +++---
 drivers/net/ethernet/qlogic/qed/qed_ll2.c     |   9 +-
 drivers/net/ethernet/qlogic/qed/qed_ll2.h     |   2 +
 drivers/net/ethernet/qlogic/qed/qed_main.c    |  16 +-
 drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c |   4 +-
 drivers/net/ethernet/qlogic/qed/qed_ptp.c     |   1 +
 drivers/net/ethernet/qlogic/qed/qed_ptp.h     |   9 +
 drivers/net/ethernet/qlogic/qed/qed_rdma.c    |  52 ++--
 drivers/net/ethernet/qlogic/qed/qed_rdma.h    |   2 +-
 drivers/net/ethernet/qlogic/qed/qed_roce.c    | 203 ++++++-------
 drivers/net/ethernet/qlogic/qed/qed_sp.h      |   9 +-
 .../net/ethernet/qlogic/qed/qed_sp_commands.c |  24 +-
 drivers/net/ethernet/qlogic/qed/qed_spq.c     |  16 +-
 drivers/net/ethernet/qlogic/qed/qed_sriov.c   |  27 +-
 drivers/net/ethernet/qlogic/qed/qed_sriov.h   |   2 +
 .../net/ethernet/qlogic/qede/qede_filter.c    |   8 +-
 drivers/net/ethernet/qlogic/qede/qede_ptp.c   |  10 +-
 include/linux/qed/qed_if.h                    |  15 +-
 33 files changed, 743 insertions(+), 706 deletions(-)
 create mode 100644 drivers/net/ethernet/qlogic/qed/qed_ptp.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-07-06 20:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 15:38 [PATCH net-next 0/9] net: qed/qede: W=1 C=1 warnings cleanup Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 1/9] net: qed: move static iro_arr[] out of header file Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 2/9] net: qed: cleanup global structs declarations Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 3/9] net: qed: correct qed_hw_err_notify() prototype Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 4/9] net: qed: address kernel-doc warnings Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 5/9] net: qed: improve indentation of some parts of code Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 6/9] net: qed: use ptr shortcuts to dedup field accessing in some parts Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 7/9] net: qed: sanitize BE/LE data processing Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 8/9] net: qede: fix kernel-doc for qede_ptp_adjfreq() Alexander Lobakin
2020-07-06 15:38 ` [PATCH net-next 9/9] net: qede: fix BE vs CPU comparison Alexander Lobakin
2020-07-06 20:19 ` [PATCH net-next 0/9] net: qed/qede: W=1 C=1 warnings cleanup David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).