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:ftrace/direct 4/8] kernel/trace/trace_selftest.c:753:32: error: 'trace_direct_tramp' defined but not used
Date: Mon, 1 Nov 2021 01:40:05 +0800	[thread overview]
Message-ID: <202111010158.G7nQd3KY-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git ftrace/direct
head:   b171ddeaf8fd82ae5e703a9ec28dc4a44f8f0019
commit: 0b1d3b2f86afd6dfbe4127ac520f532d31853b32 [4/8] tracing: Add trampoline/graph selftest
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=0b1d3b2f86afd6dfbe4127ac520f532d31853b32
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf ftrace/direct
        git checkout 0b1d3b2f86afd6dfbe4127ac520f532d31853b32
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh 

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 >>):

   kernel/trace/trace.c: In function 'trace_check_vprintf':
   kernel/trace/trace.c:3813:17: error: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    3813 |                 trace_seq_vprintf(&iter->seq, iter->fmt, ap);
         |                 ^~~~~~~~~~~~~~~~~
   kernel/trace/trace.c:3868:17: error: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
    3868 |                 trace_seq_vprintf(&iter->seq, p, ap);
         |                 ^~~~~~~~~~~~~~~~~
   In file included from kernel/trace/trace.c:8597:
   At top level:
>> kernel/trace/trace_selftest.c:753:32: error: 'trace_direct_tramp' defined but not used [-Werror=unused-function]
     753 | noinline __noclone static void trace_direct_tramp(void) { }
         |                                ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/trace_direct_tramp +753 kernel/trace/trace_selftest.c

   752	
 > 753	noinline __noclone static void trace_direct_tramp(void) { }
   754	

---
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: 55525 bytes --]

                 reply	other threads:[~2021-10-31 17:40 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=202111010158.G7nQd3KY-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