tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-next head: 8b3d8f13ccbe35c57860620d82b12e1179a36fae commit: f00af433a94185659209a1b51532480545381fff [2/31] rxrpc: Implement an in-kernel rxperf server for testing purposes config: i386-allyesconfig compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/f00af433a94185659209a1b51532480545381fff git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-next git checkout f00af433a94185659209a1b51532480545381fff # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/ net/rxrpc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/rxrpc/rxperf.c:495:9: warning: comparison of distinct pointer types ('typeof (reply_len) *' (aka 'unsigned int *') and 'typeof (((1UL) << 12)) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types] len = min(reply_len, PAGE_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:45:19: note: expanded from macro 'min' #define min(x, y) __careful_cmp(x, y, <) ^~~~~~~~~~~~~~~~~~~~~~ include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp' __builtin_choose_expr(__safe_cmp(x, y), \ ^~~~~~~~~~~~~~~~ include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp' (__typecheck(x, y) && __no_side_effects(x, y)) ^~~~~~~~~~~~~~~~~ include/linux/minmax.h:20:28: note: expanded from macro '__typecheck' (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ 1 warning generated. vim +495 net/rxrpc/rxperf.c 479 480 /* 481 * Process a call for which we've received the request. 482 */ 483 static int rxperf_process_call(struct rxperf_call *call) 484 { 485 struct msghdr msg = {}; 486 struct bio_vec bv[1]; 487 struct kvec iov[1]; 488 ssize_t n; 489 size_t reply_len = call->reply_len, len; 490 491 rxrpc_kernel_set_tx_length(rxperf_socket, call->rxcall, 492 reply_len + sizeof(rxperf_magic_cookie)); 493 494 while (reply_len > 0) { > 495 len = min(reply_len, PAGE_SIZE); 496 bv[0].bv_page = ZERO_PAGE(0); 497 bv[0].bv_offset = 0; 498 bv[0].bv_len = len; 499 iov_iter_bvec(&msg.msg_iter, WRITE, bv, 1, len); 500 msg.msg_flags = MSG_MORE; 501 n = rxrpc_kernel_send_data(rxperf_socket, call->rxcall, &msg, 502 len, rxperf_notify_end_reply_tx); 503 if (n < 0) 504 return n; 505 if (n == 0) 506 return -EIO; 507 reply_len -= n; 508 } 509 510 len = sizeof(rxperf_magic_cookie); 511 iov[0].iov_base = (void *)rxperf_magic_cookie; 512 iov[0].iov_len = len; 513 iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); 514 msg.msg_flags = 0; 515 n = rxrpc_kernel_send_data(rxperf_socket, call->rxcall, &msg, len, 516 rxperf_notify_end_reply_tx); 517 if (n >= 0) 518 return 0; /* Success */ 519 520 if (n == -ENOMEM) 521 rxrpc_kernel_abort_call(rxperf_socket, call->rxcall, 522 RXGEN_SS_MARSHAL, -ENOMEM, "GOM"); 523 return n; 524 } 525 -- 0-DAY CI Kernel Test Service https://01.org/lkp