Re: [PATCH v1 1/1] fs/ntfs3: Fix compilation error
From: Andy Shevchenko
Date: Wed Apr 24 2024 - 10:48:59 EST
On Tue, Apr 23, 2024 at 11:56:34PM +0300, Andy Shevchenko wrote:
> Compilation with CONFIG_WERROR=y, which is default, is broken:
>
> fs/ntfs3/super.c:1247:26: error: variable 'attr' is uninitialized when used here [-Werror,-Wuninitialized]
>
> attr = ni_find_attr(ni, attr, NULL, ATTR_VOL_INFO, NULL, 0, NULL, NULL);
> ^~~~
> Pass NULL instead.
Hmm... Something weird is going on. I'm looking now into the code and
have no clue why compiler is not okay with this code. The proposed patch
seems incorrect anyway.
--
With Best Regards,
Andy Shevchenko