* [ieee1394-linux1394:topic/tracepoints-async-request-response 16/19] drivers/firewire/core-transaction.c:177:47: warning: cast from pointer to integer of different size
@ 2024-04-29 6:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-29 6:01 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/tracepoints-async-request-response
head: 973721534ecdb2a088f602d6f3aac52966e1849b
commit: 5aa49e400d57a9e36f4c0c02961cfe86f71248ee [16/19] firewire: core: add tracepoints events for asynchronous outbound request
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240429/202404291342.gvZ9s00l-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240429/202404291342.gvZ9s00l-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/202404291342.gvZ9s00l-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/firewire/core-transaction.c: In function 'transmit_complete_callback':
>> drivers/firewire/core-transaction.c:177:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
177 | trace_async_request_outbound_complete((u64)t, status, packet->speed, packet->generation,
| ^
drivers/firewire/core-transaction.c: In function '__fw_send_request':
drivers/firewire/core-transaction.c:401:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
401 | trace_async_request_outbound_initiate((u64)t, speed, generation, t->packet.header, payload,
| ^
vim +177 drivers/firewire/core-transaction.c
170
171 static void transmit_complete_callback(struct fw_packet *packet,
172 struct fw_card *card, int status)
173 {
174 struct fw_transaction *t =
175 container_of(packet, struct fw_transaction, packet);
176
> 177 trace_async_request_outbound_complete((u64)t, status, packet->speed, packet->generation,
178 packet->timestamp);
179
180 switch (status) {
181 case ACK_COMPLETE:
182 close_transaction(t, card, RCODE_COMPLETE, packet->timestamp);
183 break;
184 case ACK_PENDING:
185 {
186 t->split_timeout_cycle =
187 compute_split_timeout_timestamp(card, packet->timestamp) & 0xffff;
188 start_split_transaction_timeout(t, card);
189 break;
190 }
191 case ACK_BUSY_X:
192 case ACK_BUSY_A:
193 case ACK_BUSY_B:
194 close_transaction(t, card, RCODE_BUSY, packet->timestamp);
195 break;
196 case ACK_DATA_ERROR:
197 close_transaction(t, card, RCODE_DATA_ERROR, packet->timestamp);
198 break;
199 case ACK_TYPE_ERROR:
200 close_transaction(t, card, RCODE_TYPE_ERROR, packet->timestamp);
201 break;
202 default:
203 /*
204 * In this case the ack is really a juju specific
205 * rcode, so just forward that to the callback.
206 */
207 close_transaction(t, card, status, packet->timestamp);
208 break;
209 }
210 }
211
--
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-29 6:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29 6:01 [ieee1394-linux1394:topic/tracepoints-async-request-response 16/19] drivers/firewire/core-transaction.c:177:47: 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.