CC: [email protected] CC: [email protected] TO: Kan Liang <[email protected]> CC: Peter Zijlstra <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a08b41ab9e2e468647f78eb17c28e29b93006394 commit: 61b985e3e775a3a75fda04ce7ef1b1aefc4758bc perf/x86/intel: Add perf core PMU support for Sapphire Rapids date: 12 months ago :::::: branch date: 10 hours ago :::::: commit date: 12 months ago compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) In file included from arch/x86/events/intel/ds.c: arch/x86/events/perf_event.h:87:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] return event->hw.flags & PERF_X86_EVENT_TOPDOWN; ^ arch/x86/events/perf_event.h:987:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] return hwc->flags & PERF_X86_EVENT_PAIR; ^ arch/x86/events/intel/ds.c:1614:28: warning: Either the condition 'basic==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] void *next_record = basic + 1; ^ arch/x86/events/intel/ds.c:1621:12: note: Assuming that condition 'basic==NULL' is not redundant if (basic == NULL) ^ arch/x86/events/intel/ds.c:1614:28: note: Null pointer addition void *next_record = basic + 1; ^ arch/x86/events/intel/ds.c:41:16: warning: union member 'intel_x86_pebs_dse::ld_reserved' is never used. [unusedStructMember] unsigned int ld_reserved:24; ^ >> arch/x86/events/intel/ds.c:45:16: warning: union member >> 'intel_x86_pebs_dse::st_reserved1' is never used. [unusedStructMember] unsigned int st_reserved1:3; ^ >> arch/x86/events/intel/ds.c:48:16: warning: union member >> 'intel_x86_pebs_dse::st_reserved2' is never used. [unusedStructMember] unsigned int st_reserved2:26; ^ >> arch/x86/events/intel/ds.c:54:16: warning: union member >> 'intel_x86_pebs_dse::ld_reserved3' is never used. [unusedStructMember] unsigned int ld_reserved3:26; ^ >> arch/x86/kernel/cpu/mce/core.c:2362:24: warning: Boolean result is used in >> bitwise operation. Clarify expression with parentheses. [clarifyCondition] if (mca_cfg.ignore_ce ^ !!new) { ^ arch/x86/kernel/cpu/mce/core.c:2389:28: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] if (mca_cfg.cmci_disabled ^ !!new) { ^ vim +45 arch/x86/events/intel/ds.c ca037701a025334 arch/x86/kernel/cpu/perf_event_intel_ds.c Peter Zijlstra 2010-03-02 30 ca037701a025334 arch/x86/kernel/cpu/perf_event_intel_ds.c Peter Zijlstra 2010-03-02 31 */ ca037701a025334 arch/x86/kernel/cpu/perf_event_intel_ds.c Peter Zijlstra 2010-03-02 32 f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 33 union intel_x86_pebs_dse { f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 34 u64 val; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 35 struct { f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 36 unsigned int ld_dse:4; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 37 unsigned int ld_stlb_miss:1; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 38 unsigned int ld_locked:1; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 39 unsigned int ld_data_blk:1; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 40 unsigned int ld_addr_blk:1; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 41 unsigned int ld_reserved:24; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 42 }; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 43 struct { f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 44 unsigned int st_l1d_hit:1; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 @45 unsigned int st_reserved1:3; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 46 unsigned int st_stlb_miss:1; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 47 unsigned int st_locked:1; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 @48 unsigned int st_reserved2:26; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 49 }; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 50 struct { 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 51 unsigned int st_lat_dse:4; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 52 unsigned int st_lat_stlb_miss:1; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 53 unsigned int st_lat_locked:1; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 @54 unsigned int ld_reserved3:26; 61b985e3e775a3a arch/x86/events/intel/ds.c Kan Liang 2021-01-28 55 }; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 56 }; f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 57 f20093eef5f7843 arch/x86/kernel/cpu/perf_event_intel_ds.c Stephane Eranian 2013-01-24 58 :::::: The code at line 45 was first introduced by commit :::::: f20093eef5f7843a25adfc0512617d4b1ff1aa6e perf/x86: Add memory profiling via PEBS Load Latency :::::: TO: Stephane Eranian <[email protected]> :::::: CC: Arnaldo Carvalho de Melo <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
