From: kernel test robot <lkp@intel.com>
To: Longlong Xia <xialonglong2025@163.com>,
linmiaohe@huawei.com, david@redhat.com, lance.yang@linux.dev
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
markus.elfring@web.de, nao.horiguchi@gmail.com,
akpm@linux-foundation.org, wangkefeng.wang@huawei.com,
qiuxu.zhuo@intel.com, xu.xin16@zte.com.cn,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Longlong Xia <xialonglong@kylinos.cn>
Subject: Re: [PATCH v2 1/1] mm/ksm: recover from memory failure on KSM page by migrating to healthy duplicate
Date: Fri, 17 Oct 2025 11:09:27 +0800 [thread overview]
Message-ID: <202510171017.wBXHozQb-lkp@intel.com> (raw)
In-Reply-To: <20251016101813.484565-2-xialonglong2025@163.com>
Hi Longlong,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master v6.18-rc1 next-20251016]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Longlong-Xia/mm-ksm-recover-from-memory-failure-on-KSM-page-by-migrating-to-healthy-duplicate/20251016-182115
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20251016101813.484565-2-xialonglong2025%40163.com
patch subject: [PATCH v2 1/1] mm/ksm: recover from memory failure on KSM page by migrating to healthy duplicate
config: x86_64-buildonly-randconfig-003-20251017 (https://download.01.org/0day-ci/archive/20251017/202510171017.wBXHozQb-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251017/202510171017.wBXHozQb-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/202510171017.wBXHozQb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/ksm.c:3160:6: warning: variable 'nid' set but not used [-Wunused-but-set-variable]
3160 | int nid;
| ^
1 warning generated.
vim +/nid +3160 mm/ksm.c
3155
3156 static struct page *create_new_stable_node_dup(struct ksm_stable_node *chain_head,
3157 struct folio *healthy_folio,
3158 struct ksm_stable_node **new_stable_node)
3159 {
> 3160 int nid;
3161 unsigned long kpfn;
3162 struct page *new_page = NULL;
3163
3164 if (!is_stable_node_chain(chain_head))
3165 return NULL;
3166
3167 new_page = alloc_page(GFP_HIGHUSER_MOVABLE | __GFP_ZERO);
3168 if (!new_page)
3169 return NULL;
3170
3171 copy_highpage(new_page, folio_page(healthy_folio, 0));
3172
3173 *new_stable_node = alloc_stable_node();
3174 if (!*new_stable_node) {
3175 __free_page(new_page);
3176 return NULL;
3177 }
3178
3179 INIT_HLIST_HEAD(&(*new_stable_node)->hlist);
3180 kpfn = page_to_pfn(new_page);
3181 (*new_stable_node)->kpfn = kpfn;
3182 nid = get_kpfn_nid(kpfn);
3183 DO_NUMA((*new_stable_node)->nid = nid);
3184 (*new_stable_node)->rmap_hlist_len = 0;
3185
3186 (*new_stable_node)->head = STABLE_NODE_DUP_HEAD;
3187 hlist_add_head(&(*new_stable_node)->hlist_dup, &chain_head->hlist);
3188 ksm_stable_node_dups++;
3189 folio_set_stable_node(page_folio(new_page), *new_stable_node);
3190 folio_add_lru(page_folio(new_page));
3191
3192 return new_page;
3193 }
3194
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-10-17 3:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-16 10:18 [PATCH v2 0/1] mm/ksm: recover from memory failure on KSM page by migrating to healthy duplicate Longlong Xia
2025-10-16 10:18 ` [PATCH v2 1/1] " Longlong Xia
2025-10-16 14:37 ` [PATCH v2] " Markus Elfring
2025-10-17 3:09 ` kernel test robot [this message]
2025-10-23 11:54 ` [PATCH v2 1/1] " Miaohe Lin
2025-10-28 7:54 ` Long long Xia
2025-10-29 6:40 ` Miaohe Lin
2025-10-29 7:12 ` Long long Xia
2025-10-30 2:56 ` Miaohe Lin
2025-10-28 9:44 ` David Hildenbrand
2025-11-03 15:15 ` [PATCH v3 0/2] mm/ksm: try " Longlong Xia
2025-11-03 15:16 ` [PATCH v3 1/2] mm/ksm: add helper to allocate and initialize stable node duplicates Longlong Xia
2025-11-03 15:16 ` [PATCH v3 2/2] mm/ksm: try recover from memory failure on KSM page by migrating to healthy duplicate Longlong Xia
2025-10-16 10:46 ` [PATCH v2 0/1] mm/ksm: " David Hildenbrand
2025-10-21 14:00 ` Long long Xia
2025-10-23 16:16 ` David Hildenbrand
2025-10-16 11:01 ` Markus Elfring
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=202510171017.wBXHozQb-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=lance.yang@linux.dev \
--cc=linmiaohe@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=markus.elfring@web.de \
--cc=nao.horiguchi@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=qiuxu.zhuo@intel.com \
--cc=wangkefeng.wang@huawei.com \
--cc=xialonglong2025@163.com \
--cc=xialonglong@kylinos.cn \
--cc=xu.xin16@zte.com.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox