LKML Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/4] kmod: few code cleanups to split out umh code
@ 2017-08-10 18:06 Luis R. Rodriguez
  2017-08-10 18:06 ` [PATCH 1/4] kmod: split out umh code into its own file Luis R. Rodriguez
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2017-08-10 18:06 UTC (permalink / raw)
  To: akpm
  Cc: keescook, dmitry.torokhov, jeyu, rusty, mmarek, pmladek, mbenes,
	jpoimboe, linux, ebiederm, matt.redfearn, dan.carpenter,
	colin.king, danielmentz, dcb314, gregkh, torvalds, linux-kernel,
	Luis R. Rodriguez

Andrew,

Here are a few cleanup items I'd like queued up for v4.14-rc1.

The usermode helper has a provenance from the old usb code which first
required a usermode helper. Eventually this was shoved into kmod.c and
the kernel's modprobe calls was converted over eventually to share the
same code. Over time the list of usermode helpers in the kernel has
grown -- so kmod is just but one user of the API.

This series is a simple logical cleanup which acknowledges the code
evolution of the usermode helper and shoves the UMH API into its own
dedicated file. This way users of the API can later just include umh.h
instead of kmod.h.

Note despite the diff state the first patch really is just a code shove,
no functional changes are done there. I did use git format-patch -M to
generate the patch, but in the end the split was not enough for git to
consider it a rename hence the large diffstat.

These changes, along with the rest of kmod delta in line, are available
on my linux-next git tree [0] on the branch 20170810-kmod-for-v4.14. This
is based on linux-next tag next-20170810.

I've put this through 0-day and it gives me their machine compilation
blessings with all tests as OK.

If there are any issues or questions please let me know.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20170810-kmod-for-v4.14

Luis R. Rodriguez (4):
  kmod: split out umh code into its own file
  MAINTAINERS: clarify kmod is just a kernel module loader
  kmod: split off umh headers into its own file
  kmod: move #ifdef CONFIG_MODULES wrapper to Makefile

 MAINTAINERS          |   9 +-
 include/linux/kmod.h |  60 +-----
 include/linux/umh.h  |  69 +++++++
 kernel/Makefile      |   3 +-
 kernel/kmod.c        | 563 +-------------------------------------------------
 kernel/umh.c         | 568 +++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 650 insertions(+), 622 deletions(-)
 create mode 100644 include/linux/umh.h
 create mode 100644 kernel/umh.c

-- 
2.14.0

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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 18:06 [PATCH 0/4] kmod: few code cleanups to split out umh code Luis R. Rodriguez
2017-08-10 18:06 ` [PATCH 1/4] kmod: split out umh code into its own file Luis R. Rodriguez
2017-08-10 18:06 ` [PATCH 2/4] MAINTAINERS: clarify kmod is just a kernel module loader Luis R. Rodriguez
2017-08-10 18:06 ` [PATCH 3/4] kmod: split off umh headers into its own file Luis R. Rodriguez
2017-08-10 18:06 ` [PATCH 4/4] kmod: move #ifdef CONFIG_MODULES wrapper to Makefile Luis R. Rodriguez

LKML Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/lkml/0 lkml/git/0.git
	git clone --mirror https://lore.kernel.org/lkml/1 lkml/git/1.git
	git clone --mirror https://lore.kernel.org/lkml/2 lkml/git/2.git
	git clone --mirror https://lore.kernel.org/lkml/3 lkml/git/3.git
	git clone --mirror https://lore.kernel.org/lkml/4 lkml/git/4.git
	git clone --mirror https://lore.kernel.org/lkml/5 lkml/git/5.git
	git clone --mirror https://lore.kernel.org/lkml/6 lkml/git/6.git
	git clone --mirror https://lore.kernel.org/lkml/7 lkml/git/7.git
	git clone --mirror https://lore.kernel.org/lkml/8 lkml/git/8.git
	git clone --mirror https://lore.kernel.org/lkml/9 lkml/git/9.git
	git clone --mirror https://lore.kernel.org/lkml/10 lkml/git/10.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ https://lore.kernel.org/lkml \
		linux-kernel@vger.kernel.org
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git