From: Dan Carpenter <dan.carpenter@linaro.org>
To: oe-kbuild@lists.linux.dev,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Mike Kravetz <mike.kravetz@oracle.com>
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Muchun Song <muchun.song@linux.dev>,
linux-mm@kvack.org, Sidhartha Kumar <sidhartha.kumar@oracle.com>
Subject: Re: [PATCH 2/3] hugetlb: Remove a few calls to page_folio()
Date: Fri, 13 Oct 2023 12:06:22 +0300 [thread overview]
Message-ID: <736ebb93-76d4-4096-8b73-657a9698e043@kadam.mountain> (raw)
In-Reply-To: <20230822162808.4131399-2-willy@infradead.org>
Hi Matthew,
kernel test robot noticed the following build warnings:
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/hugetlb-Remove-a-few-calls-to-page_folio/20230823-002932
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20230822162808.4131399-2-willy%40infradead.org
patch subject: [PATCH 2/3] hugetlb: Remove a few calls to page_folio()
config: x86_64-randconfig-161-20230827 (https://download.01.org/0day-ci/archive/20231013/202310131039.ZgssYfIB-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231013/202310131039.ZgssYfIB-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>
| Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202310131039.ZgssYfIB-lkp@intel.com/
smatch warnings:
mm/hugetlb.c:2246 remove_pool_huge_page() error: uninitialized symbol 'folio'.
vim +/folio +2246 mm/hugetlb.c
10c6ec49802b17 Mike Kravetz 2021-05-04 2224 static struct page *remove_pool_huge_page(struct hstate *h,
10c6ec49802b17 Mike Kravetz 2021-05-04 2225 nodemask_t *nodes_allowed,
6ae11b278bca1c Lee Schermerhorn 2009-12-14 2226 bool acct_surplus)
e8c5c8249878fb Lee Schermerhorn 2009-09-21 2227 {
b2261026825ed3 Joonsoo Kim 2013-09-11 2228 int nr_nodes, node;
cfd5082b514765 Sidhartha Kumar 2022-11-29 2229 struct folio *folio;
e8c5c8249878fb Lee Schermerhorn 2009-09-21 2230
9487ca60fd7fa2 Mike Kravetz 2021-05-04 2231 lockdep_assert_held(&hugetlb_lock);
b2261026825ed3 Joonsoo Kim 2013-09-11 2232 for_each_node_mask_to_free(h, nr_nodes, node, nodes_allowed) {
685f345708096e Lee Schermerhorn 2009-09-21 2233 /*
685f345708096e Lee Schermerhorn 2009-09-21 2234 * If we're returning unused surplus pages, only examine
685f345708096e Lee Schermerhorn 2009-09-21 2235 * nodes with surplus pages.
685f345708096e Lee Schermerhorn 2009-09-21 2236 */
b2261026825ed3 Joonsoo Kim 2013-09-11 2237 if ((!acct_surplus || h->surplus_huge_pages_node[node]) &&
b2261026825ed3 Joonsoo Kim 2013-09-11 2238 !list_empty(&h->hugepage_freelists[node])) {
e601ce76a2aabd Matthew Wilcox (Oracle 2023-08-22 2239) folio = list_entry(h->hugepage_freelists[node].next,
e601ce76a2aabd Matthew Wilcox (Oracle 2023-08-22 2240) struct folio, lru);
cfd5082b514765 Sidhartha Kumar 2022-11-29 2241 remove_hugetlb_folio(h, folio, acct_surplus);
9a76db09970938 Lee Schermerhorn 2009-12-14 2242 break;
So we're always guaranteed to hit this break statement?
e8c5c8249878fb Lee Schermerhorn 2009-09-21 2243 }
b2261026825ed3 Joonsoo Kim 2013-09-11 2244 }
e8c5c8249878fb Lee Schermerhorn 2009-09-21 2245
e601ce76a2aabd Matthew Wilcox (Oracle 2023-08-22 @2246) return &folio->page;
e8c5c8249878fb Lee Schermerhorn 2009-09-21 2247 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-10-13 9:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-22 16:28 [PATCH 1/3] hugetlb: Use a folio in free_hpage_workfn() Matthew Wilcox (Oracle)
2023-08-22 16:28 ` [PATCH 2/3] hugetlb: Remove a few calls to page_folio() Matthew Wilcox (Oracle)
2023-08-23 22:41 ` Mike Kravetz
2023-08-24 2:59 ` Muchun Song
2023-08-24 13:59 ` kernel test robot
2023-10-13 9:06 ` Dan Carpenter [this message]
2023-08-22 16:28 ` [PATCH 3/3] hugetlb: Convert remove_pool_huge_page() to return a folio Matthew Wilcox (Oracle)
2023-08-23 22:48 ` Mike Kravetz
2023-08-24 1:10 ` Matthew Wilcox
2023-08-24 2:38 ` Muchun Song
2023-08-23 22:37 ` [PATCH 1/3] hugetlb: Use a folio in free_hpage_workfn() Mike Kravetz
2023-08-24 2:58 ` Muchun Song
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=736ebb93-76d4-4096-8b73-657a9698e043@kadam.mountain \
--to=dan.carpenter@linaro.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=mike.kravetz@oracle.com \
--cc=muchun.song@linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=sidhartha.kumar@oracle.com \
--cc=willy@infradead.org \
/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