All of lore.kernel.org
 help / color / mirror / Atom feed
* module loader dead code removal and cleanups v3
@ 2021-02-02 12:13 ` Christoph Hellwig
  0 siblings, 0 replies; 78+ messages in thread
From: Christoph Hellwig @ 2021-02-02 12:13 UTC (permalink / raw)
  To: Frederic Barrat, Andrew Donnellan, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter,
	Jessica Yu, Josh Poimboeuf, Jiri Kosina, Miroslav Benes,
	Petr Mladek, Joe Lawrence
  Cc: Masahiro Yamada, Michal Marek, linux-kernel, linuxppc-dev,
	dri-devel, live-patching, linux-kbuild

Hi all,

this series removes support for long term unused export types and
cleans up various loose ends in the module loader.

Changes since v2:
 - clean up klp_find_object_symbol a bit
 - remove the now unused module_assert_mutex helper 

Changes since v1:
 - move struct symsearch to module.c
 - rework drm to not call find_module at all
 - allow RCU-sched locking for find_module
 - keep find_module as a public API instead of module_loaded
 - update a few comments and commit logs

Diffstat:

^ permalink raw reply	[flat|nested] 78+ messages in thread
* module loader dead code removal and cleanups v2
@ 2021-01-28 18:14 Christoph Hellwig
  2021-01-28 18:14   ` Christoph Hellwig
  0 siblings, 1 reply; 78+ messages in thread
From: Christoph Hellwig @ 2021-01-28 18:14 UTC (permalink / raw)
  To: Frederic Barrat, Andrew Donnellan, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter,
	Jessica Yu, Josh Poimboeuf, Jiri Kosina, Miroslav Benes,
	Petr Mladek, Joe Lawrence
  Cc: Masahiro Yamada, Michal Marek, linux-kernel, linuxppc-dev,
	dri-devel, live-patching, linux-kbuild

Hi all,

this series removes support for long term unused export types and
cleans up various loose ends in the module loader.

Changes since v1:
 - move struct symsearch to module.c
 - rework drm to not call find_module at all
 - llow RCU-sched locking for find_module
 - keep find_module as a public API instead of module_loaded
 - update a few comments and commit logs

Diffstat:
 arch/arm/configs/bcm2835_defconfig          |    1 
 arch/arm/configs/mxs_defconfig              |    1 
 arch/mips/configs/nlm_xlp_defconfig         |    1 
 arch/mips/configs/nlm_xlr_defconfig         |    1 
 arch/parisc/configs/generic-32bit_defconfig |    1 
 arch/parisc/configs/generic-64bit_defconfig |    1 
 arch/powerpc/configs/ppc6xx_defconfig       |    1 
 arch/powerpc/platforms/powernv/pci-cxl.c    |   22 -
 arch/s390/configs/debug_defconfig           |    1 
 arch/s390/configs/defconfig                 |    1 
 arch/sh/configs/edosk7760_defconfig         |    1 
 arch/sh/configs/sdk7780_defconfig           |    1 
 arch/x86/configs/i386_defconfig             |    1 
 arch/x86/configs/x86_64_defconfig           |    1 
 arch/x86/tools/relocs.c                     |    4 
 drivers/gpu/drm/drm_crtc_helper_internal.h  |   10 
 drivers/gpu/drm/drm_fb_helper.c             |   21 -
 drivers/gpu/drm/drm_kms_helper_common.c     |   25 +-
 include/asm-generic/vmlinux.lds.h           |   42 ---
 include/linux/export.h                      |    9 
 include/linux/kallsyms.h                    |   17 -
 include/linux/module.h                      |   48 ----
 init/Kconfig                                |   17 -
 kernel/kallsyms.c                           |    8 
 kernel/livepatch/core.c                     |   11 
 kernel/module.c                             |  310 +++++++++-------------------
 kernel/trace/trace_kprobe.c                 |    4 
 lib/bug.c                                   |    3 
 scripts/checkpatch.pl                       |    6 
 scripts/mod/modpost.c                       |   50 ----
 scripts/mod/modpost.h                       |    3 
 scripts/module.lds.S                        |    6 
 tools/include/linux/export.h                |    3 
 33 files changed, 142 insertions(+), 490 deletions(-)

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

