public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jolsa-perf:bpf/tramp_22 7/21] kernel/trace/ftrace_test.c:7:6: warning: no previous prototype for 'ftrace_test_0'
Date: Wed, 6 Jul 2022 08:23:20 +0800	[thread overview]
Message-ID: <202207060857.oxde1BCA-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tramp_22
head:   1d891c46bb689a24985cea58f4eddb053d6b1331
commit: d2304746483fe3d68537522df1f8e63993bdd732 [7/21] ftrace: Add test functions
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220706/202207060857.oxde1BCA-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=d2304746483fe3d68537522df1f8e63993bdd732
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/tramp_22
        git checkout d2304746483fe3d68537522df1f8e63993bdd732
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/trace/

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

All warnings (new ones prefixed by >>):

>> kernel/trace/ftrace_test.c:7:6: warning: no previous prototype for 'ftrace_test_0' [-Wmissing-prototypes]
       7 | FUNC(ftrace_test_0)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:8:6: warning: no previous prototype for 'ftrace_test_1' [-Wmissing-prototypes]
       8 | FUNC(ftrace_test_1)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:9:6: warning: no previous prototype for 'ftrace_test_2' [-Wmissing-prototypes]
       9 | FUNC(ftrace_test_2)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:10:6: warning: no previous prototype for 'ftrace_test_3' [-Wmissing-prototypes]
      10 | FUNC(ftrace_test_3)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:11:6: warning: no previous prototype for 'ftrace_test_4' [-Wmissing-prototypes]
      11 | FUNC(ftrace_test_4)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:12:6: warning: no previous prototype for 'ftrace_test_5' [-Wmissing-prototypes]
      12 | FUNC(ftrace_test_5)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:13:6: warning: no previous prototype for 'ftrace_test_6' [-Wmissing-prototypes]
      13 | FUNC(ftrace_test_6)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:14:6: warning: no previous prototype for 'ftrace_test_7' [-Wmissing-prototypes]
      14 | FUNC(ftrace_test_7)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:15:6: warning: no previous prototype for 'ftrace_test_8' [-Wmissing-prototypes]
      15 | FUNC(ftrace_test_8)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~
>> kernel/trace/ftrace_test.c:16:6: warning: no previous prototype for 'ftrace_test_9' [-Wmissing-prototypes]
      16 | FUNC(ftrace_test_9)
         |      ^~~~~~~~~~~~~
   kernel/trace/ftrace_test.c:4:5: note: in definition of macro 'FUNC'
       4 | int __name(void) { return 0; }  \
         |     ^~~~~~


vim +/ftrace_test_0 +7 kernel/trace/ftrace_test.c

     6	
   > 7	FUNC(ftrace_test_0)
   > 8	FUNC(ftrace_test_1)
   > 9	FUNC(ftrace_test_2)
  > 10	FUNC(ftrace_test_3)
  > 11	FUNC(ftrace_test_4)
  > 12	FUNC(ftrace_test_5)
  > 13	FUNC(ftrace_test_6)
  > 14	FUNC(ftrace_test_7)
  > 15	FUNC(ftrace_test_8)
  > 16	FUNC(ftrace_test_9)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-06  0:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202207060857.oxde1BCA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jolsa@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox