* [sj:damon/next 112/124] mm/damon/core.c:1862:25: error: 'c' undeclared
@ 2026-02-09 17:35 kernel test robot
2026-02-09 17:46 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-02-09 17:35 UTC (permalink / raw)
To: SeongJae Park; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head: a8c204a2a82057d70dd8944476dd043dc52561ed
commit: 7fdffc23ed84ea44a9f15f71d15b00a94f326acd [112/124] mm/damon/core: unify damon_warn_fix_nr_accesses_corruption() with damon_verify_reset_aggregated()
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260210/202602100155.sDqMXews-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100155.sDqMXews-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/202602100155.sDqMXews-lkp@intel.com/
Note: the sj/damon/next HEAD a8c204a2a82057d70dd8944476dd043dc52561ed builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:31,
from arch/sh/include/asm/bug.h:112,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/current.h:6,
from ./arch/sh/include/generated/asm/current.h:1,
from include/linux/sched.h:12,
from include/linux/cgroup.h:12,
from include/linux/memcontrol.h:13,
from include/linux/damon.h:11,
from mm/damon/core.c:10:
mm/damon/core.c: In function 'damon_warn_fix_nr_accesses_corruption':
>> mm/damon/core.c:1862:25: error: 'c' undeclared (first use in this function)
1862 | c->passed_sample_intervals,
| ^
include/linux/printk.h:484:33: note: in definition of macro 'printk_index_wrap'
484 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:555:9: note: in expansion of macro 'printk'
555 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
mm/damon/core.c:1861:9: note: in expansion of macro 'pr_err'
1861 | pr_err("passed_sis %lu next_aggregation_sis %lu\n",
| ^~~~~~
mm/damon/core.c:1862:25: note: each undeclared identifier is reported only once for each function it appears in
1862 | c->passed_sample_intervals,
| ^
include/linux/printk.h:484:33: note: in definition of macro 'printk_index_wrap'
484 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:555:9: note: in expansion of macro 'printk'
555 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
mm/damon/core.c:1861:9: note: in expansion of macro 'pr_err'
1861 | pr_err("passed_sis %lu next_aggregation_sis %lu\n",
| ^~~~~~
vim +/c +1862 mm/damon/core.c
89796f03081328 SeongJae Park 2025-12-02 1844
591c4c78be0636 SeongJae Park 2025-05-12 1845 /*
591c4c78be0636 SeongJae Park 2025-05-12 1846 * Warn and fix corrupted ->nr_accesses[_bp] for investigations and preventing
591c4c78be0636 SeongJae Park 2025-05-12 1847 * the problem being propagated.
591c4c78be0636 SeongJae Park 2025-05-12 1848 */
591c4c78be0636 SeongJae Park 2025-05-12 1849 static void damon_warn_fix_nr_accesses_corruption(struct damon_region *r)
591c4c78be0636 SeongJae Park 2025-05-12 1850 {
591c4c78be0636 SeongJae Park 2025-05-12 1851 if (r->nr_accesses_bp == r->nr_accesses * 10000)
591c4c78be0636 SeongJae Park 2025-05-12 1852 return;
7fdffc23ed84ea SeongJae Park 2026-02-04 1853 #ifndef CONFIG_DAMON_HARDENED
591c4c78be0636 SeongJae Park 2025-05-12 1854 WARN_ONCE(true, "invalid nr_accesses_bp at reset: %u %u\n",
591c4c78be0636 SeongJae Park 2025-05-12 1855 r->nr_accesses_bp, r->nr_accesses);
591c4c78be0636 SeongJae Park 2025-05-12 1856 r->nr_accesses_bp = r->nr_accesses * 10000;
7fdffc23ed84ea SeongJae Park 2026-02-04 1857 #else
5b9f4fef2cb618 SeongJae Park 2026-01-03 1858 pr_err("reset time invalid region found!\n");
5b9f4fef2cb618 SeongJae Park 2026-01-03 1859 pr_err("nr_accesses_bp %u last_nr_acceses %u\n",
5b9f4fef2cb618 SeongJae Park 2026-01-03 1860 r->nr_accesses_bp, r->last_nr_accesses);
5b9f4fef2cb618 SeongJae Park 2026-01-03 1861 pr_err("passed_sis %lu next_aggregation_sis %lu\n",
5b9f4fef2cb618 SeongJae Park 2026-01-03 @1862 c->passed_sample_intervals,
5b9f4fef2cb618 SeongJae Park 2026-01-03 1863 c->next_aggregation_sis);
5b9f4fef2cb618 SeongJae Park 2026-01-03 1864 BUG();
5b9f4fef2cb618 SeongJae Park 2026-01-03 1865 #endif
7fdffc23ed84ea SeongJae Park 2026-02-04 1866 }
5b9f4fef2cb618 SeongJae Park 2026-01-03 1867
:::::: The code at line 1862 was first introduced by commit
:::::: 5b9f4fef2cb618ee597b3345dee579340e8d5d43 mm/damon/core: add damon_reset_aggregated() hardening
:::::: TO: SeongJae Park <sj@kernel.org>
:::::: CC: SeongJae Park <sj@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [sj:damon/next 112/124] mm/damon/core.c:1862:25: error: 'c' undeclared
2026-02-09 17:35 [sj:damon/next 112/124] mm/damon/core.c:1862:25: error: 'c' undeclared kernel test robot
@ 2026-02-09 17:46 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2026-02-09 17:46 UTC (permalink / raw)
To: kernel test robot; +Cc: SeongJae Park, oe-kbuild-all, damon
On Tue, 10 Feb 2026 01:35:06 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
> head: a8c204a2a82057d70dd8944476dd043dc52561ed
> commit: 7fdffc23ed84ea44a9f15f71d15b00a94f326acd [112/124] mm/damon/core: unify damon_warn_fix_nr_accesses_corruption() with damon_verify_reset_aggregated()
> config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260210/202602100155.sDqMXews-lkp@intel.com/config)
> compiler: sh4-linux-gcc (GCC) 15.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100155.sDqMXews-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/202602100155.sDqMXews-lkp@intel.com/
>
> Note: the sj/damon/next HEAD a8c204a2a82057d70dd8944476dd043dc52561ed builds fine.
> It only hurts bisectability.
Thank you for this report. Seems this is same to another one, that a fix [1]
has pushed a few hours ago. I understand it is still making bisect
complicated, because the fix was made as a separate commit. I will squash the
fix to the broken commit soon.
[1] https://lore.kernel.org/20260209151322.54520-1-sj@kernel.org
Thanks,
SJ
[...]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-09 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-09 17:35 [sj:damon/next 112/124] mm/damon/core.c:1862:25: error: 'c' undeclared kernel test robot
2026-02-09 17:46 ` SeongJae Park
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.