From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Ze Zuo <zuoze1@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2257/2257] mm/mempolicy.c:1115:32: warning: variable 'vma' set but not used
Date: Tue, 20 May 2025 18:45:33 +0800 [thread overview]
Message-ID: <202505201856.VGaOEUgd-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: e69c6375f883badcc9ec4c9e9ed85660ac3fb1bf
commit: dba69db9a5fc7c2c9c0cda0f32bb3b5f3d73ef93 [2257/2257] mm/damon/vaddr: Add demotion interface for migrating cold pages to target nodemask
config: x86_64-buildonly-randconfig-002-20250520 (https://download.01.org/0day-ci/archive/20250520/202505201856.VGaOEUgd-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505201856.VGaOEUgd-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/202505201856.VGaOEUgd-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/mempolicy.c: In function 'migrate_area_to_node':
>> mm/mempolicy.c:1115:32: warning: variable 'vma' set but not used [-Wunused-but-set-variable]
1115 | struct vm_area_struct *vma;
| ^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PTP_1588_CLOCK
Depends on [n]: NET [=y] && POSIX_TIMERS [=n]
Selected by [y]:
- SXE [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y]
- SXE_VF [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y]
vim +/vma +1115 mm/mempolicy.c
1106
1107 /*
1108 * Migrate area pages from one node to a target node.
1109 * Returns error or the number of pages not migrated.
1110 */
1111 static int migrate_area_to_node(struct mm_struct *mm, int source, int dest,
1112 unsigned long start, unsigned long end, int flags)
1113 {
1114 nodemask_t nmask;
> 1115 struct vm_area_struct *vma;
1116 LIST_HEAD(pagelist);
1117 int err = 0;
1118 struct migration_target_control mtc = {
1119 .nid = dest,
1120 .gfp_mask = GFP_HIGHUSER_MOVABLE | __GFP_THISNODE,
1121 };
1122
1123 nodes_clear(nmask);
1124 node_set(source, nmask);
1125
1126 /*
1127 * This does not "check" the range but isolates all pages that
1128 * need migration. Between passing in the full user address
1129 * space range and MPOL_MF_DISCONTIG_OK, this call can not fail.
1130 */
1131 vma = find_vma(mm, 0);
1132 VM_BUG_ON(!(flags & (MPOL_MF_MOVE | MPOL_MF_MOVE_ALL)));
1133 queue_pages_range(mm, start, end, &nmask,
1134 flags | MPOL_MF_DISCONTIG_OK, &pagelist, false);
1135
1136 if (!list_empty(&pagelist)) {
1137 err = migrate_pages(&pagelist, alloc_migration_target, NULL,
1138 (unsigned long)&mtc, MIGRATE_SYNC, MR_DAMON_DEMOTION, NULL);
1139 if (err)
1140 putback_movable_pages(&pagelist);
1141 }
1142
1143 return err;
1144 }
1145
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-20 10:46 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=202505201856.VGaOEUgd-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zuoze1@huawei.com \
/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.