All of lore.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/missed_stats 1/12] kernel/bpf/trampoline.c:824:21: error: 'BPF_PROG_NO_START_TIME' undeclared
@ 2023-08-25  8:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-25  8:03 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/missed_stats
head:   e594b26a49255791ab295eabb5010c8cede34a5e
commit: 2808857ed76e5b13ceedcf55e13c9280f791fc33 [1/12] bpf: Move update_prog_stats to syscall object
config: arm64-randconfig-r025-20230825 (https://download.01.org/0day-ci/archive/20230825/202308251522.yUyaVXBf-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230825/202308251522.yUyaVXBf-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308251522.yUyaVXBf-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/bpf/trampoline.c: In function 'bpf_prog_start_time':
>> kernel/bpf/trampoline.c:824:21: error: 'BPF_PROG_NO_START_TIME' undeclared (first use in this function)
     824 |         u64 start = BPF_PROG_NO_START_TIME;
         |                     ^~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/trampoline.c:824:21: note: each undeclared identifier is reported only once for each function it appears in
   kernel/bpf/trampoline.c: In function '__bpf_prog_enter_lsm_cgroup':
   kernel/bpf/trampoline.c:886:16: error: 'BPF_PROG_NO_START_TIME' undeclared (first use in this function)
     886 |         return BPF_PROG_NO_START_TIME;
         |                ^~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/trampoline.c:887:1: error: control reaches end of non-void function [-Werror=return-type]
     887 | }
         | ^
   cc1: some warnings being treated as errors


vim +/BPF_PROG_NO_START_TIME +824 kernel/bpf/trampoline.c

   821	
   822	static __always_inline u64 notrace bpf_prog_start_time(void)
   823	{
 > 824		u64 start = BPF_PROG_NO_START_TIME;
   825	
   826		if (static_branch_unlikely(&bpf_stats_enabled_key)) {
   827			start = sched_clock();
   828			if (unlikely(!start))
   829				start = BPF_PROG_NO_START_TIME;
   830		}
   831		return start;
   832	}
   833	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-08-25  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25  8:03 [jolsa-perf:bpf/missed_stats 1/12] kernel/bpf/trampoline.c:824:21: error: 'BPF_PROG_NO_START_TIME' undeclared 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.