From: "David Hildenbrand (Arm)" <david@kernel.org>
To: "A. Sverdlin" <alexander.sverdlin@siemens.com>, linux-mm@kvack.org
Cc: "Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Mike Rapoport <rppt@kernel.org>, Michal Hocko <mhocko@suse.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] mm/mmu_notifier: convert !CONFIG_MMU_NOTIFIER range_init stubs to inline
Date: Wed, 2 Dec 2026 13:43:13 +0100 [thread overview]
Message-ID: <0e2371df-698f-4086-8f02-ffaaa339899e@kernel.org> (raw)
In-Reply-To: <20261202121602.3159289-1-alexander.sverdlin@siemens.com>
On 12/2/26 13:15, A. Sverdlin wrote:
> From: Alexander Sverdlin <alexander.sverdlin@siemens.com>
>
> Without CONFIG_MMU_NOTIFIER, mmu_notifier_range_init() and
> mmu_notifier_range_init_owner() are macros which discard all arguments
> except range, start and end. A local variable which is only passed to
> them is therefore reported as unused, but only in !CONFIG_MMU_NOTIFIER
> builds.
>
> Callers must not care whether these are macros. Turn them into static
> inline functions with the same prototypes as in the CONFIG_MMU_NOTIFIER=y
> case, so that all arguments are consumed and type-checked. No change in
> generated code.
>
> Cc: stable@vger.kernel.org # 6.1.x
Stable without Fixes? Is this a 6.1.x-only fix?
We usually indicate that in the [PATCH] tag and describe it properly in the
patch description.
--
Cheers,
David
next prev parent reply other threads:[~2026-12-02 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 12:15 [PATCH] mm/mmu_notifier: convert !CONFIG_MMU_NOTIFIER range_init stubs to inline A. Sverdlin
2026-12-02 12:43 ` David Hildenbrand (Arm) [this message]
2026-12-02 13:10 ` Sverdlin, Alexander
2026-12-02 13:22 ` David Hildenbrand (Arm)
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=0e2371df-698f-4086-8f02-ffaaa339899e@kernel.org \
--to=david@kernel.org \
--cc=alexander.sverdlin@siemens.com \
--cc=liam@infradead.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=stable@vger.kernel.org \
--cc=vbabka@kernel.org \
/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.