From: kernel test robot <lkp@intel.com>
To: Arnaldo Carvalho de Melo <acme@kernel.org>,
Quentin Monnet <quentin@isovalent.com>
Cc: oe-kbuild-all@lists.linux.dev, Jiri Olsa <jolsa@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Andrii Nakryiko <andrii.nakryiko@gmail.com>,
bpf@vger.kernel.org
Subject: Re: [PATCH] bpftool: Add missing libgen.h for basename()
Date: Fri, 12 Jan 2024 10:52:04 +0800 [thread overview]
Message-ID: <202401121009.hCPmwMe6-lkp@intel.com> (raw)
In-Reply-To: <ZZYgMYmb_qE94PUB@kernel.org>
Hi Arnaldo,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf-next/master]
[also build test WARNING on bpf/master linus/master v6.7 next-20240111]
[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/Arnaldo-Carvalho-de-Melo/bpftool-Add-missing-libgen-h-for-basename/20240104-110542
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link: https://lore.kernel.org/r/ZZYgMYmb_qE94PUB%40kernel.org
patch subject: [PATCH] bpftool: Add missing libgen.h for basename()
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240112/202401121009.hCPmwMe6-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/202401121009.hCPmwMe6-lkp@intel.com/
All warnings (new ones prefixed by >>):
Makefile.config:1153: libpfm4 not found, disables libpfm4 support. Please install libpfm4-dev
PERF_VERSION = 6.7.rc6.ge6bdf4fd535b
gen.c: In function 'get_obj_name':
>> gen.c:61:32: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
61 | strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1);
| ^~~~
In file included from gen.c:10:
/usr/include/libgen.h:34:36: note: expected 'char *' but argument is of type 'const char *'
34 | extern char *__xpg_basename (char *__path) __THROW;
| ~~~~~~^~~~~~
--
gen.c: In function 'get_obj_name':
>> gen.c:61:32: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
61 | strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1);
| ^~~~
In file included from gen.c:10:
/usr/include/libgen.h:34:36: note: expected 'char *' but argument is of type 'const char *'
34 | extern char *__xpg_basename (char *__path) __THROW;
| ~~~~~~^~~~~~
gen.c: In function 'get_obj_name':
>> gen.c:61:32: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
61 | strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1);
| ^~~~
In file included from gen.c:10:
/usr/include/libgen.h:34:36: note: expected 'char *' but argument is of type 'const char *'
34 | extern char *__xpg_basename (char *__path) __THROW;
| ~~~~~~^~~~~~
gen.c: In function 'get_obj_name':
>> gen.c:61:32: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
61 | strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1);
| ^~~~
In file included from gen.c:10:
/usr/include/libgen.h:34:36: note: expected 'char *' but argument is of type 'const char *'
34 | extern char *__xpg_basename (char *__path) __THROW;
| ~~~~~~^~~~~~
--
gen.c: In function 'get_obj_name':
>> gen.c:61:32: warning: passing argument 1 of '__xpg_basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
61 | strncpy(name, basename(file), MAX_OBJ_NAME_LEN - 1);
| ^~~~
In file included from gen.c:10:
/usr/include/libgen.h:34:36: note: expected 'char *' but argument is of type 'const char *'
34 | extern char *__xpg_basename (char *__path) __THROW;
| ~~~~~~^~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-01-12 2:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-04 3:04 [PATCH] bpftool: Add missing libgen.h for basename() Arnaldo Carvalho de Melo
2024-01-04 9:33 ` Jiri Olsa
2024-01-04 12:27 ` Arnaldo Carvalho de Melo
2024-01-04 13:01 ` Arnaldo Carvalho de Melo
2024-01-05 8:48 ` Jiri Olsa
2024-01-05 15:01 ` Jiri Olsa
2024-01-05 20:53 ` Arnaldo Carvalho de Melo
2024-01-06 20:02 ` Jiri Olsa
2024-01-26 15:53 ` Arnaldo Carvalho de Melo
2024-01-29 10:07 ` Quentin Monnet
2024-01-29 11:23 ` Jiri Olsa
2024-01-12 2:52 ` 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=202401121009.hCPmwMe6-lkp@intel.com \
--to=lkp@intel.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=andrii.nakryiko@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=namhyung@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=quentin@isovalent.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox