[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0b1ec996-47c7-4ca9-84ca-78fe977c4dfb@efficios.com>
Date: Sun, 11 Jan 2026 14:30:30 -0500
From: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To: kernel test robot <lkp@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: oe-kbuild-all@...ts.linux.dev,
Linux Memory Management List <linux-mm@...ck.org>,
linux-kernel@...r.kernel.org, "Paul E. McKenney" <paulmck@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>, Masami Hiramatsu
<mhiramat@...nel.org>, Dennis Zhou <dennis@...nel.org>,
Tejun Heo <tj@...nel.org>, Christoph Lameter <cl@...ux-foundation.org>,
Martin Liu <liumartin@...gle.com>, David Rientjes <rientjes@...gle.com>,
christian.koenig@....com, Shakeel Butt <shakeel.butt@...ux.dev>,
SeongJae Park <sj@...nel.org>, Michal Hocko <mhocko@...e.com>,
Johannes Weiner <hannes@...xchg.org>,
Sweet Tea Dorminy <sweettea-kernel@...miny.me>,
Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
"Liam R . Howlett" <liam.howlett@...cle.com>, Mike Rapoport
<rppt@...nel.org>, Suren Baghdasaryan <surenb@...gle.com>,
Vlastimil Babka <vbabka@...e.cz>, Christian Brauner <brauner@...nel.org>,
Wei Yang <richard.weiyang@...il.com>, David Hildenbrand <david@...hat.com>,
Miaohe Lin <linmiaohe@...wei.com>, Al Viro <viro@...iv.linux.org.uk>,
linux-trace-kernel@...r.kernel.org, Yu Zhao <yuzhao@...gle.com>
Subject: Re: [PATCH v12 3/3] mm: Implement precise OOM killer task selection
On 2026-01-11 12:50, kernel test robot wrote:
> Hi Mathieu,
>
> kernel test robot noticed the following build warnings:
>
[...]> All warnings (new ones prefixed by >>):
>
> In file included from include/asm-generic/bug.h:31,
> from arch/arc/include/asm/bug.h:30,
> from include/linux/bug.h:5,
> from include/linux/slab.h:15,
> from kernel/fork.c:16:
> kernel/fork.c: In function 'check_mm':
>>> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
> #define KERN_SOH "\001" /* ASCII Start Of Header */
> ^~~~~~
> include/linux/printk.h:483:11: note: in definition of macro 'printk_index_wrap'
> _p_func(_fmt, ##__VA_ARGS__); \
> ^~~~
> include/linux/printk.h:534:2: note: in expansion of macro 'printk'
> printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
> ^~~~~~
> include/linux/kern_levels.h:9:20: note: in expansion of macro 'KERN_SOH'
> #define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
> ^~~~~~~~
> include/linux/printk.h:534:9: note: in expansion of macro 'KERN_ALERT'
> printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
> ^~~~~~~~~~
> kernel/fork.c:635:4: note: in expansion of macro 'pr_alert'
> pr_alert("BUG: Bad rss-counter state mm:%p type:%s val:%ld Comm:%s Pid:%d\n",
> ^~~~~~~~
> kernel/fork.c:635:61: note: format string is defined here
> pr_alert("BUG: Bad rss-counter state mm:%p type:%s val:%ld Comm:%s Pid:%d\n",
> ~~^
> %d
percpu_counter_tree_precise_sum() needs to return a long, not int.
Will fix for v13.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
Powered by blists - more mailing lists