From: kernel test robot <lkp@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2 6/6] super: add filesystem freezing helpers for suspend and hibernate
Date: Sat, 29 Mar 2025 19:30:52 +0800 [thread overview]
Message-ID: <202503291904.PAJxnbuR-lkp@intel.com> (raw)
In-Reply-To: <20250329-work-freeze-v2-6-a47af37ecc3d@kernel.org>
Hi Christian,
kernel test robot noticed the following build warnings:
[auto build test WARNING on acb4f33713b9f6cadb6143f211714c343465411c]
url: https://github.com/intel-lab-lkp/linux/commits/Christian-Brauner/super-remove-pointless-s_root-checks/20250329-164716
base: acb4f33713b9f6cadb6143f211714c343465411c
patch link: https://lore.kernel.org/r/20250329-work-freeze-v2-6-a47af37ecc3d%40kernel.org
patch subject: [PATCH v2 6/6] super: add filesystem freezing helpers for suspend and hibernate
config: hexagon-randconfig-002-20250329 (https://download.01.org/0day-ci/archive/20250329/202503291904.PAJxnbuR-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250329/202503291904.PAJxnbuR-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503291904.PAJxnbuR-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> fs/super.c:1183:6: warning: variable 'active' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
1183 | if (super_lock_excl(sb)) {
| ^~~~~~~~~~~~~~~~~~~
fs/super.c:1187:9: note: uninitialized use occurs here
1187 | return active;
| ^~~~~~
fs/super.c:1183:2: note: remove the 'if' if its condition is always true
1183 | if (super_lock_excl(sb)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/super.c:1181:13: note: initialize the variable 'active' to silence this warning
1181 | bool active;
| ^
| = 0
1 warning generated.
vim +1183 fs/super.c
1178
1179 static inline bool get_active_super(struct super_block *sb)
1180 {
1181 bool active;
1182
> 1183 if (super_lock_excl(sb)) {
1184 active = atomic_inc_not_zero(&sb->s_active);
1185 super_unlock_excl(sb);
1186 }
1187 return active;
1188 }
1189
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2025-03-29 11:31 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20250329-work-freeze-v2-6-a47af37ecc3d@kernel.org>]
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=202503291904.PAJxnbuR-lkp@intel.com \
--to=lkp@intel.com \
--cc=brauner@kernel.org \
--cc=llvm@lists.linux.dev \
--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