From: kernel test robot <lkp@intel.com>
To: Usama Arif <usamaarif642@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v4 4/6] mm/damon: introduce DAMOS filter type hugepage
Date: Wed, 5 Feb 2025 01:27:00 +0800 [thread overview]
Message-ID: <202502050106.VysTkQFY-lkp@intel.com> (raw)
In-Reply-To: <20250203225604.44742-5-usamaarif642@gmail.com>
Hi Usama,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Usama-Arif/mm-damon-have-damon_get_folio-return-folio-even-for-tail-pages/20250204-065901
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250203225604.44742-5-usamaarif642%40gmail.com
patch subject: [PATCH v4 4/6] mm/damon: introduce DAMOS filter type hugepage
config: s390-randconfig-001-20250204 (https://download.01.org/0day-ci/archive/20250205/202502050106.VysTkQFY-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250205/202502050106.VysTkQFY-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/202502050106.VysTkQFY-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/damon/paddr.c: In function 'damos_pa_filter_match':
>> mm/damon/paddr.c:230:16: warning: unused variable 'folio_sz' [-Wunused-variable]
230 | size_t folio_sz;
| ^~~~~~~~
vim +/folio_sz +230 mm/damon/paddr.c
224
225 static bool damos_pa_filter_match(struct damos_filter *filter,
226 struct folio *folio)
227 {
228 bool matched = false;
229 struct mem_cgroup *memcg;
> 230 size_t folio_sz;
231
232 switch (filter->type) {
233 case DAMOS_FILTER_TYPE_ANON:
234 matched = folio_test_anon(folio);
235 break;
236 case DAMOS_FILTER_TYPE_MEMCG:
237 rcu_read_lock();
238 memcg = folio_memcg_check(folio);
239 if (!memcg)
240 matched = false;
241 else
242 matched = filter->memcg_id == mem_cgroup_id(memcg);
243 rcu_read_unlock();
244 break;
245 case DAMOS_FILTER_TYPE_YOUNG:
246 matched = damon_folio_young(folio);
247 if (matched)
248 damon_folio_mkold(folio);
249 break;
250 #if defined(CONFIG_PGTABLE_HAS_HUGE_LEAVES)
251 case DAMOS_FILTER_TYPE_HUGEPAGE:
252 folio_sz = folio_size(folio);
253 matched = filter->folio_size.min <= folio_sz && folio_sz <= filter->folio_size.max;
254 break;
255 #endif
256 default:
257 break;
258 }
259
260 return matched == filter->matching;
261 }
262
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-02-04 17:27 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-03 22:55 [PATCH v4 0/6] mm/damon: add support for hugepages Usama Arif
2025-02-03 22:55 ` [PATCH v4 1/6] mm/damon: have damon_get_folio return folio even for tail pages Usama Arif
2025-02-03 22:55 ` [PATCH v4 2/6] mm/damon/paddr: use damon_get_folio_in_region to obtain folio Usama Arif
2025-02-04 23:06 ` SeongJae Park
2025-02-05 12:46 ` Usama Arif
2025-02-05 21:40 ` SeongJae Park
2025-02-03 22:55 ` [PATCH v4 3/6] mm/damon/sysfs-schemes: add files for setting damos_filter->folio_size Usama Arif
2025-02-04 23:10 ` SeongJae Park
2025-02-05 13:57 ` Usama Arif
2025-02-05 21:44 ` SeongJae Park
2025-02-03 22:55 ` [PATCH v4 4/6] mm/damon: introduce DAMOS filter type hugepage Usama Arif
2025-02-04 17:27 ` kernel test robot [this message]
2025-02-04 23:12 ` SeongJae Park
2025-02-05 13:52 ` Usama Arif
2025-02-05 22:05 ` SeongJae Park
2025-02-07 18:22 ` Usama Arif
2025-02-07 18:52 ` SeongJae Park
2025-02-03 22:55 ` [PATCH v4 5/6] Docs/ABI/damon: document DAMOS sysfs files to set the min/max folio_size Usama Arif
2025-02-04 23:13 ` SeongJae Park
2025-02-03 22:55 ` [PATCH v4 6/6] Docs/admin-guide/mm/damon/usage: Document hugepage filter type Usama Arif
2025-02-04 23:13 ` SeongJae Park
2025-02-04 23:20 ` [PATCH v4 0/6] mm/damon: add support for hugepages SeongJae Park
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=202502050106.VysTkQFY-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=usamaarif642@gmail.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.