Skip to content

Style fixes: open code obfuscating macros

Logan Gunthorpe lkml ntb 2 versions Applied

Status from this message: Applied to my ntb-next branch

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4ntb_hw_amd: Style fixes: open code macros that just obfuscate codedrivers/ntb/hw/amd/ntb_hw_amd.c drivers/ntb/hw/amd/ntb_hw_amd.h+31 -311 reply
2/4ntb_hw_intel: Style fixes: open code macros that just obfuscate codedrivers/ntb/hw/intel/ntb_hw_intel.c drivers/ntb/hw/intel/ntb_hw_intel.h+95 -1001 reply
3/4ntb_hw_amd: Print kernel messages with the ntb device not the pci onedrivers/ntb/hw/amd/ntb_hw_amd.c+11 -121 reply
4/4ntb_hw_intel: Print kernel messages with the ntb device not the pci onedrivers/ntb/hw/intel/ntb_hw_intel.c+64 -680 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Style fixes: open code obfuscating macros

Hi,

Here's an updated version of the style fixes patchset. The differences from v1 are:

1) Rebased onto Jon Mason's current NTB branch

2) Added two more patches to convert the print lines to use the ntb device and not the pci one. This seems more sane, shortens a bunch of lines and removes the need for temporaries.

Note with (2): I've tried my best to ensure that statements that print before the ntb device is registered still use the PCI device. However, someone should probably review and test this as I don't have access to all types of hardware to do that.

Thanks,

Logan

Logan Gunthorpe (4):
ntb_hw_amd: Style fixes: open code macros that just obfuscate code
ntb_hw_intel: Style fixes: open code macros that just obfuscate code
ntb_hw_amd: Print kernel messages with the ntb device not the pci one
ntb_hw_intel: Print kernel messages with the ntb device not the pci
one

 drivers/ntb/hw/amd/ntb_hw_amd.c     |  60 +++++------
 drivers/ntb/hw/amd/ntb_hw_amd.h     |   3 -
 drivers/ntb/hw/intel/ntb_hw_intel.c | 192 +++++++++++++++++-------------------
 drivers/ntb/hw/intel/ntb_hw_intel.h |   3 -
 4 files changed, 124 insertions(+), 134 deletions(-)

--
2.1.4