[PATCH v3 1/3] umh, treewide: Explicitly include linux/umh.h where needed
Alex Elder
elder at ieee.org
Tue Sep 22 12:39:47 UTC 2026
On 9/11/26 9:46 AM, Petr Pavlu wrote:
> The usermode helper declarations were previously provided by linux/kmod.h
> but commit c1f3fa2a4fde ("kmod: split off umh headers into its own file")
> moved them to linux/umh.h in 2017.
>
> Add explicit includes of linux/umh.h to files that use usermode helpers and
> remove linux/kmod.h where it is no longer needed.
>
> Signed-off-by: Petr Pavlu <petr.pavlu at suse.com>
> ---
> arch/x86/kernel/cpu/mce/dev-mcelog.c | 2 +-
> drivers/block/drbd/drbd_nl.c | 1 +
> drivers/greybus/svc_watchdog.c | 1 +
For Greybus:
Acked-by: Alex Elder <elder at riscstar.com>
> drivers/macintosh/windfarm_core.c | 1 +
> drivers/pnp/pnpbios/core.c | 2 +-
> drivers/video/fbdev/uvesafb.c | 1 +
> fs/coredump.c | 2 +-
> fs/nfs/cache_lib.c | 2 +-
> fs/nfsd/nfs4layouts.c | 2 +-
> fs/nfsd/nfs4recover.c | 1 +
> fs/ocfs2/stackglue.c | 1 +
> kernel/cgroup/cgroup-v1.c | 2 +-
> kernel/module/kmod.c | 1 +
> kernel/power/process.c | 2 +-
> kernel/reboot.c | 2 +-
> kernel/umh.c | 2 +-
> lib/kobject_uevent.c | 2 +-
> net/bridge/br_stp_if.c | 2 +-
> security/keys/request_key.c | 2 +-
> security/tomoyo/common.h | 2 +-
> 20 files changed, 20 insertions(+), 13 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/mce/dev-mcelog.c b/arch/x86/kernel/cpu/mce/dev-mcelog.c
> index 053555206d81..af4e76babe7a 100644
> --- a/arch/x86/kernel/cpu/mce/dev-mcelog.c
> +++ b/arch/x86/kernel/cpu/mce/dev-mcelog.c
> @@ -11,7 +11,7 @@
>
> #include <linux/miscdevice.h>
> #include <linux/slab.h>
> -#include <linux/kmod.h>
> +#include <linux/umh.h>
> #include <linux/poll.h>
>
> #include "internal.h"
> diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
> index b77f901fc3ef..6f5d059394b3 100644
> --- a/drivers/block/drbd/drbd_nl.c
> +++ b/drivers/block/drbd/drbd_nl.c
> @@ -14,6 +14,7 @@
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> #include <linux/module.h>
> +#include <linux/umh.h>
> #include <linux/drbd.h>
> #include <linux/in.h>
> #include <linux/fs.h>
> diff --git a/drivers/greybus/svc_watchdog.c b/drivers/greybus/svc_watchdog.c
> index 16e6de5e9eff..b318eb34bcca 100644
> --- a/drivers/greybus/svc_watchdog.c
> +++ b/drivers/greybus/svc_watchdog.c
> @@ -7,6 +7,7 @@
>
> #include <linux/delay.h>
> #include <linux/suspend.h>
> +#include <linux/umh.h>
> #include <linux/workqueue.h>
> #include <linux/greybus.h>
>
. . .
More information about the Linux-security-module-archive
mailing list