end of thread, other threads:[~2021-02-08 11:58 UTC | newest]

Thread overview: 78+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 12:13 module loader dead code removal and cleanups v3 Christoph Hellwig
2021-02-02 12:13 ` Christoph Hellwig
2021-02-02 12:13 ` [PATCH 01/13] powerpc/powernv: remove get_cxl_module Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-04 10:44   ` Michael Ellerman
2021-02-04 10:44     ` Michael Ellerman
2021-02-04 10:44     ` Michael Ellerman
2021-02-02 12:13 ` [PATCH 02/13] drm: remove drm_fb_helper_modinit Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 12:13 ` [PATCH 03/13] module: unexport find_module and module_mutex Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 12:13 ` [PATCH 04/13] module: use RCU to synchronize find_module Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 12:13 ` [PATCH 05/13] kallsyms: refactor {,module_}kallsyms_on_each_symbol Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-03  8:58   ` Petr Mladek
2021-02-03  8:58     ` Petr Mladek
2021-02-03  8:58     ` Petr Mladek
2021-02-02 12:13 ` [PATCH 06/13] kallsyms: only build {,module_}kallsyms_on_each_symbol when required Christoph Hellwig
2021-02-02 12:13   ` [PATCH 06/13] kallsyms: only build {, module_}kallsyms_on_each_symbol " Christoph Hellwig
2021-02-02 14:03   ` [PATCH 06/13] kallsyms: only build {,module_}kallsyms_on_each_symbol " Miroslav Benes
2021-02-02 14:03     ` [PATCH 06/13] kallsyms: only build {, module_}kallsyms_on_each_symbol " Miroslav Benes
2021-02-02 14:03     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 07/13] module: mark module_mutex static Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:04   ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 08/13] module: remove each_symbol_in_section Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:04   ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 09/13] module: merge each_symbol_section into find_symbol Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:04   ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 14:04     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 10/13] module: pass struct find_symbol_args to find_symbol Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:07   ` Miroslav Benes
2021-02-02 14:07     ` Miroslav Benes
2021-02-02 14:07     ` Miroslav Benes
2021-02-02 15:41     ` Christoph Hellwig
2021-02-02 15:41       ` Christoph Hellwig
2021-02-03  9:04     ` Christoph Hellwig
2021-02-03  9:04       ` Christoph Hellwig
2021-02-03  9:31       ` Miroslav Benes
2021-02-03  9:31         ` Miroslav Benes
2021-02-03  9:31         ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 11/13] module: move struct symsearch to module.c Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:10   ` Miroslav Benes
2021-02-02 14:10     ` Miroslav Benes
2021-02-02 14:10     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 12/13] module: remove EXPORT_SYMBOL_GPL_FUTURE Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:12   ` Miroslav Benes
2021-02-02 14:12     ` Miroslav Benes
2021-02-02 14:12     ` Miroslav Benes
2021-02-02 12:13 ` [PATCH 13/13] module: remove EXPORT_UNUSED_SYMBOL* Christoph Hellwig
2021-02-02 12:13   ` Christoph Hellwig
2021-02-02 14:21   ` Miroslav Benes
2021-02-02 14:21     ` Miroslav Benes
2021-02-02 14:21     ` Miroslav Benes
2021-02-02 14:37 ` module loader dead code removal and cleanups v3 Jessica Yu
2021-02-02 14:37   ` Jessica Yu
2021-02-02 14:37   ` Jessica Yu
2021-02-02 15:23   ` Christoph Hellwig
2021-02-02 15:23     ` Christoph Hellwig
2021-02-02 17:38   ` Emil Velikov
2021-02-02 17:38     ` Emil Velikov
2021-02-02 17:38     ` Emil Velikov
2021-02-08 11:36 ` Jessica Yu
2021-02-08 11:36   ` Jessica Yu
2021-02-08 11:36   ` Jessica Yu
  -- strict thread matches above, loose matches on Subject: below --
2021-01-28 18:14 module loader dead code removal and cleanups v2 Christoph Hellwig
2021-01-28 18:14 ` [PATCH 10/13] module: pass struct find_symbol_args to find_symbol Christoph Hellwig
2021-01-28 18:14   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.