All of lore.kernel.org
 help / color / mirror / Atom feed
* [ieee1394-linux1394:topic/packet-header-serdes 10/13] drivers/firewire/./trace.h:34:40: warning: cast from pointer to integer of different size
@ 2024-04-18 18:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-18 18:00 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: oe-kbuild-all, linux1394-devel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git topic/packet-header-serdes
head:   3fd0015019a0f43eb7c75cb201401277f26d25c8
commit: e406eaaef9d5c80a3b7651fadc1a048659f18029 [10/13] firewire: core: add tracepoints events for asynchronous outbound request
config: i386-buildonly-randconfig-004-20240419 (https://download.01.org/0day-ci/archive/20240419/202404190129.h6cnnwQw-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240419/202404190129.h6cnnwQw-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/202404190129.h6cnnwQw-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:102,
                    from drivers/firewire/trace.h:95,
                    from drivers/firewire/trace.c:5:
   drivers/firewire/./trace.h: In function 'trace_event_raw_event_async_request_outbound_initiate':
>> drivers/firewire/./trace.h:34:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      34 |                 __entry->transaction = (u64)transaction;
         |                                        ^
   include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
     402 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/firewire/./trace.h:16:1: note: in expansion of macro 'TRACE_EVENT'
      16 | TRACE_EVENT(async_request_outbound_initiate,
         | ^~~~~~~~~~~
   drivers/firewire/./trace.h:33:9: note: in expansion of macro 'TP_fast_assign'
      33 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/firewire/./trace.h: In function 'trace_event_raw_event_async_request_outbound_complete':
   drivers/firewire/./trace.h:75:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      75 |                 __entry->transaction = (u64)transaction;
         |                                        ^
   include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
     402 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/firewire/./trace.h:63:1: note: in expansion of macro 'TRACE_EVENT'
      63 | TRACE_EVENT(async_request_outbound_complete,
         | ^~~~~~~~~~~
   drivers/firewire/./trace.h:74:9: note: in expansion of macro 'TP_fast_assign'
      74 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   In file included from include/trace/define_trace.h:103:
   drivers/firewire/./trace.h: In function 'perf_trace_async_request_outbound_initiate':
>> drivers/firewire/./trace.h:34:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      34 |                 __entry->transaction = (u64)transaction;
         |                                        ^
   include/trace/perf.h:51:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/firewire/./trace.h:16:1: note: in expansion of macro 'TRACE_EVENT'
      16 | TRACE_EVENT(async_request_outbound_initiate,
         | ^~~~~~~~~~~
   drivers/firewire/./trace.h:33:9: note: in expansion of macro 'TP_fast_assign'
      33 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~
   drivers/firewire/./trace.h: In function 'perf_trace_async_request_outbound_complete':
   drivers/firewire/./trace.h:75:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      75 |                 __entry->transaction = (u64)transaction;
         |                                        ^
   include/trace/perf.h:51:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
      51 |         { assign; }                                                     \
         |           ^~~~~~
   include/trace/trace_events.h:44:30: note: in expansion of macro 'PARAMS'
      44 |                              PARAMS(assign),                   \
         |                              ^~~~~~
   drivers/firewire/./trace.h:63:1: note: in expansion of macro 'TRACE_EVENT'
      63 | TRACE_EVENT(async_request_outbound_complete,
         | ^~~~~~~~~~~
   drivers/firewire/./trace.h:74:9: note: in expansion of macro 'TP_fast_assign'
      74 |         TP_fast_assign(
         |         ^~~~~~~~~~~~~~


vim +34 drivers/firewire/./trace.h

    15	
    16	TRACE_EVENT(async_request_outbound_initiate,
    17		TP_PROTO(const struct fw_card *card, const struct fw_transaction *transaction,
    18			 const struct fw_packet *packet, const u32 *data, size_t data_count),
    19		TP_ARGS(card, transaction, packet, data, data_count),
    20		TP_STRUCT__entry(
    21			__field(u64, transaction)
    22			__field(u8, scode)
    23			__field(u8, generation)
    24			__field(u16, destination)
    25			__field(u8, tlabel)
    26			__field(u8, retry)
    27			__field(u8, tcode)
    28			__field(u8, priority)
    29			__field(u16, source)
    30			__field(u64, offset)
    31			__dynamic_array(u32, data, data_count)
    32		),
    33		TP_fast_assign(
  > 34			__entry->transaction = (u64)transaction;
    35			__entry->scode = packet->speed;
    36			__entry->generation = packet->generation;
    37			__entry->destination = async_header_get_destination(packet->header);
    38			__entry->tlabel = async_header_get_tlabel(packet->header);
    39			__entry->retry = async_header_get_retry(packet->header);
    40			__entry->tcode = async_header_get_tcode(packet->header);
    41			__entry->priority = async_header_get_priority(packet->header);
    42			__entry->source = async_header_get_source(packet->header);
    43			__entry->offset = async_header_get_offset(packet->header);
    44			memcpy(__get_dynamic_array(data), data, __get_dynamic_array_len(data));
    45		),
    46		TP_printk(
    47			"transaction=0x%llx scode=%u generation=%u dst_id=0x%04x tlabel=%u retry=%u tcode=%u priority=%u src_id=0x%04x offset=0x%012llx data=%s",
    48			__entry->transaction,
    49			__entry->scode,
    50			__entry->generation,
    51			__entry->destination,
    52			__entry->tlabel,
    53			__entry->retry,
    54			__entry->tcode,
    55			__entry->priority,
    56			__entry->source,
    57			__entry->offset,
    58			__print_array(__get_dynamic_array(data),
    59				      __get_dynamic_array_len(data) / sizeof(u32), sizeof(u32))
    60		)
    61	)
    62	

-- 
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-04-18 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18 18:00 [ieee1394-linux1394:topic/packet-header-serdes 10/13] drivers/firewire/./trace.h:34:40: warning: cast from pointer to integer of different size 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.