mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Sascha Hauer" <s.hauer@pengutronix.de>
To: "Ahmad Fatoum" <a.fatoum@barebox.org>
Cc: "Ahmad Fatoum" <a.fatoum@pengutronix.de>, barebox@lists.infradead.org
Subject: Re: [PATCH] fs: fat: fix build of the fuzz test without FS_FAT_LFN
Date: Tue, 24 Nov 2026 07:26:06 +0000	[thread overview]
Message-ID: <69652d70-0caa-45af-a222-067aff689e27@pengutronix.de> (raw)
In-Reply-To: <c518cc05-24d0-4bff-969b-9caad22c3060@barebox.org>

On 2026-11-24 08:05, Ahmad Fatoum wrote:
> On 11/19/26 09:40, Ahmad Fatoum wrote:
> > From: Ahmad Fatoum <a.fatoum@barebox.org>
> > 
> > The lfname and lfsize members of FILINFO only exist with long file name
> > support, so guarding their use with IS_ENABLED() isn't enough and the
> > build fails with CONFIG_FS_FAT_LFN disabled.
> > 
> > Declare the buffer and assign the members in a single #ifdef block, and
> > zero-initialize the FILINFO per directory entry rather than memset() it.
> > 
> > Fixes: f585092b1737 ("fs: fat: add fuzz test for FAT filesystem")
> > Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
> 
> Sascha's file system conformance series fixes the same issue with the difference
> that this patch here gets away with a single #ifdef instead of two.
> 
> Both are fine by me, but I thought this to be a bit less of an eye sore.

Indeed. I added a follow up updating to your version.

Sascha

--
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




      reply	other threads:[~2026-11-24  7:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  8:40 Ahmad Fatoum
2026-11-24  7:04 ` Sascha Hauer
2026-11-24  7:05 ` Ahmad Fatoum
2026-11-24  7:26   ` Sascha Hauer [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=69652d70-0caa-45af-a222-067aff689e27@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@barebox.org \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox