Content-Type: multipart/mixed; boundary="===============0003266806681704129==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC V1 01/11] perf: Consolidate branch sample filter helpers Date: Mon, 24 Jan 2022 16:56:26 +0800 Message-ID: <202201241639.ksLTFBFO-lkp@intel.com> In-Reply-To: <1642998653-21377-2-git-send-email-anshuman.khandual@arm.com> List-Id: --===============0003266806681704129== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 ne= xt-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-pe= rf-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/a= rchive/20220124/202201241639.ksLTFBFO-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9006bf= 424847bf91f0a624ffc27ad165c7b804c4) reproduce (this is a W=3D1 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/896e736b386a6365048d447a3= 2149f03c2544d47 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Anshuman-Khandual/arm64-perf-Enabl= e-branch-stack-sampling/20220124-123403 git checkout 896e736b386a6365048d447a32149f03c2544d47 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash arch/hexagon/mm/ drivers/c= har/ fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ arch/hexagon/mm/vm_fault.c:36:6: warning: no previous prototype for func= tion 'do_page_fault' [-Wmissing-prototypes] void do_page_fault(unsigned long address, long cause, struct pt_regs *re= gs) ^ 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 *re= gs) ^ static = arch/hexagon/mm/vm_fault.c:162:6: warning: no previous prototype for fun= ction '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 fun= ction '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 fun= ction '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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ fs/d_path.c:318:7: warning: no previous prototype for function 'simple_d= name' [-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 intende= d 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ >> fs/statfs.c:131:3: warning: 'memcpy' will always overflow; destination b= uffer 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ In file included from fs/aio.c:29: include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdi= vision-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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_FL= AGS; ~~~~~ ^ include/linux/perf_event.h:1658:16: error: no member named 'attr' in 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_NO_CY= CLES; ~~~~~ ^ include/linux/perf_event.h:1663:16: error: no member named 'attr' in 'st= ruct 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 'st= ruct perf_event' return event->attr.branch_sample_type & PERF_SAMPLE_BRANCH_HW_IN= DEX; ~~~~~ ^ >> drivers/char/random.c:1257:41: warning: shift count >=3D width of type [= -Wshift-count-overflow] c_high =3D (sizeof(cycles) > 4) ? cycles >> 32 : 0; ^ ~~ drivers/char/random.c:1258:35: warning: shift count >=3D width of type [= -Wshift-count-overflow] j_high =3D (sizeof(now) > 4) ? now >> 32 : 0; ^ ~~ drivers/char/random.c:2272:6: warning: no previous prototype for functio= n '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 *e= vent) 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(a)lists.01.org --===============0003266806681704129==--