Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6726088rwd; Tue, 6 Jun 2023 00:40:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uWzWVA6GX2Uy8X/m+gllU5k2fcisRaV9rKVGy5ydFXKxOWBzM0c/mKzjpT6V6UsFDvscL X-Received: by 2002:a17:902:f54e:b0:1b0:524b:e597 with SMTP id h14-20020a170902f54e00b001b0524be597mr1757628plf.2.1686037250250; Tue, 06 Jun 2023 00:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686037250; cv=none; d=google.com; s=arc-20160816; b=kE2tRUOtfCj/KPZUWtuXYj5HaQDBWjAy1YjifreqplHBwDjLB3Pjgx7xe446yxHlzm LWzvSRLXFkCezKQbovbU0ISLw49SNoHx0PkuWknKqO7+2Wsml8gLRZ5yMlhNxXQF0gzl qqFcM5CJpzHEBr4nJM1PNlllKwZ5fq1byqcQ/T5xD7+UaYV6yhO67xSj+i+TOKRj4OlG 7vUa2mzFGrLMGvGuxUK3dQrWJj3uSWw3awINXjXxCCpvaiGXJLnQaMUmxQhavn/fcGpq sIwJKE/oBlTpzm1bSVpnZXiM7cdcbeGsFBpEXfd02CSA/NdXKO/tymtMJZJsZddBIGqz xEVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nMyfi/k70VW9ZUxbsyo5EsI3yxcrWk888w+V0HSO+JA=; b=nSvbcUc96O6Qsw8IL3Ml/iTqGDBOVXH0i8zk2VZuBUTegsosY0Zn3MHQj3tnWwMf1T lYMT1trwbUvn3fFv69dca7HW4KE4xaXFOYYwkgtPfyC23WyvV4LbZiXJgP4lgYbTNbIE wJNv3eeN514QE0RWd8GPHG/57/vsyoqYOlDCqf3ip4fgdBgS9ZKgJBM1AaDxHE2Jtc0q v+YRsFc0EPf//pQz9qT37+/y2pkH6PxfK3oyKcqfG1mmlx7lOmZDUSM+DTnN8H0rWqhm Yj0PDtG7MUSs3Y48QFOmldkq0ErlIFHx8/2HSmEHGNX7/6kXgoxoMDL8vx9KwtGYAshQ m07Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XEEIG0l+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la11-20020a170902fa0b00b001a65688c863si6722925plb.56.2023.06.06.00.40.36; Tue, 06 Jun 2023 00:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XEEIG0l+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235571AbjFFHcJ (ORCPT + 99 others); Tue, 6 Jun 2023 03:32:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235222AbjFFHcI (ORCPT ); Tue, 6 Jun 2023 03:32:08 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A55106; Tue, 6 Jun 2023 00:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686036726; x=1717572726; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=y0tUjBJZQc0NgAH98sMioZbdb4zlFj8YB+VyFvWw5EE=; b=XEEIG0l+vNVPSiI17XepmY0z93wqNlCBSfRdA4zLstaiV9ctXmFdvJfs N7/IS388OaswN0zP1qy8/GkhYC1XaXM4041fbH045oibDtDba3gwWI7xl Xx1rJE3Aa8ebS5+Wx9blAejyPR9vI6SGmpEWeQHazmkCVPetcamyYAnlg WmZVJ8+ZF5z6EI/zRWAspi8rrvntSmnR7oob1ilYTpk8yO+gYYGiV5hCK E5RYO7ZEJx4wxzDjH/7/GMmE5BGsJY13I5K6FmBKfGcJsog0mTcfr0+Wa FOCbZgQUqgbIdL8Dz0BpDuKbUoF4uN1qTdBE3+OkGWxgoCHaI5ziTiPM7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="420139166" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="420139166" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 00:32:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="833118130" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="833118130" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 06 Jun 2023 00:32:04 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q6RAh-0004yV-1p; Tue, 06 Jun 2023 07:32:03 +0000 Date: Tue, 6 Jun 2023 15:31:40 +0800 From: kernel test robot To: Kent Overstreet , axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Kent Overstreet Subject: Re: [PATCH v2 4/5] block: Change memcpy_(to|from)_bvec to pass bvec by value Message-ID: <202306061511.LwAxWAce-lkp@intel.com> References: <20230605212717.2570570-4-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230605212717.2570570-4-kent.overstreet@linux.dev> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kent, kernel test robot noticed the following build errors: [auto build test ERROR on axboe-block/for-next] [cannot apply to kdave/for-next device-mapper-dm/for-next gfs2/for-next tytso-ext4/dev linus/master v6.4-rc5 next-20230606] [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/Kent-Overstreet/block-Rework-bio_for_each_folio_all/20230606-052850 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next patch link: https://lore.kernel.org/r/20230605212717.2570570-4-kent.overstreet%40linux.dev patch subject: [PATCH v2 4/5] block: Change memcpy_(to|from)_bvec to pass bvec by value config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230606/202306061511.LwAxWAce-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): mkdir -p ~/bin wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git git fetch axboe-block for-next git checkout axboe-block/for-next b4 shazam https://lore.kernel.org/r/20230605212717.2570570-4-kent.overstreet@linux.dev # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/scsi/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306061511.LwAxWAce-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/scsi/aha1542.c: In function 'aha1542_free_cmd': >> drivers/scsi/aha1542.c:270:40: error: incompatible type for argument 1 of 'memcpy_to_bvec' 270 | memcpy_to_bvec(&bv, buf); | ^~~ | | | struct bio_vec * In file included from include/linux/blk_types.h:10, from include/linux/blkdev.h:9, from include/scsi/scsi_cmnd.h:6, from drivers/scsi/aha1542.c:23: include/linux/bvec.h:271:50: note: expected 'struct bio_vec' but argument is of type 'struct bio_vec *' 271 | static inline void memcpy_to_bvec(struct bio_vec bvec, const char *from) | ~~~~~~~~~~~~~~~^~~~ vim +/memcpy_to_bvec +270 drivers/scsi/aha1542.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 258 1794ef2b150dd5 Christoph Hellwig 2018-11-10 259 static void aha1542_free_cmd(struct scsi_cmnd *cmd) 1794ef2b150dd5 Christoph Hellwig 2018-11-10 260 { 1794ef2b150dd5 Christoph Hellwig 2018-11-10 261 struct aha1542_cmd *acmd = scsi_cmd_priv(cmd); 1794ef2b150dd5 Christoph Hellwig 2018-11-10 262 2f2fef022c3e7a Christoph Hellwig 2021-03-31 263 if (cmd->sc_data_direction == DMA_FROM_DEVICE) { 11bf4ec580737c Bart Van Assche 2021-08-09 264 struct request *rq = scsi_cmd_to_rq(cmd); 2f2fef022c3e7a Christoph Hellwig 2021-03-31 265 void *buf = acmd->data_buffer; 2f2fef022c3e7a Christoph Hellwig 2021-03-31 266 struct req_iterator iter; 2f2fef022c3e7a Christoph Hellwig 2021-03-31 267 struct bio_vec bv; 2f2fef022c3e7a Christoph Hellwig 2021-03-31 268 11bf4ec580737c Bart Van Assche 2021-08-09 269 rq_for_each_segment(bv, rq, iter) { e6ab6113526aa4 Christoph Hellwig 2021-10-18 @270 memcpy_to_bvec(&bv, buf); 2f2fef022c3e7a Christoph Hellwig 2021-03-31 271 buf += bv.bv_len; 2f2fef022c3e7a Christoph Hellwig 2021-03-31 272 } 1794ef2b150dd5 Christoph Hellwig 2018-11-10 273 } 1794ef2b150dd5 Christoph Hellwig 2018-11-10 274 1794ef2b150dd5 Christoph Hellwig 2018-11-10 275 scsi_dma_unmap(cmd); 1794ef2b150dd5 Christoph Hellwig 2018-11-10 276 } 1794ef2b150dd5 Christoph Hellwig 2018-11-10 277 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki