Skip to content

char/misc: make some drivers more explicitly non-modular

Paul Gortmaker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drivers/char: make efirtc.c driver explicitly non-modulardrivers/char/efirtc.c+3 -100 replies
2/4drivers/char: make SGI snsc.c driver explicitly non-modulardrivers/char/snsc.c+2 -30 replies
3/4drivers/char: make hpet.c explicitly non-modulardrivers/char/hpet.c+3 -220 replies
4/4drivers/misc: make kgdbts.c slightly more explicitly non-modulardrivers/misc/kgdbts.c+5 -51 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJason Wessel
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] char/misc: make some drivers more explicitly non-modular

In the previous merge window, we made changes to allow better delineation between modular and non-modular code in commit 0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init from init.h to module.h"). This allows us to now ensure module code looks modular and non-modular code does not accidentally look modular without suffering build breakage.

Here we target code that is, by nature of their Kconfig settings, only available to be built-in, but implicitly presenting itself as being possibly modular by way of using modular headers, macros, and functions.

The goal here is to remove that illusion of modularity from these drivers, but in a way that leaves the actual runtime unchanged. In doing so, we remove code that has never been tested and adds no value to the tree. And we advance the process of expecting a level of consistency between the Kconfig of a driver and the code that the driver uses.

Build tested on and x86-64, and on ia64 for snsc.c after applying to a baseline of char-misc/char-misc-next

Paul.
---

Cc Arnd Bergmann <[email protected]>
Cc Clemens Ladisch <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jason Wessel <[email protected]>

Paul Gortmaker (4):
drivers/char: make efirtc.c driver explicitly non-modular drivers/char: make SGI snsc.c driver explicitly non-modular drivers/char: make hpet.c explicitly non-modular drivers/misc: make kgdbts.c slightly more explicitly non-modular

 drivers/char/efirtc.c | 13 +++----------
 drivers/char/hpet.c   | 25 +++----------------------
 drivers/char/snsc.c   |  5 ++---
 drivers/misc/kgdbts.c | 10 +++++-----
 4 files changed, 13 insertions(+), 40 deletions(-)
Signature · 1 line
2.5.0