All of lore.kernel.org
 help / color / mirror / Atom feed
* [trace:ftrace/core 28/37] kernel/trace/trace_hwlat.c:120:28: warning: no previous prototype for 'get_cpu_data'
@ 2021-06-25 19:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-25 19:52 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git ftrace/core
head:   e170f007c7ebc73fef7c2f696d428b5e8d08727e
commit: e837c117b9ef79f6780f80dba6c037da7cff456d [28/37] trace/hwlat: Implement the per-cpu mode
config: sh-buildonly-randconfig-r004-20210625 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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/rostedt/linux-trace.git/commit/?id=e837c117b9ef79f6780f80dba6c037da7cff456d
        git remote add trace https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
        git fetch --no-tags trace ftrace/core
        git checkout e837c117b9ef79f6780f80dba6c037da7cff456d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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 warnings (new ones prefixed by >>):

>> kernel/trace/trace_hwlat.c:120:28: warning: no previous prototype for 'get_cpu_data' [-Wmissing-prototypes]
     120 | struct hwlat_kthread_data *get_cpu_data(void)
         |                            ^~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +/get_cpu_data +120 kernel/trace/trace_hwlat.c

   119	
 > 120	struct hwlat_kthread_data *get_cpu_data(void)
   121	{
   122		if (hwlat_data.thread_mode == MODE_PER_CPU)
   123			return this_cpu_ptr(&hwlat_per_cpu_data);
   124		else
   125			return &hwlat_single_cpu_data;
   126	}
   127	

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-25 19:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 19:52 [trace:ftrace/core 28/37] kernel/trace/trace_hwlat.c:120:28: warning: no previous prototype for 'get_cpu_data' kernel test robot

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.