All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Leizhen (ThunderTown)" <thunder.leizhen@huawei.com>
To: kernel test robot <lkp@intel.com>
Cc: <llvm@lists.linux.dev>, <oe-kbuild-all@lists.linux.dev>
Subject: Re: [PATCH v9] kallsyms: Add self-test facility
Date: Tue, 22 Nov 2022 21:24:02 +0800	[thread overview]
Message-ID: <fc467e6b-fa30-0853-f3c6-a118541cf90a@huawei.com> (raw)
In-Reply-To: <202211222003.BHvjediW-lkp@intel.com>



On 2022/11/22 20:29, kernel test robot wrote:
> Hi Zhen,
> 
> Thank you for the patch! Yet something to improve:
> 
> [auto build test ERROR on linus/master]
> [also build test ERROR on v6.1-rc6]
> [cannot apply to next-20221122]
> [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/Zhen-Lei/kallsyms-Add-self-test-facility/20221115-163650
> patch link:    https://lore.kernel.org/r/20221115083349.1662-1-thunder.leizhen%40huawei.com
> patch subject: [PATCH v9] kallsyms: Add self-test facility
> config: hexagon-randconfig-r013-20221120
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7)
> 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://github.com/intel-lab-lkp/linux/commit/2d938b2c6f7a6a515097ec18124ac23a6017ffaf
>         git remote add linux-review https://github.com/intel-lab-lkp/linux
>         git fetch --no-tags linux-review Zhen-Lei/kallsyms-Add-self-test-facility/20221115-163650
>         git checkout 2d938b2c6f7a6a515097ec18124ac23a6017ffaf
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>>> kernel/kallsyms_selftest.c:281:2: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>            kallsyms_on_each_match_symbol(match_symbol, stat.name, &stat);
>            ^
>    kernel/kallsyms_selftest.c:281:2: note: did you mean 'kallsyms_on_each_symbol'?
>    include/linux/kallsyms.h:70:5: note: 'kallsyms_on_each_symbol' declared here
>    int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
>        ^
>    kernel/kallsyms_selftest.c:331:3: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>                    kallsyms_on_each_match_symbol(match_symbol, test_items[i].name, stat);
>                    ^
>    kernel/kallsyms_selftest.c:381:3: error: call to undeclared function 'kallsyms_on_each_match_symbol'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>                    kallsyms_on_each_match_symbol(match_symbol, namebuf, stat);
>                    ^
>    3 errors generated.

Hi, this is a false positive. Because the patches 1-6 in v8 had already been applied, so I
only updated patch 9/9 in v8, and post it separately as v9. So these errors are reported due
to missing patches 1-6 in v8. Please ignore them.

> 
> 
> vim +/kallsyms_on_each_match_symbol +281 kernel/kallsyms_selftest.c
> 
>    269	
>    270	static void test_perf_kallsyms_on_each_match_symbol(void)
>    271	{
>    272		u64 t0, t1;
>    273		unsigned long flags;
>    274		struct test_stat stat;
>    275	
>    276		memset(&stat, 0, sizeof(stat));
>    277		stat.max = INT_MAX;
>    278		stat.name = stub_name;
>    279		local_irq_save(flags);
>    280		t0 = sched_clock();
>  > 281		kallsyms_on_each_match_symbol(match_symbol, stat.name, &stat);
>    282		t1 = sched_clock();
>    283		local_irq_restore(flags);
>    284		pr_info("kallsyms_on_each_match_symbol() traverse all: %lld ns\n", t1 - t0);
>    285	}
>    286	
> 

-- 
Regards,
  Zhen Lei

  reply	other threads:[~2022-11-22 13:24 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15  8:33 [PATCH v9] kallsyms: Add self-test facility Zhen Lei
2022-11-15  8:42 ` Luis Chamberlain
2022-11-15  8:43 ` Leizhen (ThunderTown)
2022-11-22 12:29 ` kernel test robot
2022-11-22 13:24   ` Leizhen (ThunderTown) [this message]
2022-11-22 15:31 ` kernel test robot
2022-12-15  8:50 ` Geert Uytterhoeven
2022-12-15  9:16   ` Leizhen (ThunderTown)
2022-12-15  9:39     ` Geert Uytterhoeven
2022-12-15 12:33       ` Leizhen (ThunderTown)
2022-12-15 13:24         ` Geert Uytterhoeven
2022-12-15 13:58           ` Leizhen (ThunderTown)
2022-12-15 14:40             ` Leizhen (ThunderTown)
2022-12-15 14:51               ` Geert Uytterhoeven
2022-12-16  7:42                 ` Leizhen (ThunderTown)
2022-12-16  9:36                   ` Leizhen (ThunderTown)
2022-12-16 11:28                     ` Geert Uytterhoeven
2022-12-16 12:01                       ` Leizhen (ThunderTown)
2022-12-16 13:29                         ` David Laight
2022-12-16 14:44                           ` David Laight
2022-12-16 15:19                             ` Andreas Schwab
2022-12-16 15:25                               ` David Laight
2022-12-16 15:54                                 ` Andreas Schwab
2022-12-16 16:09                                   ` David Laight
2022-12-16 16:11                                     ` Andreas Schwab
2022-12-16 16:32                                       ` David Laight
2022-12-16 16:53                                         ` Steven Rostedt
2022-12-16 16:57                                           ` David Laight
2022-12-16 17:19                                             ` Steven Rostedt
2022-12-16 17:38                                               ` Steven Rostedt
2022-12-16 19:27                                                 ` David Laight
2022-12-17  7:31                                                   ` Leizhen (ThunderTown)
2022-12-17 13:37                                                     ` Geert Uytterhoeven
2022-12-17 17:37                                                       ` David Laight
2022-12-16 11:57                     ` Andreas Schwab
2022-12-16 13:31                       ` Leizhen (ThunderTown)
2022-12-16 13:47                         ` Andreas Schwab
2022-12-15 14:43             ` Geert Uytterhoeven
2022-12-15 14:51               ` Andreas Schwab
2022-12-16 10:40           ` David Laight
2022-12-16 11:40             ` Leizhen (ThunderTown)
2022-12-16 11:44           ` Andreas Schwab
2022-12-16 11:57             ` Leizhen (ThunderTown)
2022-12-16 12:39               ` Andreas Schwab
2022-12-16 13:31                 ` Leizhen (ThunderTown)

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=fc467e6b-fa30-0853-f3c6-a118541cf90a@huawei.com \
    --to=thunder.leizhen@huawei.com \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.