From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id 390397E70A for ; Mon, 28 Mar 2022 23:07:35 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=L2ypgSA8; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648508855; x=1680044855; h=date:from:to:cc:subject:message-id:mime-version; bh=tvAFI6iISHckMFlraLRgHpijQiwX/o6AHylRpEbVP+8=; b=L2ypgSA8tBAx99/g+omwp/rjpCbwwpoGzA+UFu3KC6WgZSawfVauKLUu wMWaLCuXgpO2r0uZGUnaaRUY0LoYseDjpxFerwtG5prOd+lafQim69V7r Mf7UCxCae7oYwrq/d1tqjnlu7E0Bae0baGpsoSo6KcdpuT+/zAPf08c6S kdhrY+ZnmStmQR452y8YRMkSyfb6KXNodV20PgvPRSIfkDkLclnPhkAI7 h4AAt31jcit6JMGKElogeSmTxII75vDSH1UQkakTz1T5kHCvP3LUqrBaT 5DrJCPDaKjlRVkJr09h8HVTaD3GlzDR4HPNYS65UFNMa56LTWtOTkCg+h A==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="259089814" X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="259089814" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 16:07:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="546147297" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 28 Mar 2022 16:07:32 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nYySR-0002P2-Us; Mon, 28 Mar 2022 23:07:31 +0000 Date: Tue, 29 Mar 2022 07:06:53 +0800 From: kernel test robot To: Jens Axboe Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:axboe/linux-block/sock-nolock 6/6] fs/io_uring.c:8999:9: error: implicit declaration of function 'io_sock_nolock_clear' Message-ID: <202203290706.2CmUdsqb-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/sock-nolock head: 90b2144118aabeddabb82f22e07b87da068c54cd commit: 90b2144118aabeddabb82f22e07b87da068c54cd [6/6] io_uring: mark accept direct socket as no-lock config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220329/202203290706.2CmUdsqb-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.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/90b2144118aabeddabb82f22e07b87da068c54cd git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block axboe/linux-block/sock-nolock git checkout 90b2144118aabeddabb82f22e07b87da068c54cd # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/io_uring.c: In function '__io_submit_flush_completions': fs/io_uring.c:2705:40: warning: variable 'prev' set but not used [-Wunused-but-set-variable] 2705 | struct io_wq_work_node *node, *prev; | ^~~~ fs/io_uring.c: In function 'io_rsrc_file_put': >> fs/io_uring.c:8999:9: error: implicit declaration of function 'io_sock_nolock_clear' [-Werror=implicit-function-declaration] 8999 | io_sock_nolock_clear(file); | ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/io_sock_nolock_clear +8999 fs/io_uring.c 8938 8939 static void io_rsrc_file_put(struct io_ring_ctx *ctx, struct io_rsrc_put *prsrc) 8940 { 8941 struct file *file = prsrc->file; 8942 #if defined(CONFIG_UNIX) 8943 struct sock *sock = ctx->ring_sock->sk; 8944 struct sk_buff_head list, *head = &sock->sk_receive_queue; 8945 struct sk_buff *skb; 8946 int i; 8947 8948 __skb_queue_head_init(&list); 8949 8950 /* 8951 * Find the skb that holds this file in its SCM_RIGHTS. When found, 8952 * remove this entry and rearrange the file array. 8953 */ 8954 skb = skb_dequeue(head); 8955 while (skb) { 8956 struct scm_fp_list *fp; 8957 8958 fp = UNIXCB(skb).fp; 8959 for (i = 0; i < fp->count; i++) { 8960 int left; 8961 8962 if (fp->fp[i] != file) 8963 continue; 8964 8965 unix_notinflight(fp->user, fp->fp[i]); 8966 left = fp->count - 1 - i; 8967 if (left) { 8968 memmove(&fp->fp[i], &fp->fp[i + 1], 8969 left * sizeof(struct file *)); 8970 } 8971 fp->count--; 8972 if (!fp->count) { 8973 kfree_skb(skb); 8974 skb = NULL; 8975 } else { 8976 __skb_queue_tail(&list, skb); 8977 } 8978 io_sock_nolock_clear(file); 8979 fput(file); 8980 file = NULL; 8981 break; 8982 } 8983 8984 if (!file) 8985 break; 8986 8987 __skb_queue_tail(&list, skb); 8988 8989 skb = skb_dequeue(head); 8990 } 8991 8992 if (skb_peek(&list)) { 8993 spin_lock_irq(&head->lock); 8994 while ((skb = __skb_dequeue(&list)) != NULL) 8995 __skb_queue_tail(head, skb); 8996 spin_unlock_irq(&head->lock); 8997 } 8998 #else > 8999 io_sock_nolock_clear(file); 9000 fput(file); 9001 #endif 9002 } 9003 -- 0-DAY CI Kernel Test Service https://01.org/lkp