From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [openeuler:OLK-6.6 3064/3064] mm/page_alloc.c:4552 prepare_before_alloc() warn: bitwise AND condition is false here
Date: Thu, 30 Oct 2025 03:14:13 +0800 [thread overview]
Message-ID: <202510300352.TkdUanUX-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: kernel@openeuler.org
TO: Wupeng Ma <mawupeng1@huawei.com>
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 2f6a2b7160d59b59ef2bd08614200d0a2219b54e
commit: 7829f27d03dbdb975be3a72915dc71ac414f2a16 [3064/3064] mm: mem_reliable: Alloc task memory from reliable region
:::::: branch date: 11 hours ago
:::::: commit date: 1 year, 10 months ago
config: arm64-randconfig-r073-20251029 (https://download.01.org/0day-ci/archive/20251030/202510300352.TkdUanUX-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202510300352.TkdUanUX-lkp@intel.com/
smatch warnings:
mm/page_alloc.c:4552 prepare_before_alloc() warn: bitwise AND condition is false here
vim +4552 mm/page_alloc.c
387ba26fb1cb9b Mel Gorman 2021-04-29 4532
7829f27d03dbdb Ma Wupeng 2024-01-10 4533 static inline void prepare_before_alloc(gfp_t *gfp_mask)
7829f27d03dbdb Ma Wupeng 2024-01-10 4534 {
7829f27d03dbdb Ma Wupeng 2024-01-10 4535 bool zone_movable;
7829f27d03dbdb Ma Wupeng 2024-01-10 4536
7829f27d03dbdb Ma Wupeng 2024-01-10 4537 if (!mem_reliable_is_enabled())
7829f27d03dbdb Ma Wupeng 2024-01-10 4538 return;
7829f27d03dbdb Ma Wupeng 2024-01-10 4539
7829f27d03dbdb Ma Wupeng 2024-01-10 4540 /*
7829f27d03dbdb Ma Wupeng 2024-01-10 4541 * memory reliable only handle memory allocation from movable zone
7829f27d03dbdb Ma Wupeng 2024-01-10 4542 * (force alloc from non-movable zone or force alloc from movable
7829f27d03dbdb Ma Wupeng 2024-01-10 4543 * zone) to get total isolation.
7829f27d03dbdb Ma Wupeng 2024-01-10 4544 */
7829f27d03dbdb Ma Wupeng 2024-01-10 4545 zone_movable = gfp_zone(*gfp_mask & ~GFP_RELIABLE) == ZONE_MOVABLE;
7829f27d03dbdb Ma Wupeng 2024-01-10 4546 if (!zone_movable)
7829f27d03dbdb Ma Wupeng 2024-01-10 4547 goto clear_flag;
7829f27d03dbdb Ma Wupeng 2024-01-10 4548
7829f27d03dbdb Ma Wupeng 2024-01-10 4549 if (!in_task())
7829f27d03dbdb Ma Wupeng 2024-01-10 4550 return;
7829f27d03dbdb Ma Wupeng 2024-01-10 4551
7829f27d03dbdb Ma Wupeng 2024-01-10 @4552 if ((current->flags & PF_RELIABLE) || is_global_init(current))
7829f27d03dbdb Ma Wupeng 2024-01-10 4553 *gfp_mask |= GFP_RELIABLE;
7829f27d03dbdb Ma Wupeng 2024-01-10 4554
7829f27d03dbdb Ma Wupeng 2024-01-10 4555 return;
7829f27d03dbdb Ma Wupeng 2024-01-10 4556 clear_flag:
7829f27d03dbdb Ma Wupeng 2024-01-10 4557 *gfp_mask &= ~GFP_RELIABLE;
7829f27d03dbdb Ma Wupeng 2024-01-10 4558 }
7829f27d03dbdb Ma Wupeng 2024-01-10 4559
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-10-29 19:14 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=202510300352.TkdUanUX-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.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.