]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-non-modular'
authorDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:52:35 +0000 (07:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:52:35 +0000 (07:52 -0700)
commit6f1a82b8a5e30ac387d4ba33ea1cca9b6958f33e
treebd6844ce1485ccb1cff8d350fa8e7688fa34a1d8
parentb8ada1ad0ce356424ab0fda28b8a2c05682923c7
parent5e69685f020e99bfe72e2c9b7dfed80d93672847
Merge branch 'net-non-modular'

Paul Gortmaker says:

====================
make non-modular code explicitly non-modular

[v2: drop m68k patches that Geert converted to modules; add one ARM
 driver patch ; update net-next baseline to today; switch to ARM
 for build testing.]

In a previous merge window, we made changes to allow better
delineation between modular and non-modular code in commit
692dca6e3400c0d9b64ad718b76ece90524bda9f ("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
just to avoid suffering build breakage.

Here we target code that is, by nature of their Makefile and/or
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
files, 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 continue the process of expecting a
level of consistency between the Kconfig/Makefile of code and the
code in use itself.

Fortuntately the net subsystem has relatively few instances, given
the overall amount of code and drivers it contains.  For comparison
there are over 300 instances tree wide, resulting in a possible net
removal of on the order of 5000 lines of unused code.

Build tested on net-next from today, on ARM, since that is the arch
where the one ethernet driver changed here is available.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>