From: Jonathan Cameron <jic23@kernel.org>
To: Joshua Crofts <joshua.crofts1@gmail.com>
Cc: Jinseob Kim <kimjinseob88@gmail.com>,
linux-iio@vger.kernel.org, dlechner@baylibre.com,
nuno.sa@analog.com, andy@kernel.org,
linux-kernel@vger.kernel.org, lkp@intel.com,
oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev
Subject: Re: [PATCH] iio: osf: avoid a large stack frame in osf_core_init
Date: Sat, 24 Oct 2026 03:39:23 +0100 [thread overview]
Message-ID: <20261024033923.5a32dcbf@jic23-hlaptop> (raw)
In-Reply-To: <20261020095039.00004c88@gmail.com>
On Tue, 20 Oct 2026 09:50:39 +0200
Joshua Crofts <joshua.crofts1@gmail.com> wrote:
> On Mon, 19 Oct 2026 18:58:49 +0900
> Jinseob Kim <kimjinseob88@gmail.com> wrote:
>
> > Clang reports a 1344-byte stack frame in osf_core_init() for
> > hexagon-allmodconfig, exceeding CONFIG_FRAME_WARN=1280.
> >
> > The aggregate assignment materializes a temporary struct osf_device on
> > the stack and copies it to the destination. With the mutex and caches
> > added by the IIO support, this structure is 1328 bytes in the reported
> > configuration.
> >
> > Clear the destination directly, then set dev and initialize latest_lock
> > as before. This preserves zero initialization of all other fields,
> > including when the core is reinitialized for a new session, without the
> > large temporary object.
> >
> > With the reported Clang 24.0.0git compiler and Hexagon configuration, the
> > frame decreases from 1344 to 8 bytes and the warning disappears.
> >
> > Fixes: 7329986669f2 ("iio: osf: add IIO devices from capability reports")
> > Reported-by: kernel test robot <lkp@intel.com>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202610191514.fRYyu0HX-lkp@intel.com/
> > Assisted-by: LLM
Dropped this lot because it all gets messy with an unstable commit.
I made the Closes into a Link to retain the info.
Applied to the testing branch of iio.git
Thanks,
Jonathan
> > Signed-off-by: Jinseob Kim <kimjinseob88@gmail.com>
> > ---
>
> Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
>
prev parent reply other threads:[~2026-10-24 2:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202610191514.fRYyu0HX-lkp@intel.com>
2026-10-19 9:58 ` Jinseob Kim
2026-10-20 7:50 ` Joshua Crofts
2026-10-24 2:39 ` Jonathan Cameron [this message]
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=20261024033923.5a32dcbf@jic23-hlaptop \
--to=jic23@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=joshua.crofts1@gmail.com \
--cc=kimjinseob88@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=nuno.sa@analog.com \
--cc=oe-kbuild-all@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®