* [trace:trace/for-next 37/37] include/trace/events/qdisc.h:91:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *'
@ 2024-03-15 3:16 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-15 3:16 UTC (permalink / raw)
To: Steven Rostedt (Google); +Cc: llvm, oe-kbuild-all
tree: git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace trace/for-next
head: eb871b9424cba3ba1466bb4db2a064d606430541
commit: eb871b9424cba3ba1466bb4db2a064d606430541 [37/37] tracing: Use strcmp() in __assign_str() WARN_ON() check
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240315/202403151109.KpRssux5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240315/202403151109.KpRssux5-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/202403151109.KpRssux5-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/core/net-traces.c:37:
In file included from include/trace/events/qdisc.h:153:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:419:
>> include/trace/events/qdisc.h:91:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *' [-Werror,-Wincompatible-pointer-types]
__assign_str(dev, qdisc_dev(q));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage6_event_callback.h:39:16: note: expanded from macro '__assign_str'
strcmp((src), __data_offsets.dst##_ptr_) : \
^
include/asm-generic/bug.h:148:18: note: expanded from macro 'WARN_ON_ONCE'
DO_ONCE_LITE_IF(condition, WARN_ON, 1)
^
include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
bool __ret_do_once = !!(condition); \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(assign), \
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^
include/trace/trace_events.h:402:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/string.h:86:31: note: passing argument to parameter here
extern int strcmp(const char *,const char *);
^
In file included from net/core/net-traces.c:37:
In file included from include/trace/events/qdisc.h:153:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:419:
include/trace/events/qdisc.h:116:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *' [-Werror,-Wincompatible-pointer-types]
__assign_str(dev, qdisc_dev(q));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage6_event_callback.h:39:16: note: expanded from macro '__assign_str'
strcmp((src), __data_offsets.dst##_ptr_) : \
^
include/asm-generic/bug.h:148:18: note: expanded from macro 'WARN_ON_ONCE'
DO_ONCE_LITE_IF(condition, WARN_ON, 1)
^
include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
bool __ret_do_once = !!(condition); \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(assign), \
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^
include/trace/trace_events.h:402:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/string.h:86:31: note: passing argument to parameter here
extern int strcmp(const char *,const char *);
^
In file included from net/core/net-traces.c:37:
In file included from include/trace/events/qdisc.h:153:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:75:
>> include/trace/events/qdisc.h:91:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *' [-Werror,-Wincompatible-pointer-types]
__assign_str(dev, qdisc_dev(q));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage6_event_callback.h:39:16: note: expanded from macro '__assign_str'
strcmp((src), __data_offsets.dst##_ptr_) : \
^
include/asm-generic/bug.h:148:18: note: expanded from macro 'WARN_ON_ONCE'
DO_ONCE_LITE_IF(condition, WARN_ON, 1)
^
include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
bool __ret_do_once = !!(condition); \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(assign), \
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^
include/trace/perf.h:51:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/string.h:86:31: note: passing argument to parameter here
extern int strcmp(const char *,const char *);
^
In file included from net/core/net-traces.c:37:
In file included from include/trace/events/qdisc.h:153:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:75:
include/trace/events/qdisc.h:116:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *' [-Werror,-Wincompatible-pointer-types]
__assign_str(dev, qdisc_dev(q));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/stages/stage6_event_callback.h:39:16: note: expanded from macro '__assign_str'
strcmp((src), __data_offsets.dst##_ptr_) : \
^
include/asm-generic/bug.h:148:18: note: expanded from macro 'WARN_ON_ONCE'
DO_ONCE_LITE_IF(condition, WARN_ON, 1)
^
include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
bool __ret_do_once = !!(condition); \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
PARAMS(assign), \
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/tracepoint.h:107:25: note: expanded from macro 'PARAMS'
#define PARAMS(args...) args
^
include/trace/perf.h:51:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/string.h:86:31: note: passing argument to parameter here
extern int strcmp(const char *,const char *);
^
4 errors generated.
vim +91 include/trace/events/qdisc.h
a34dac0b905520 Cong Wang 2020-05-26 78
a34dac0b905520 Cong Wang 2020-05-26 79 TP_PROTO(struct Qdisc *q),
a34dac0b905520 Cong Wang 2020-05-26 80
a34dac0b905520 Cong Wang 2020-05-26 81 TP_ARGS(q),
a34dac0b905520 Cong Wang 2020-05-26 82
a34dac0b905520 Cong Wang 2020-05-26 83 TP_STRUCT__entry(
a34dac0b905520 Cong Wang 2020-05-26 84 __string( dev, qdisc_dev(q) )
a34dac0b905520 Cong Wang 2020-05-26 85 __string( kind, q->ops->id )
a34dac0b905520 Cong Wang 2020-05-26 86 __field( u32, parent )
a34dac0b905520 Cong Wang 2020-05-26 87 __field( u32, handle )
a34dac0b905520 Cong Wang 2020-05-26 88 ),
a34dac0b905520 Cong Wang 2020-05-26 89
a34dac0b905520 Cong Wang 2020-05-26 90 TP_fast_assign(
a34dac0b905520 Cong Wang 2020-05-26 @91 __assign_str(dev, qdisc_dev(q));
a34dac0b905520 Cong Wang 2020-05-26 92 __assign_str(kind, q->ops->id);
a34dac0b905520 Cong Wang 2020-05-26 93 __entry->parent = q->parent;
a34dac0b905520 Cong Wang 2020-05-26 94 __entry->handle = q->handle;
a34dac0b905520 Cong Wang 2020-05-26 95 ),
a34dac0b905520 Cong Wang 2020-05-26 96
a34dac0b905520 Cong Wang 2020-05-26 97 TP_printk("dev=%s kind=%s parent=%x:%x handle=%x:%x", __get_str(dev),
a34dac0b905520 Cong Wang 2020-05-26 98 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent),
a34dac0b905520 Cong Wang 2020-05-26 99 TC_H_MAJ(__entry->handle) >> 16, TC_H_MIN(__entry->handle))
a34dac0b905520 Cong Wang 2020-05-26 100 );
a34dac0b905520 Cong Wang 2020-05-26 101
:::::: The code at line 91 was first introduced by commit
:::::: a34dac0b9055202cf9c64e08d8d8dc5e23029d3a net_sched: add tracepoints for qdisc_reset() and qdisc_destroy()
:::::: TO: Cong Wang <xiyou.wangcong@gmail.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
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:[~2024-03-15 3:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-15 3:16 [trace:trace/for-next 37/37] include/trace/events/qdisc.h:91:3: error: incompatible pointer types passing 'struct net_device *' to parameter of type 'const char *' 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;
as well as URLs for NNTP newsgroup(s).