From: kernel test robot <lkp@intel.com>
To: Miaohe Lin <linmiaohe@huawei.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH] mm: memory-failure: add missing set_mce_nospec() for memory_failure()
Date: Wed, 5 Jul 2023 00:13:17 +0800 [thread overview]
Message-ID: <202307050036.KEckskkD-lkp@intel.com> (raw)
In-Reply-To: <20230704121948.1331846-1-linmiaohe@huawei.com>
Hi Miaohe,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Miaohe-Lin/mm-memory-failure-add-missing-set_mce_nospec-for-memory_failure/20230704-202035
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20230704121948.1331846-1-linmiaohe%40huawei.com
patch subject: [RFC PATCH] mm: memory-failure: add missing set_mce_nospec() for memory_failure()
config: arm64-randconfig-r003-20230704 (https://download.01.org/0day-ci/archive/20230705/202307050036.KEckskkD-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230705/202307050036.KEckskkD-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/202307050036.KEckskkD-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/memory-failure.c:2406:9: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses]
2406 | if (!entry.flags & MF_SW_SIMULATED)
| ^ ~
mm/memory-failure.c:2406:9: note: add parentheses after the '!' to evaluate the bitwise operator first
2406 | if (!entry.flags & MF_SW_SIMULATED)
| ^
| ( )
mm/memory-failure.c:2406:9: note: add parentheses around left hand side expression to silence this warning
2406 | if (!entry.flags & MF_SW_SIMULATED)
| ^
| ( )
1 warning generated.
vim +2406 mm/memory-failure.c
2387
2388 static void memory_failure_work_func(struct work_struct *work)
2389 {
2390 struct memory_failure_cpu *mf_cpu;
2391 struct memory_failure_entry entry = { 0, };
2392 unsigned long proc_flags;
2393 int gotten;
2394
2395 mf_cpu = container_of(work, struct memory_failure_cpu, work);
2396 for (;;) {
2397 spin_lock_irqsave(&mf_cpu->lock, proc_flags);
2398 gotten = kfifo_get(&mf_cpu->fifo, &entry);
2399 spin_unlock_irqrestore(&mf_cpu->lock, proc_flags);
2400 if (!gotten)
2401 break;
2402 if (entry.flags & MF_SOFT_OFFLINE)
2403 soft_offline_page(entry.pfn, entry.flags);
2404 else
2405 if (!memory_failure(entry.pfn, entry.flags))
> 2406 if (!entry.flags & MF_SW_SIMULATED)
2407 set_mce_nospec(entry.pfn);
2408 }
2409 }
2410
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-07-04 16:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-04 12:19 [RFC PATCH] mm: memory-failure: add missing set_mce_nospec() for memory_failure() Miaohe Lin
2023-07-04 16:13 ` kernel test robot [this message]
2023-07-04 16:23 ` kernel test robot
2023-07-05 1:53 ` Miaohe Lin
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=202307050036.KEckskkD-lkp@intel.com \
--to=lkp@intel.com \
--cc=linmiaohe@huawei.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 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.