Skip to content

scsi: remove orphaned modular code from non-modular drivers

Paul Gortmaker linux-m68k linux-mips linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drivers/scsi: make jazz_esp.c driver explicitly non-modulardrivers/scsi/jazz_esp.c+6 -370 replies
2/2drivers/scsi: make sun3x_esp.c driver explicitly non-modulardrivers/scsi/sun3x_esp.c+5 -390 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] scsi: remove orphaned modular code from non-modular drivers

In the ongoing audit/cleanup of non-modular code needlessly using modular infrastructure, the SCSI subsystem fortunately only contains two instances that I detected. Both are for legacy drivers that predate the git epoch, so cleary there is no demand for converting these drivers to be tristate.

For anyone new to the underlying goal of this cleanup, we are trying to not use module support for code that isn't buildable as a module since:

(1) it is easy to accidentally write unused module_exit and remove code
(2) it can be misleading when reading the source, thinking it can be modular when the Makefile and/or Kconfig prohibit it
(3) it requires the include of the module.h header file which in turn includes nearly everything else, thus adding to CPP overhead.
(4) it gets copied/replicated into other code and spreads like weeds.

Build tested for mips (jazz) and m68k (sun3x) on 4.6-rc1 to ensure no silly typos crept in.

---

Cc Geert Uytterhoeven <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc Thomas Bogendoerfer <[email protected]>

Paul Gortmaker (2):
drivers/scsi: make jazz_esp.c driver explicitly non-modular drivers/scsi: make sun3x_esp.c driver explicitly non-modular

 drivers/scsi/jazz_esp.c  | 43 ++++++-------------------------------------
 drivers/scsi/sun3x_esp.c | 44 +++++---------------------------------------
 2 files changed, 11 insertions(+), 76 deletions(-)
Signature · 1 line
2.6.1