All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-6.6 3064/3064] mm/page_alloc.c:4552 prepare_before_alloc() warn: bitwise AND condition is false here
@ 2025-10-29 19:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-29 19:14 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-29 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29 19:14 [openeuler:OLK-6.6 3064/3064] mm/page_alloc.c:4552 prepare_before_alloc() warn: bitwise AND condition is false here kernel test robot

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.