[linux-next:master 6635/10565] samples/ftrace/ftrace-ops.c:15:14: sparse: sparse: symbol 'nr_function_calls' was not declared. Should it be static?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   129af770823407ee115a56c69a04b440fd2fbe61
commit: b56c68f705cad0cff61fbe132c66ced2c737c65c [6635/10565] ftrace: Add sample with custom ops
config: x86_64-randconfig-s043-20230206 (https://download.01.org/0day-ci/archive/20230206/202302062223.7F7gv80M-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b56c68f705cad0cff61fbe132c66ced2c737c65c
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b56c68f705cad0cff61fbe132c66ced2c737c65c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash samples/ftrace/

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

sparse warnings: (new ones prefixed by >>)
>> samples/ftrace/ftrace-ops.c:15:14: sparse: sparse: symbol 'nr_function_calls' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:24:14: sparse: sparse: symbol 'nr_ops_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:33:14: sparse: sparse: symbol 'nr_ops_irrelevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:45:6: sparse: sparse: symbol 'assist_recursion' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:49:6: sparse: sparse: symbol 'assist_rcu' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:117:19: sparse: sparse: symbol 'ops_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:118:19: sparse: sparse: symbol 'ops_irrelevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:166:15: sparse: sparse: symbol 'tracer_relevant' was not declared. Should it be static?
>> samples/ftrace/ftrace-ops.c:167:15: sparse: sparse: symbol 'tracer_irrelevant' was not declared. Should it be static?

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux