From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: nolibc-test.c:930:24: warning: self-comparison always evaluates to false
Date: Tue, 01 Sep 2026 02:47:23 +0200 [thread overview]
Message-ID: <202609010202.aqdwqM4q-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "only suspicious fbc files changed"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: "Thomas Weißschuh" <linux@weissschuh.net>
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: abdf623ddb75b24659018d3952d8f61937306ae5
commit: 6fe8360b16acbfb50c703f52568cad46759be2ed selftests/nolibc: also test libc-test through regular selftest framework
date: 8 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 8 months ago
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260901/202609010202.aqdwqM4q-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 06bfa42c66dea409a9737f9679260ff51425d5b3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260901/202609010202.aqdwqM4q-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
| Fixes: 6fe8360b16ac ("selftests/nolibc: also test libc-test through regular selftest framework")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202609010202.aqdwqM4q-lkp@intel.com/
All warnings (new ones prefixed by >>):
nolibc-test.c:784:9: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations]
784 | ret = readdir_r(dir, &dirent, &result);
| ^
/usr/lib/gcc/aarch64-linux-gnu/14/../../../../aarch64-linux-gnu/include/dirent.h:188:28: note: 'readdir_r' has been explicitly marked deprecated here
188 | __nonnull ((1, 2, 3)) __attribute_deprecated__;
| ^
/usr/lib/gcc/aarch64-linux-gnu/14/../../../../aarch64-linux-gnu/include/sys/cdefs.h:510:51: note: expanded from macro '__attribute_deprecated__'
510 | # define __attribute_deprecated__ __attribute__ ((__deprecated__))
| ^
>> nolibc-test.c:930:24: warning: self-comparison always evaluates to false [-Wtautological-compare]
930 | if (st.st_atim.tv_sec != st.st_atime || st.st_atim.tv_nsec > 1000000000)
| ^
nolibc-test.c:933:24: warning: self-comparison always evaluates to false [-Wtautological-compare]
933 | if (st.st_mtim.tv_sec != st.st_mtime || st.st_mtim.tv_nsec > 1000000000)
| ^
nolibc-test.c:936:24: warning: self-comparison always evaluates to false [-Wtautological-compare]
936 | if (st.st_ctim.tv_sec != st.st_ctime || st.st_ctim.tv_nsec > 1000000000)
| ^
>> nolibc-test.c:1391:54: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
1391 | CASE_TEST(stat_fault); EXPECT_SYSER(1, stat(NULL, &stat_buf), -1, EFAULT); break;
| ^~~~
/opt/cross/clang-06bfa42c66/lib/clang/24/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
26 | #define NULL ((void*)0)
| ^~~~~~~~~~
nolibc-test.c:369:22: note: expanded from macro 'EXPECT_SYSER'
369 | EXPECT_SYSER2(cond, expr, expret, experr, 0)
| ^~~~
nolibc-test.c:366:70: note: expanded from macro 'EXPECT_SYSER2'
366 | do { if (!(cond)) result(llen, SKIPPED); else ret += expect_syserr2(expr, expret, experr1, experr2, llen); } while (0)
| ^~~~
5 warnings generated.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-01 0:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202609010202.aqdwqM4q-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.