From: Justinien Bouron <jbouron@amazon.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: <kexec@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
<llvm@lists.linux.dev>, Andrew Morton <akpm@linux-foundation.org>,
Baoquan He <bhe@redhat.com>,
Nathan Chancellor <nathan@kernel.org>,
Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
Bill Wendling <morbo@google.com>,
"Justin Stitt" <justinstitt@google.com>
Subject: Re: [resend, PATCH v2 1/1] kexec: Remove unused code in kimage_load_cma_segment()
Date: Fri, 24 Oct 2025 08:52:17 -0700 [thread overview]
Message-ID: <aPugsWImYm0Vj7Dk@80a9970eed1e> (raw)
In-Reply-To: <aPt5CYz5Cc-7St6L@black.igk.intel.com>
On Fri, Oct 24, 2025 at 03:03:05PM +0200, Andy Shevchenko wrote:
> On Mon, Oct 13, 2025 at 11:48:24PM +0300, Andy Shevchenko wrote:
> > On Tue, Sep 23, 2025 at 10:50:55AM -0700, Justinien Bouron wrote:
> > > On Tue, Sep 16, 2025 at 02:51:09PM +0200, Andy Shevchenko wrote:
> > > > clang is not happy about set but unused variable:
> > > >
> > > > kernel/kexec_core.c:745:16: error: variable 'maddr' set but not used [-Werror,-Wunused-but-set-variable]
> > > > 745 | unsigned long maddr;
> > > > | ^
> > > > 1 error generated.
> > > >
> > > > Fix the compilation breakage (`make W=1` build) by removing unused variable.
> > > >
> > > > As Nathan noted, GCC 16 produces the similar warning;
> > > >
> > > > Fixes: f4fecb50d6e1 ("kexec_core: remove superfluous page offset handling in segment loading")
> > > FYI the commit this patch is fixing (i.e. f4fecb50d6e1) is going to need a
> > > second revision as well (I haven't submitted it yet, still working on it), this
> > > means that your "Fixes:" tag will need to be changed again, requiring a 3rd
> > > revision.
> > >
> > > I am not sure what is the proper way forward here. Should I:
> > > - Send my v2, without fixing the unused variable and then you send your v3
> > > with the updated "Fixes:" tag pointing to my v2.
> > > - OR fixing the unused variable in my v2 (i.e. "absorb" this patch in my
> > > v2).
> >
> > Second is the best (integrate this fix into yours v2).
> >
> > > In the latter case, I am not sure how I am supposed to credit the work in this
> > > case? Do I need to add another "Signed-off-by: Andy Shevchenko" besides mine?
> >
> > Just in the comment block (after the cutter '---' line and before the diff) in
> > a free words. No need for any special tags for this in such a case.
> >
> > > I'm still learning the ropes on how to contribute through the mailing list so I
> > > would be grateful if you could share your input on what's the proper way forward
> > > here.
>
> Any news, folks, please? The bug is still in Linux Next and prevents me from
> building my stuff cleanly.
V3 is up: https://lore.kernel.org/lkml/20251024155009.39502-1-jbouron@amazon.com/
Best,
Justinien Bouron
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
next prev parent reply other threads:[~2025-10-24 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 12:51 [resend, PATCH v2 1/1] kexec: Remove unused code in kimage_load_cma_segment() Andy Shevchenko
2025-09-23 17:50 ` Justinien Bouron
2025-10-13 20:48 ` Andy Shevchenko
2025-10-24 13:03 ` Andy Shevchenko
2025-10-24 15:39 ` Justinien Bouron
2025-10-24 15:52 ` Justinien Bouron [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-18 19:44 Andy Shevchenko
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=aPugsWImYm0Vj7Dk@80a9970eed1e \
--to=jbouron@amazon.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bhe@redhat.com \
--cc=justinstitt@google.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=nick.desaulniers+lkml@gmail.com \
/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.