public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Riccardo Mancini <rickyman7@gmail.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: kbuild-all@lists.01.org, Namhyung Kim <namhyung@kernel.org>,
	Ian Rogers <irogers@google.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Alexander Shishkin <alexander.shishkin@linux.intel.com>,
	Jiri Olsa <jolsa@redhat.com>,
	Riccardo Mancini <rickyman7@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] tools libc_compat: add gettid
Date: Mon, 26 Jul 2021 06:04:00 +0800	[thread overview]
Message-ID: <202107260534.Q3Cd7MYm-lkp@intel.com> (raw)
In-Reply-To: <309becd325626e04015ad7b5f6fc701e569f918d.1626966805.git.rickyman7@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3845 bytes --]

Hi Riccardo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/perf/core]
[also build test ERROR on linux/master linus/master v5.14-rc2 next-20210723]
[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]

url:    https://github.com/0day-ci/linux/commits/Riccardo-Mancini/tools-add-gettid-to-libc_compat-h/20210722-233601
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git c76826a65f50038f050424365dbf3f97203f8710
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/42df183984cce4c25932242bbf9133684e9425db
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Riccardo-Mancini/tools-add-gettid-to-libc_compat-h/20210722-233601
        git checkout 42df183984cce4c25932242bbf9133684e9425db
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash -C tools/testing/selftests/bpf install

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from main.h:15,
                    from xlated_dumper.c:14:
   tools/include/tools/libc_compat.h: In function 'gettid':
   tools/include/tools/libc_compat.h:24:16: warning: implicit declaration of function 'syscall' [-Wimplicit-function-declaration]
      24 |  return (pid_t)syscall(__NR_gettid);
         |                ^~~~~~~
>> tools/include/tools/libc_compat.h:24:24: error: '__NR_gettid' undeclared (first use in this function)
      24 |  return (pid_t)syscall(__NR_gettid);
         |                        ^~~~~~~~~~~
   tools/include/tools/libc_compat.h:24:24: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from main.h:15,
                    from common.c:27:
>> tools/include/tools/libc_compat.h:22:21: error: static declaration of 'gettid' follows non-static declaration
      22 | static inline pid_t gettid(void)
         |                     ^~~~~~
   In file included from /usr/include/unistd.h:1170,
                    from common.c:15:
   /usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration of 'gettid' was here
      34 | extern __pid_t gettid (void) __THROW;
         |                ^~~~~~
   In file included from main.h:15,
                    from common.c:27:
   tools/include/tools/libc_compat.h: In function 'gettid':
>> tools/include/tools/libc_compat.h:24:24: error: '__NR_gettid' undeclared (first use in this function)
      24 |  return (pid_t)syscall(__NR_gettid);
         |                        ^~~~~~~~~~~
   tools/include/tools/libc_compat.h:24:24: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from main.h:15,
                    from btf.c:20:
   tools/include/tools/libc_compat.h: In function 'gettid':
>> tools/include/tools/libc_compat.h:24:24: error: '__NR_gettid' undeclared (first use in this function)
      24 |  return (pid_t)syscall(__NR_gettid);
         |                        ^~~~~~~~~~~
   tools/include/tools/libc_compat.h:24:24: note: each undeclared identifier is reported only once for each function it appears in


vim +/__NR_gettid +24 tools/include/tools/libc_compat.h

    20	
    21	#ifndef HAVE_GETTID
  > 22	static inline pid_t gettid(void)
    23	{
  > 24		return (pid_t)syscall(__NR_gettid);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41856 bytes --]

  reply	other threads:[~2021-07-25 22:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 15:34 [PATCH 0/3] tools: add gettid to libc_compat.h Riccardo Mancini
2021-07-22 15:34 ` [PATCH 1/3] tools libc_compat: add gettid Riccardo Mancini
2021-07-25 22:04   ` kernel test robot [this message]
2021-07-26 10:43     ` Riccardo Mancini
2021-07-22 15:34 ` [PATCH 2/3] perf jvmti: use gettid from libc_compat Riccardo Mancini
2021-07-22 15:34 ` [PATCH 3/3] perf test: mmap-thread-lookup: use gettid Riccardo Mancini
2021-07-22 23:31 ` [PATCH 0/3] tools: add gettid to libc_compat.h Ian Rogers

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=202107260534.Q3Cd7MYm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=acme@kernel.org \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=irogers@google.com \
    --cc=jolsa@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rickyman7@gmail.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