All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Cc: linux-trace-kernel@vger.kernel.org, linux-modules@vger.kernel.org
Subject: Re: [PATCH v2 1/2] module: pull out add_taint_module() to be public
Date: Mon, 31 Aug 2026 10:57:30 +0000	[thread overview]
Message-ID: <20260831105731.CB3881F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260831-bind_taint-v2-1-1082d631213b@linuxfoundation.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Syntax error in the !CONFIG_MODULES fallback definition of add_taint_module().
--

commit e590786e5c6c86656ecff2a254d3a27b11cc2eb2
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

module: pull out add_taint_module() to be public

This commit makes add_taint_module() global so that other kernel code can 
call it. When loadable modules are disabled, it defaults to a direct call 
to add_taint().

> diff --git a/include/linux/module.h b/include/linux/module.h
> --- a/include/linux/module.h
> +++ b/include/linux/module.h

[ ... ]

> @@ -877,6 +881,12 @@ static inline bool module_is_coming(struct module *mod)
>  static inline void module_for_each_mod(int(*func)(struct module *mod, void *data), void *data)
>  {
>  }
> +
> +static inline void add_taint_module(struct module *mod, unsigned flag,
> +				    enum lockdep_ok, lockdep_ok)

[Severity: Low]
Does this introduce a syntax error for !CONFIG_MODULES builds?

It appears there is a comma instead of a space between the type and the 
variable name in the parameter list (enum lockdep_ok, lockdep_ok). This 
will cause a build failure when configuring the kernel with CONFIG_MODULES=n.

> +{
> +	add_taint(flag, lockdep_ok);
> +}
>  #endif /* CONFIG_MODULES */

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260831-bind_taint-v2-0-1082d631213b@linuxfoundation.org?part=1

  reply	other threads:[~2026-08-31 10:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 10:51 [PATCH v2 0/2] driver core: add TAINT_FORCED_BIND for when userspace manually messes with devices and drivers Greg Kroah-Hartman
2026-08-31 10:51 ` [PATCH v2 1/2] module: pull out add_taint_module() to be public Greg Kroah-Hartman
2026-08-31 10:57   ` sashiko-bot [this message]
2026-08-31 11:07   ` Greg Kroah-Hartman
2026-08-31 11:14     ` Bradley Morgan
2026-08-31 11:28       ` Greg Kroah-Hartman
2026-08-31 11:38         ` Bradley Morgan
2026-08-31 10:51 ` [PATCH v2 2/2] driver core: add TAINT_FORCED_BIND for when userspace manually messes with devices and drivers Greg Kroah-Hartman
2026-08-31 11:07   ` sashiko-bot
2026-08-31 11:47   ` Aaron Tomlin
2026-08-31 11:57 ` [PATCH v2 0/2] " Bradley Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260831105731.CB3881F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.