From: kernel test robot <lkp@intel.com>
To: Huiwen He <hehuiwen@kylinos.cn>, Steven Rostedt <rostedt@goodmis.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
Huiwen He <hehuiwen@kylinos.cn>
Subject: Re: [PATCH] tracing/hist: make err_text array fully const
Date: Wed, 5 Nov 2025 23:09:08 +0800 [thread overview]
Message-ID: <202511052258.kdB9B0rI-lkp@intel.com> (raw)
In-Reply-To: <20251104045558.1644671-1-hehuiwen@kylinos.cn>
Hi Huiwen,
kernel test robot noticed the following build errors:
[auto build test ERROR on trace/for-next]
[also build test ERROR on linus/master v6.18-rc4 next-20251105]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Huiwen-He/tracing-hist-make-err_text-array-fully-const/20251104-125932
base: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next
patch link: https://lore.kernel.org/r/20251104045558.1644671-1-hehuiwen%40kylinos.cn
patch subject: [PATCH] tracing/hist: make err_text array fully const
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20251105/202511052258.kdB9B0rI-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/202511052258.kdB9B0rI-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/202511052258.kdB9B0rI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/trace/trace_events_hist.c:808:46: error: passing 'const char *const[49]' to parameter of type 'const char **' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
808 | tracing_log_err(tr, last_cmd_loc, last_cmd, err_text,
| ^~~~~~~~
kernel/trace/trace.h:2113:21: note: passing argument to parameter 'errs' here
2113 | const char **errs, u8 type, u16 pos);
| ^
1 error generated.
vim +808 kernel/trace/trace_events_hist.c
4b147936fa5096 Tom Zanussi 2018-01-15 802
edfeed318d59ff Tom Zanussi 2022-01-28 803 static void hist_err(struct trace_array *tr, u8 err_type, u16 err_pos)
7bbab38d07f318 Masami Hiramatsu 2018-11-05 804 {
edfeed318d59ff Tom Zanussi 2022-01-28 805 if (!last_cmd)
edfeed318d59ff Tom Zanussi 2022-01-28 806 return;
edfeed318d59ff Tom Zanussi 2022-01-28 807
726721a51838e3 Tom Zanussi 2020-05-28 @808 tracing_log_err(tr, last_cmd_loc, last_cmd, err_text,
726721a51838e3 Tom Zanussi 2020-05-28 809 err_type, err_pos);
7bbab38d07f318 Masami Hiramatsu 2018-11-05 810 }
7bbab38d07f318 Masami Hiramatsu 2018-11-05 811
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-11-05 15:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 4:55 [PATCH] tracing/hist: make err_text array fully const Huiwen He
2025-11-05 7:17 ` kernel test robot
2025-11-05 10:05 ` kernel test robot
2025-11-05 11:50 ` Huiwen He
2025-11-05 15:09 ` 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=202511052258.kdB9B0rI-lkp@intel.com \
--to=lkp@intel.com \
--cc=hehuiwen@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rostedt@goodmis.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 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.