llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [RFC V1 01/11] perf: Consolidate branch sample filter helpers
       [not found] <1642998653-21377-2-git-send-email-anshuman.khandual@arm.com>
@ 2022-01-24  8:56 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-24  8:56 UTC (permalink / raw)
  To: Anshuman Khandual; +Cc: llvm, kbuild-all

Hi Anshuman,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on tip/master linux/master linus/master v5.17-rc1 next-20220124]
[cannot apply to tip/perf/core]
[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]

url:    https://github.com/0day-ci/linux/commits/Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220124-123403
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: hexagon-randconfig-r031-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241639.ksLTFBFO-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9006bf424847bf91f0a624ffc27ad165c7b804c4)
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/0day-ci/linux/commit/896e736b386a6365048d447a32149f03c2544d47
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Anshuman-Khandual/arm64-perf-Enable-branch-stack-sampling/20220124-123403
        git checkout 896e736b386a6365048d447a32149f03c2544d47
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash arch/hexagon/mm/ drivers/char/ fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from arch/hexagon/mm/vm_fault.c:21:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
   arch/hexagon/mm/vm_fault.c:36:6: warning: no previous prototype for function 'do_page_fault' [-Wmissing-prototypes]
   void do_page_fault(unsigned long address, long cause, struct pt_regs *regs)
        ^
   arch/hexagon/mm/vm_fault.c:36:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void do_page_fault(unsigned long address, long cause, struct pt_regs *regs)
   ^
   static 
   arch/hexagon/mm/vm_fault.c:162:6: warning: no previous prototype for function 'read_protection_fault' [-Wmissing-prototypes]
   void read_protection_fault(struct pt_regs *regs)
        ^
   arch/hexagon/mm/vm_fault.c:162:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void read_protection_fault(struct pt_regs *regs)
   ^
   static 
   arch/hexagon/mm/vm_fault.c:169:6: warning: no previous prototype for function 'write_protection_fault' [-Wmissing-prototypes]
   void write_protection_fault(struct pt_regs *regs)
        ^
   arch/hexagon/mm/vm_fault.c:169:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void write_protection_fault(struct pt_regs *regs)
   ^
   static 
   arch/hexagon/mm/vm_fault.c:176:6: warning: no previous prototype for function 'execute_protection_fault' [-Wmissing-prototypes]
   void execute_protection_fault(struct pt_regs *regs)
        ^
   arch/hexagon/mm/vm_fault.c:176:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void execute_protection_fault(struct pt_regs *regs)
   ^
   static 
   4 warnings and 4 errors generated.
--
   In file included from fs/binfmt_misc.c:27:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
   4 errors generated.
--
   In file included from fs/d_path.c:2:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
   fs/d_path.c:318:7: warning: no previous prototype for function 'simple_dname' [-Wmissing-prototypes]
   char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
         ^
   fs/d_path.c:318:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
   ^
   static 
   1 warning and 4 errors generated.
--
   In file included from fs/statfs.c:2:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
>> fs/statfs.c:131:3: warning: 'memcpy' will always overflow; destination buffer has size 64, but size argument is 88 [-Wfortify-source]
                   memcpy(&buf, st, sizeof(*st));
                   ^
   1 warning and 4 errors generated.
--
   In file included from fs/aio.c:20:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
   In file included from fs/aio.c:29:
   include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:136:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   1 warning and 4 errors generated.
--
   In file included from drivers/char/random.c:335:
   In file included from include/linux/syscalls.h:88:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
>> include/linux/perf_event.h:1653:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
                  ~~~~~  ^
   include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CYCLES;
                  ~~~~~  ^
   include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_TYPE_SAVE;
                  ~~~~~  ^
   include/linux/perf_event.h:1668:16: error: no member named 'attr' in 'struct perf_event'
           return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_INDEX;
                  ~~~~~  ^
>> drivers/char/random.c:1257:41: warning: shift count >= width of type [-Wshift-count-overflow]
           c_high = (sizeof(cycles) > 4) ? cycles >> 32 : 0;
                                                  ^  ~~
   drivers/char/random.c:1258:35: warning: shift count >= width of type [-Wshift-count-overflow]
           j_high = (sizeof(now) > 4) ? now >> 32 : 0;
                                            ^  ~~
   drivers/char/random.c:2272:6: warning: no previous prototype for function 'add_hwgenerator_randomness' [-Wmissing-prototypes]
   void add_hwgenerator_randomness(const char *buffer, size_t count,
        ^
   drivers/char/random.c:2272:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void add_hwgenerator_randomness(const char *buffer, size_t count,
   ^
   static 
   3 warnings and 4 errors generated.


vim +1653 include/linux/perf_event.h

  1650	
  1651	static inline bool branch_sample_no_flags(const struct perf_event *event)
  1652	{
> 1653		return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FLAGS;
  1654	}
  1655	

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

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

only message in thread, other threads:[~2022-01-24  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1642998653-21377-2-git-send-email-anshuman.khandual@arm.com>
2022-01-24  8:56 ` [RFC V1 01/11] perf: Consolidate branch sample filter helpers kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).