mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [tip:timers/cleanups 5/10] kernel/time/timer_list.c:49:77: error: macro "ACCESS_PRIVATE" requires 2 arguments, but only 1 given
@ 2025-04-04 17:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-04 17:35 UTC (permalink / raw)
  To: Nam Cao; +Cc: oe-kbuild-all, linux-kernel, x86, Thomas Gleixner

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/cleanups
head:   5c4da3a96bf484f965057c281f1ef48ac46987bc
commit: 9453228aa82f20c07670d22c3d54f1be6c4244b4 [5/10] hrtimers: Make callback function pointer private
config: arm-randconfig-002-20250404 (https://download.01.org/0day-ci/archive/20250405/202504050305.zbYN7qiW-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250405/202504050305.zbYN7qiW-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/202504050305.zbYN7qiW-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/time/timer_list.c: In function 'print_timer':
>> kernel/time/timer_list.c:49:77: error: macro "ACCESS_PRIVATE" requires 2 arguments, but only 1 given
     SEQ_printf(m, " #%d: <%p>, %ps", idx, taddr, ACCESS_PRIVATE(timer->function));
                                                                                ^
>> kernel/time/timer_list.c:49:47: error: 'ACCESS_PRIVATE' undeclared (first use in this function); did you mean 'DQF_PRIVATE'?
     SEQ_printf(m, " #%d: <%p>, %ps", idx, taddr, ACCESS_PRIVATE(timer->function));
                                                  ^~~~~~~~~~~~~~
                                                  DQF_PRIVATE
   kernel/time/timer_list.c:49:47: note: each undeclared identifier is reported only once for each function it appears in


vim +/ACCESS_PRIVATE +49 kernel/time/timer_list.c

    44	
    45	static void
    46	print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer,
    47		    int idx, u64 now)
    48	{
  > 49		SEQ_printf(m, " #%d: <%p>, %ps", idx, taddr, ACCESS_PRIVATE(timer->function));
    50		SEQ_printf(m, ", S:%02x", timer->state);
    51		SEQ_printf(m, "\n");
    52		SEQ_printf(m, " # expires at %Lu-%Lu nsecs [in %Ld to %Ld nsecs]\n",
    53			(unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)),
    54			(unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)),
    55			(long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now),
    56			(long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now));
    57	}
    58	

-- 
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:[~2025-04-04 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-04 17:35 [tip:timers/cleanups 5/10] kernel/time/timer_list.c:49:77: error: macro "ACCESS_PRIVATE" requires 2 arguments, but only 1 given 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

all inboxes | Powered by JetHome®