From: kernel test robot <lkp@intel.com>
To: Xiang Gao <gxxa03070307@gmail.com>,
akpm@linux-foundation.org, david@redhat.com
Cc: oe-kbuild-all@lists.linux.dev, lorenzo.stoakes@oracle.com,
Liam.Howlett@oracle.com, vbabka@suse.cz, rppt@kernel.org,
surenb@google.com, mhocko@suse.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, gaoxiang17 <gaoxiang17@xiaomi.com>
Subject: Re: [PATCH] mm/cma: add available_count and total count in trace_cma_alloc_start
Date: Wed, 20 Aug 2025 00:00:04 +0800 [thread overview]
Message-ID: <202508192303.cnpF2rQG-lkp@intel.com> (raw)
In-Reply-To: <20250819032654.4345-1-gxxa03070307@gmail.com>
Hi Xiang,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Xiang-Gao/mm-cma-add-available_count-and-total-count-in-trace_cma_alloc_start/20250819-112831
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250819032654.4345-1-gxxa03070307%40gmail.com
patch subject: [PATCH] mm/cma: add available_count and total count in trace_cma_alloc_start
config: s390-randconfig-002-20250819 (https://download.01.org/0day-ci/archive/20250819/202508192303.cnpF2rQG-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250819/202508192303.cnpF2rQG-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/202508192303.cnpF2rQG-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/trace/define_trace.h:132,
from include/trace/events/cma.h:138,
from mm/cma.c:31:
include/trace/events/cma.h: In function 'trace_raw_output_cma_alloc_start':
>> include/trace/events/cma.h:62:19: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
62 | TP_printk("name=%s count=%lu align=%u",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
219 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/cma.h:39:1: note: in expansion of macro 'TRACE_EVENT'
39 | TRACE_EVENT(cma_alloc_start,
| ^~~~~~~~~~~
include/trace/events/cma.h:62:9: note: in expansion of macro 'TP_printk'
62 | TP_printk("name=%s count=%lu align=%u",
| ^~~~~~~~~
In file included from include/trace/trace_events.h:256:
include/trace/events/cma.h:62:45: note: format string is defined here
62 | TP_printk("name=%s count=%lu align=%u",
| ~^
| |
| unsigned int
| %lu
>> include/trace/events/cma.h:62:19: warning: too many arguments for format [-Wformat-extra-args]
62 | TP_printk("name=%s count=%lu align=%u",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:219:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
219 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
45 | PARAMS(print)); \
| ^~~~~~
include/trace/events/cma.h:39:1: note: in expansion of macro 'TRACE_EVENT'
39 | TRACE_EVENT(cma_alloc_start,
| ^~~~~~~~~~~
include/trace/events/cma.h:62:9: note: in expansion of macro 'TP_printk'
62 | TP_printk("name=%s count=%lu align=%u",
| ^~~~~~~~~
include/trace/events/cma.h: In function 'do_trace_event_raw_event_cma_alloc_start':
>> include/trace/events/cma.h:56:24: error: 'struct trace_event_raw_cma_alloc_start' has no member named 'count'
56 | __entry->count = request_count;
| ^~
include/trace/trace_events.h:427:11: note: in definition of macro '__DECLARE_EVENT_CLASS'
427 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:435:23: note: in expansion of macro 'PARAMS'
435 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/trace/trace_events.h:40:9: note: in expansion of macro 'DECLARE_EVENT_CLASS'
40 | DECLARE_EVENT_CLASS(name, \
| ^~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
44 | PARAMS(assign), \
| ^~~~~~
include/trace/events/cma.h:39:1: note: in expansion of macro 'TRACE_EVENT'
39 | TRACE_EVENT(cma_alloc_start,
| ^~~~~~~~~~~
include/trace/events/cma.h:54:9: note: in expansion of macro 'TP_fast_assign'
54 | TP_fast_assign(
| ^~~~~~~~~~~~~~
In file included from include/trace/define_trace.h:133:
include/trace/events/cma.h: In function 'do_perf_trace_cma_alloc_start':
>> include/trace/events/cma.h:56:24: error: 'struct trace_event_raw_cma_alloc_start' has no member named 'count'
56 | __entry->count = request_count;
| ^~
include/trace/perf.h:51:11: note: in definition of macro '__DECLARE_EVENT_CLASS'
51 | { assign; } \
| ^~~~~~
include/trace/perf.h:67:23: note: in expansion of macro 'PARAMS'
67 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/trace/trace_events.h:40:9: note: in expansion of macro 'DECLARE_EVENT_CLASS'
40 | DECLARE_EVENT_CLASS(name, \
| ^~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
44 | PARAMS(assign), \
| ^~~~~~
include/trace/events/cma.h:39:1: note: in expansion of macro 'TRACE_EVENT'
39 | TRACE_EVENT(cma_alloc_start,
| ^~~~~~~~~~~
include/trace/events/cma.h:54:9: note: in expansion of macro 'TP_fast_assign'
54 | TP_fast_assign(
| ^~~~~~~~~~~~~~
vim +56 include/trace/events/cma.h
38
> 39 TRACE_EVENT(cma_alloc_start,
40
41 TP_PROTO(const char *name, unsigned long request_count, unsigned long available_count,
42 unsigned long total_count, unsigned int align),
43
44 TP_ARGS(name, request_count, available_count, total_count, align),
45
46 TP_STRUCT__entry(
47 __string(name, name)
48 __field(unsigned long, request_count)
49 __field(unsigned long, available_count)
50 __field(unsigned long, total_count)
51 __field(unsigned int, align)
52 ),
53
54 TP_fast_assign(
55 __assign_str(name);
> 56 __entry->count = request_count;
57 __entry->available_count = available_count;
58 __entry->total_count = total_count;
59 __entry->align = align;
60 ),
61
> 62 TP_printk("name=%s count=%lu align=%u",
63 __get_str(name),
64 __entry->request_count,
65 __entry->available_count,
66 __entry->total_count,
67 __entry->align)
68 );
69
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-08-19 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-19 3:26 Xiang Gao
2025-08-19 7:22 ` David Hildenbrand
2025-08-19 15:39 ` kernel test robot
2025-08-19 16:00 ` kernel test robot [this message]
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=202508192303.cnpF2rQG-lkp@intel.com \
--to=lkp@intel.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=gaoxiang17@xiaomi.com \
--cc=gxxa03070307@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=mhocko@suse.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
/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
all inboxes | Powered by JetHome®