Skip to contentSkip to conversation

linux-next: build failure after merge of the ntfs tree

DISCUSSION Mark Brown 2 participants 2 messages Jul 31 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the ntfs tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/fs/ntfs/attrlist.c:183:6: error: variable 'new_al' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]

  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:317:6: note: uninitialized use occurs here
  317 |         if (new_al)
      |             ^~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:183:2: note: remove the 'if' if its condition is always false
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184 |                 err = -ENOENT;
      |                 ~~~~~~~~~~~~~~
  185 |                 goto err_out;
      |                 ~~~~~~~~~~~~~
  186 |         }
      |         ~
/tmp/next/build/fs/ntfs/attrlist.c:183:6: error: variable 'new_al' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:317:6: note: uninitialized use occurs here
  317 |         if (new_al)
      |             ^~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:183:6: note: remove the '||' if its condition is always false
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:149:12: note: initialize the variable 'new_al' to silence this warning
  149 |         u8 *new_al;
      |                   ^
      |                    = NULL

2 errors generated.

Caused by commit

57ad655524e85 (ntfs: protect attribute-list buffer replacement with attr_list_persist_lock)

I have used the tree from next-20260730 instead.

#1 lore raw
Quoted 2 lines · Mark Brown

Hi all,

Hi Mark,

Quoted 32 lines

After merging the ntfs tree, today's linux-next build (x86_64 allmodconfig) failed like this:

/tmp/next/build/fs/ntfs/attrlist.c:183:6: error: variable 'new_al' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]

  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:317:6: note: uninitialized use occurs here
  317 |         if (new_al)
      |             ^~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:183:2: note: remove the 'if' if its condition is always false
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  184 |                 err = -ENOENT;
      |                 ~~~~~~~~~~~~~~
  185 |                 goto err_out;
      |                 ~~~~~~~~~~~~~
  186 |         }
      |         ~
/tmp/next/build/fs/ntfs/attrlist.c:183:6: error: variable 'new_al' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:317:6: note: uninitialized use occurs here
  317 |         if (new_al)
      |             ^~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:183:6: note: remove the '||' if its condition is always false
  183 |         if (!NInoAttrList(ni) || !ni->attr_list) {
      |             ^~~~~~~~~~~~~~~~~~~~
/tmp/next/build/fs/ntfs/attrlist.c:149:12: note: initialize the variable 'new_al' to silence this warning
  149 |         u8 *new_al;
      |                   ^
      |                    = NULL
Quoted 7 lines

2 errors generated.

Caused by commit

57ad655524e85 (ntfs: protect attribute-list buffer replacement with attr_list_persist_lock)

I have used the tree from next-20260730 instead.

Okay, I will fix them.
Thanks!