From: Nathan Chancellor <nathan@kernel.org>
To: Christian Brauner <brauner@kernel.org>
Cc: Jori Koolstra <jkoolstra@xs4all.nl>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Christian Brauner <christianvanbrauner@gmail.com>,
kernel test robot <lkp@intel.com>
Subject: Re: [brauner-github:vfs-7.2.misc 28/28] fs/smb/client/file.c:3237:23: warning: converting the result of '<<' to a boolean always evaluates to true
Date: Mon, 8 Jun 2026 15:00:04 -0700 [thread overview]
Message-ID: <20260608220004.GB2340474@ax162> (raw)
In-Reply-To: <202606080831.mf22xxxh-lkp@intel.com>
On Mon, Jun 08, 2026 at 08:49:58AM +0800, kernel test robot wrote:
> Hi Jori,
>
> FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
>
> tree: https://github.com/brauner/linux.git vfs-7.2.misc
> head: 0da79c259ad0554b36761a7135d4f92eb7c46263
> commit: 0da79c259ad0554b36761a7135d4f92eb7c46263 [28/28] vfs: uapi: retire octal and hex numbers in favor of (1 << n) for O_ flags
> config: s390-randconfig-002 (https://download.01.org/0day-ci/archive/20260608/202606080831.mf22xxxh-lkp@intel.com/config)
> compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260608/202606080831.mf22xxxh-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/202606080831.mf22xxxh-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> fs/smb/client/file.c:3237:23: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
> 3237 | break_lease(inode, O_WRONLY);
> | ^
> include/uapi/asm-generic/fcntl.h:20:21: note: expanded from macro 'O_WRONLY'
> 20 | #define O_WRONLY (1 << 0)
> | ^
> 1 warning generated.
This should be resolved when
https://lore.kernel.org/20260607-breakleasefix-v1-1-658dce536d15@kernel.org/
is applied.
--
Cheers,
Nathan
prev parent reply other threads:[~2026-06-08 22:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 0:49 [brauner-github:vfs-7.2.misc 28/28] fs/smb/client/file.c:3237:23: warning: converting the result of '<<' to a boolean always evaluates to true kernel test robot
2026-06-08 22:00 ` Nathan Chancellor [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=20260608220004.GB2340474@ax162 \
--to=nathan@kernel.org \
--cc=brauner@kernel.org \
--cc=christianvanbrauner@gmail.com \
--cc=jkoolstra@xs4all.nl \
--cc=lkp@intel.com \
--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