Hi Madhavan,

[auto build test ERROR on tip/perf/core]
[also build test ERROR on v4.8-rc3 next-20160825]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for 
convenience) to record what (public, well-known) commit your patch series was 
built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    
https://github.com/0day-ci/linux/commits/Madhavan-Srinivasan/perf-core-Add-perf_arch_regs-and-mask-to-perf_regs-structure/20160829-050443
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

>> kernel/events/core.c:5356:27: error: redefinition of 
>> 'perf_get_arch_regs_mask'
    u64 __attribute__((weak)) perf_get_arch_regs_mask()
                              ^
   In file included from include/linux/perf_event.h:54:0,
                    from include/linux/trace_events.h:9,
                    from include/trace/syscall.h:6,
                    from include/linux/syscalls.h:81,
                    from kernel/events/core.c:34:
   include/linux/perf_regs.h:52:5: note: previous definition of 
'perf_get_arch_regs_mask' was here
    u64 perf_get_arch_regs_mask(void)
        ^
>> kernel/events/core.c:5361:46: error: redefinition of 'perf_get_arch_reg'
    struct perf_arch_regs *__attribute__((weak)) perf_get_arch_reg()
                                                 ^
   In file included from include/linux/perf_event.h:54:0,
                    from include/linux/trace_events.h:9,
                    from include/trace/syscall.h:6,
                    from include/linux/syscalls.h:81,
                    from kernel/events/core.c:34:
   include/linux/perf_regs.h:57:24: note: previous definition of 
'perf_get_arch_reg' was here
    struct perf_arch_regs *perf_get_arch_reg(void)
                           ^
>> kernel/events/core.c:5366:27: error: redefinition of 'perf_arch_reg_value'
    u64 __attribute__((weak)) perf_arch_reg_value(struct perf_arch_regs *regs,
                              ^
   In file included from include/linux/perf_event.h:54:0,
                    from include/linux/trace_events.h:9,
                    from include/trace/syscall.h:6,
                    from include/linux/syscalls.h:81,
                    from kernel/events/core.c:34:
   include/linux/perf_regs.h:62:5: note: previous definition of 
'perf_arch_reg_value' was here
    u64 perf_arch_reg_value(struct perf_arch_regs *regs, int idx)
        ^

vim +/perf_get_arch_regs_mask +5356 kernel/events/core.c

  5350  {
  5351          perf_guest_cbs = NULL;
  5352          return 0;
  5353  }
  5354  EXPORT_SYMBOL_GPL(perf_unregister_guest_info_callbacks);
  5355  
> 5356  u64 __attribute__((weak)) perf_get_arch_regs_mask()
  5357  {
  5358          return 0;
  5359  }
  5360  
> 5361  struct perf_arch_regs *__attribute__((weak)) perf_get_arch_reg()
  5362  {
  5363          return 0;
  5364  }
  5365  
> 5366  u64 __attribute__((weak)) perf_arch_reg_value(struct perf_arch_regs 
> *regs,
  5367                                                                  int idx)
  5368  {
  5369          return 0;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to