tree:
https://github.com/jimc/linux.git dyn-drm-trc
head: a78f403dcd7765c2691998346cffdd311310e1d0
commit: dad7758807ceb3a05385b6f9d09b58cbab8ee9ab [17/21] dyndbg: add
write-events-to-tracefs code
config: x86_64-rhel-8.3-func
(
https://download.01.org/0day-ci/archive/20220209/202202092218.3FyLGNfM-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/jimc/linux/commit/dad7758807ceb3a05385b6f9d09b58cbab8e...
git remote add jimc
https://github.com/jimc/linux.git
git fetch --no-tags jimc dyn-drm-trc
git checkout dad7758807ceb3a05385b6f9d09b58cbab8ee9ab
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the jimc/dyn-drm-trc HEAD a78f403dcd7765c2691998346cffdd311310e1d0 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
lib/dynamic_debug.c: In function 'ddebug_trace':
> lib/dynamic_debug.c:754:6: error: assignment to 'struct
dynamic_trace_buf *' from incompatible pointer type 'struct ddebug_trace_buf
*' [-Werror=incompatible-pointer-types]
754 | buf =
this_cpu_ptr(ddebug_trace_bufs.bufs) + bufidx;
| ^
> lib/dynamic_debug.c:756:22: error: dereferencing pointer to
incomplete type 'struct dynamic_trace_buf'
756 | len =
vscnprintf(buf->buf, sizeof(buf->buf), fmt, args);
| ^~
cc1: some warnings being treated as errors
vim +754 lib/dynamic_debug.c
737
738 static void ddebug_trace(const char *fmt, va_list args)
739 {
740 struct dynamic_trace_buf *buf;
741 int bufidx;
742 int len;
743
744 preempt_disable_notrace();
745
746 bufidx = __this_cpu_inc_return(ddebug_trace_reserve) - 1;
747
748 if (WARN_ON_ONCE(bufidx > DYNAMIC_TRACE_NESTING))
749 goto out;
750
751 /* For the same reasons as in __ftrace_trace_stack(). */
752 barrier();
753
754 buf = this_cpu_ptr(ddebug_trace_bufs.bufs) + bufidx;
755
756 len = vscnprintf(buf->buf, sizeof(buf->buf), fmt, args);
757 trace_console(buf->buf, len);
758
759 out:
760 /* As above. */
761 barrier();
762 __this_cpu_dec(ddebug_trace_reserve);
763 preempt_enable_notrace();
764 }
765
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org