From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [peterz-queue:sched/wip.umcg 6/6] include/linux/entry-common.h:245 irqentry_irq_disable() warn: bitwise AND condition is false here
Date: Sat, 22 Jan 2022 07:58:51 +0800 [thread overview]
Message-ID: <202201220722.NKB2tIJb-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3375 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Peter Zijlstra <peterz@infradead.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip.umcg
head: 90712a68ed7dfc7f7f099167c58f0f45c1b81da8
commit: 90712a68ed7dfc7f7f099167c58f0f45c1b81da8 [6/6] sched: User Mode Concurency Groups
:::::: branch date: 32 hours ago
:::::: commit date: 32 hours ago
config: x86_64-randconfig-m001-20220117 (https://download.01.org/0day-ci/archive/20220122/202201220722.NKB2tIJb-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
include/linux/entry-common.h:245 irqentry_irq_disable() warn: bitwise AND condition is false here
include/linux/entry-common.h:232 irqentry_irq_enable() warn: bitwise AND condition is false here
vim +245 include/linux/entry-common.h
a9f3a74a29af09 Thomas Gleixner 2020-07-22 221
f695568dc39e5b Peter Zijlstra 2022-01-20 222 /**
f695568dc39e5b Peter Zijlstra 2022-01-20 223 * irqentry_irq_enable - Conditionally enable IRQs from exceptions
f695568dc39e5b Peter Zijlstra 2022-01-20 224 *
f695568dc39e5b Peter Zijlstra 2022-01-20 225 * Common code for exceptions to (re)enable IRQs, typically done to allow
f695568dc39e5b Peter Zijlstra 2022-01-20 226 * from-user exceptions to schedule (since they run on the task stack).
f695568dc39e5b Peter Zijlstra 2022-01-20 227 */
f695568dc39e5b Peter Zijlstra 2022-01-20 228 static inline void irqentry_irq_enable(struct pt_regs *regs)
f695568dc39e5b Peter Zijlstra 2022-01-20 229 {
90712a68ed7dfc Peter Zijlstra 2021-12-14 230 if (!regs_irqs_disabled(regs)) {
f695568dc39e5b Peter Zijlstra 2022-01-20 231 local_irq_enable();
90712a68ed7dfc Peter Zijlstra 2021-12-14 @232 if (user_mode(regs) && (current->flags & PF_UMCG_WORKER))
90712a68ed7dfc Peter Zijlstra 2021-12-14 233 umcg_sys_enter(regs, -1);
90712a68ed7dfc Peter Zijlstra 2021-12-14 234 }
f695568dc39e5b Peter Zijlstra 2022-01-20 235 }
f695568dc39e5b Peter Zijlstra 2022-01-20 236
f695568dc39e5b Peter Zijlstra 2022-01-20 237 /**
f695568dc39e5b Peter Zijlstra 2022-01-20 238 * irqentry_irq_disable - Conditionally disable IRQs from exceptions
f695568dc39e5b Peter Zijlstra 2022-01-20 239 *
f695568dc39e5b Peter Zijlstra 2022-01-20 240 * Counterpart of irqentry_irq_enable().
f695568dc39e5b Peter Zijlstra 2022-01-20 241 */
f695568dc39e5b Peter Zijlstra 2022-01-20 242 static inline void irqentry_irq_disable(struct pt_regs *regs)
f695568dc39e5b Peter Zijlstra 2022-01-20 243 {
90712a68ed7dfc Peter Zijlstra 2021-12-14 244 if (!regs_irqs_disabled(regs)) {
90712a68ed7dfc Peter Zijlstra 2021-12-14 @245 if (user_mode(regs) && (current->flags & PF_UMCG_WORKER))
90712a68ed7dfc Peter Zijlstra 2021-12-14 246 umcg_sys_exit(regs);
f695568dc39e5b Peter Zijlstra 2022-01-20 247 local_irq_disable();
f695568dc39e5b Peter Zijlstra 2022-01-20 248 }
90712a68ed7dfc Peter Zijlstra 2021-12-14 249 }
f695568dc39e5b Peter Zijlstra 2022-01-20 250
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
reply other threads:[~2022-01-21 23:58 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=202201220722.NKB2tIJb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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.