From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09164C636D6 for ; Mon, 20 Feb 2023 16:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjBTQT0 (ORCPT ); Mon, 20 Feb 2023 11:19:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBTQTZ (ORCPT ); Mon, 20 Feb 2023 11:19:25 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A89FD3596 for ; Mon, 20 Feb 2023 08:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676909964; x=1708445964; h=date:from:to:cc:subject:message-id:mime-version; bh=w+4Isw9FTHgo6kiRIWcKFVI3qNXC5us8bJCqY9B5Yhg=; b=L+Gm6dKrCsuI251sqLn+kvWBJaKAs126P04zYPzFb4P03Kih0ao8PNBw 0gHPxTtr49DhS/rj8zSOEM66anFcwTf2j1J0vNnZINx0IBn8H/tEO/sl8 4Gk4za/QAmYUjXPs790Qebk13lqHz7BByTvbh4YEU6Nnw2L1wNstzTRBY PDC57DcJnxViebkqOM+E9qzU3RNUgT3C+P941jLx8vp/EtijaZ6MHI6fu 72w2kXjLZCjdLku32zf0bH+oMm/nv6kY7NWoa4EysiigA8i+196ogiDRI plwyDEXpTFeEB0mjUxcpefcSQ+E8pl4MScFQXfyQWV7fZH+MNIziZ2+zJ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="312068255" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="312068255" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2023 08:19:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="735176277" X-IronPort-AV: E=Sophos;i="5.97,313,1669104000"; d="scan'208";a="735176277" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 20 Feb 2023 08:19:23 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pU8ss-000E2f-1M; Mon, 20 Feb 2023 16:19:22 +0000 Date: Tue, 21 Feb 2023 00:19:10 +0800 From: kernel test robot To: Xuan Zhuo Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, Alexander Lobakin Subject: [net-next:master 1/30] net/xdp/xsk.c:1322:16: error: implicit declaration of function 'remap_vmalloc_range'; did you mean 'ida_alloc_range'? Message-ID: <202302210041.kpPQLlNQ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 3fcdf2dfefb6313ea0395519d1784808c0b6559b commit: 9f78bf330a66cd400b3e00f370f597e9fa939207 [1/30] xsk: support use vaddr as ring config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230221/202302210041.kpPQLlNQ-lkp@intel.com/config) compiler: sh4-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://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=9f78bf330a66cd400b3e00f370f597e9fa939207 git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git git fetch --no-tags net-next master git checkout 9f78bf330a66cd400b3e00f370f597e9fa939207 # 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=sh olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash net/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302210041.kpPQLlNQ-lkp@intel.com/ All errors (new ones prefixed by >>): net/xdp/xsk.c: In function 'xsk_mmap': >> net/xdp/xsk.c:1322:16: error: implicit declaration of function 'remap_vmalloc_range'; did you mean 'ida_alloc_range'? [-Werror=implicit-function-declaration] 1322 | return remap_vmalloc_range(vma, q->ring, 0); | ^~~~~~~~~~~~~~~~~~~ | ida_alloc_range cc1: some warnings being treated as errors vim +1322 net/xdp/xsk.c 1289 1290 static int xsk_mmap(struct file *file, struct socket *sock, 1291 struct vm_area_struct *vma) 1292 { 1293 loff_t offset = (loff_t)vma->vm_pgoff << PAGE_SHIFT; 1294 unsigned long size = vma->vm_end - vma->vm_start; 1295 struct xdp_sock *xs = xdp_sk(sock->sk); 1296 struct xsk_queue *q = NULL; 1297 1298 if (READ_ONCE(xs->state) != XSK_READY) 1299 return -EBUSY; 1300 1301 if (offset == XDP_PGOFF_RX_RING) { 1302 q = READ_ONCE(xs->rx); 1303 } else if (offset == XDP_PGOFF_TX_RING) { 1304 q = READ_ONCE(xs->tx); 1305 } else { 1306 /* Matches the smp_wmb() in XDP_UMEM_REG */ 1307 smp_rmb(); 1308 if (offset == XDP_UMEM_PGOFF_FILL_RING) 1309 q = READ_ONCE(xs->fq_tmp); 1310 else if (offset == XDP_UMEM_PGOFF_COMPLETION_RING) 1311 q = READ_ONCE(xs->cq_tmp); 1312 } 1313 1314 if (!q) 1315 return -EINVAL; 1316 1317 /* Matches the smp_wmb() in xsk_init_queue */ 1318 smp_rmb(); 1319 if (size > q->ring_vmalloc_size) 1320 return -EINVAL; 1321 > 1322 return remap_vmalloc_range(vma, q->ring, 0); 1323 } 1324 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests