tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-5 head: 1f5e9c52a8b3bfe1640d577aa4c14f14899570a5 commit: e4d4990ff80e3634385a358e9b251a4351bb528c [46/77] rxrpc: Allow a delay to be injected into packet reception config: powerpc-allmodconfig compiler: powerpc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/e4d4990ff80e3634385a358e9b251a4351bb528c git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-5 git checkout e4d4990ff80e3634385a358e9b251a4351bb528c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash net/rxrpc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): net/rxrpc/io_thread.c: In function 'rxrpc_io_thread': >> net/rxrpc/io_thread.c:427:17: error: 'now' undeclared (first use in this function); did you mean 'nop'? 427 | now = ktime_get_real(); | ^~~ | nop net/rxrpc/io_thread.c:427:17: note: each undeclared identifier is reported only once for each function it appears in vim +427 net/rxrpc/io_thread.c 372 373 /* 374 * I/O and event handling thread. 375 */ 376 int rxrpc_io_thread(void *data) 377 { 378 struct sk_buff_head rx_queue; 379 struct rxrpc_local *local = data; 380 struct rxrpc_call *call; 381 struct sk_buff *skb; 382 383 skb_queue_head_init(&rx_queue); 384 385 set_user_nice(current, MIN_NICE); 386 387 for (;;) { 388 rxrpc_inc_stat(local->rxnet, stat_io_loop); 389 390 /* Deal with calls that want immediate attention. */ 391 if ((call = list_first_entry_or_null(&local->call_attend_q, 392 struct rxrpc_call, 393 attend_link))) { 394 spin_lock_bh(&local->lock); 395 list_del_init(&call->attend_link); 396 spin_unlock_bh(&local->lock); 397 398 trace_rxrpc_call_poked(call); 399 rxrpc_input_call_event(call, NULL); 400 rxrpc_put_call(call, rxrpc_call_put_poke); 401 continue; 402 } 403 404 /* Process received packets and errors. */ 405 if ((skb = __skb_dequeue(&rx_queue))) { 406 switch (skb->mark) { 407 case RXRPC_SKB_MARK_PACKET: 408 skb->priority = 0; 409 rxrpc_input_packet(local, skb); 410 trace_rxrpc_rx_done(skb->mark, skb->priority); 411 rxrpc_free_skb(skb, rxrpc_skb_freed); 412 break; 413 case RXRPC_SKB_MARK_ERROR: 414 rxrpc_input_error(local, skb); 415 rxrpc_free_skb(skb, rxrpc_skb_freed); 416 break; 417 default: 418 WARN_ON_ONCE(1); 419 rxrpc_free_skb(skb, rxrpc_skb_freed); 420 break; 421 } 422 continue; 423 } 424 425 /* Inject a delay into packets if requested. */ 426 #ifdef CONFIG_AF_RXRPC_INJECT_RX_DELAY > 427 now = ktime_get_real(); 428 while ((skb = skb_peek(&local->rx_delay_queue))) { 429 if (ktime_before(now, skb->tstamp)) 430 break; 431 skb = skb_dequeue(&local->rx_delay_queue); 432 skb_queue_tail(&local->rx_queue, skb); 433 } 434 #endif 435 436 if (!skb_queue_empty(&local->rx_queue)) { 437 spin_lock_irq(&local->rx_queue.lock); 438 skb_queue_splice_tail_init(&local->rx_queue, &rx_queue); 439 spin_unlock_irq(&local->rx_queue.lock); 440 continue; 441 } 442 443 set_current_state(TASK_INTERRUPTIBLE); 444 if (!skb_queue_empty(&local->rx_queue) || 445 !list_empty(&local->call_attend_q)) { 446 __set_current_state(TASK_RUNNING); 447 continue; 448 } 449 450 if (kthread_should_stop()) 451 break; 452 -- 0-DAY CI Kernel Test Service https://01.org/lkp