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 B8BD1C61DA4 for ; Thu, 2 Feb 2023 23:03:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232671AbjBBXDF (ORCPT ); Thu, 2 Feb 2023 18:03:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjBBXDE (ORCPT ); Thu, 2 Feb 2023 18:03:04 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456366A6B; Thu, 2 Feb 2023 15:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675378982; x=1706914982; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=53RNLMoQEXs/8h3PKrRplWnOeJwQKRWrDky6pO2LlBw=; b=NZyXMBrwOduJtrn6NzW/2Z45Mhmg9L+MxMy4LJfQQwbGN3KDr5h9GJqN z3d0EhbkiM1JeIaFPMnhnARKZyVlFLJF6QnyOgIPQaAnpuP3f3/3L7BhE 2X38qUP9HvoXypgb1dmDd3yJefIjx+GZ07ilAEken7Vdo8qT5tVOmjMQm +wUVl6Nb5f81DlSpw99ZgpjK49DKzSYQabG0vZc5TLxRCxAAWuSJtWMnT ibjn3zzuAYjV1zba2iMfLNC8CE09OhqCYj7hHGHrCK/fyyy0zdcSeq1Ei YgJ8T/3c0m/JV4+iGZNO96jDHJ57m4Q8PCp2YK1U9I0UccpPoNP7yNOXl g==; X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="316589870" X-IronPort-AV: E=Sophos;i="5.97,268,1669104000"; d="scan'208";a="316589870" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2023 15:03:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10609"; a="695944506" X-IronPort-AV: E=Sophos;i="5.97,268,1669104000"; d="scan'208";a="695944506" Received: from lkp-server01.sh.intel.com (HELO ffa7f14d1d0f) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 02 Feb 2023 15:02:55 -0800 Received: from kbuild by ffa7f14d1d0f with local (Exim 4.96) (envelope-from ) id 1pNibW-0006vo-1T; Thu, 02 Feb 2023 23:02:54 +0000 Date: Fri, 3 Feb 2023 07:02:24 +0800 From: kernel test robot To: Xuan Zhuo , netdev@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , Jason Wang , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Sebastian Andrzej Siewior , Menglong Dong , Kuniyuki Iwashima , Petr Machata , virtualization@lists.linux-foundation.org, bpf@vger.kernel.org Subject: Re: [PATCH 22/33] virtio_net: xsk: introduce xsk disable Message-ID: <202302030652.8JBKpzat-lkp@intel.com> References: <20230202110058.130695-23-xuanzhuo@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230202110058.130695-23-xuanzhuo@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Xuan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] [also build test WARNING on next-20230202] [cannot apply to net/master mst-vhost/linux-next linus/master v6.2-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707 patch link: https://lore.kernel.org/r/20230202110058.130695-23-xuanzhuo%40linux.alibaba.com patch subject: [PATCH 22/33] virtio_net: xsk: introduce xsk disable config: nios2-randconfig-s033-20230202 (https://download.01.org/0day-ci/archive/20230203/202302030652.8JBKpzat-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/3c385ac45368b585d2ca1a45263b4a0536cef0dd git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707 git checkout 3c385ac45368b585d2ca1a45263b4a0536cef0dd # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 SHELL=/bin/bash drivers/net/virtio/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/net/virtio/xsk.c:133:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct xsk_buff_pool *pool @@ got struct xsk_buff_pool [noderef] __rcu *pool @@ drivers/net/virtio/xsk.c:133:35: sparse: expected struct xsk_buff_pool *pool drivers/net/virtio/xsk.c:133:35: sparse: got struct xsk_buff_pool [noderef] __rcu *pool vim +133 drivers/net/virtio/xsk.c 116 117 static int virtnet_xsk_pool_disable(struct net_device *dev, u16 qid) 118 { 119 struct virtnet_info *vi = netdev_priv(dev); 120 struct receive_queue *rq; 121 struct send_queue *sq; 122 int err1, err2; 123 124 if (qid >= vi->curr_queue_pairs) 125 return -EINVAL; 126 127 sq = &vi->sq[qid]; 128 rq = &vi->rq[qid]; 129 130 virtio_dma_unmap(&vi->vdev->dev, sq->xsk.hdr_dma_address, vi->hdr_len, 131 DMA_TO_DEVICE); 132 > 133 xsk_pool_dma_unmap(sq->xsk.pool, 0); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests