Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp556475rdh; Wed, 14 Feb 2024 05:13:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+ZX4azoE30qbMdiJNQ28bdRFaNMez7podomCX5p3YZff8rOXncgn1jJMNVVXLHLv2aTDjNfTNRpR+Utd12UXWOqj7N1d7G7HBEXJ0YQ== X-Google-Smtp-Source: AGHT+IHHlztw12X80nfPc/IXDZGphmtJCLTbw+hWFiQD3KrtekmcD1gp6zp1B9dpXxwtMI0qpZXw X-Received: by 2002:a05:6a00:1c9a:b0:6df:dde5:6025 with SMTP id y26-20020a056a001c9a00b006dfdde56025mr2306779pfw.4.1707916389506; Wed, 14 Feb 2024 05:13:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707916389; cv=pass; d=google.com; s=arc-20160816; b=xImdKfUywuUSMZZ4Y71SnpWmzzp+cM5KeKdG1vHl+qbcKMi5v7m+d38VjL/mAH82Wu kO3S9ubAbcsfn78/o13kodXZ3fNAJTIx+NGHtfmq7XYWBa+9YATvBxo4/JMc5klKjX+i 1Sm11HHrQUhRxHfJbQNoL2oELMvZyvDVNZa3zMKQJKK8DaDxNa8RBdBZDaJMmsvPJjRd VE9zD4D1at6//+x/tghFumV4k/Foy0P0amfZmWHs4XzmeTcqLKAYfxXhXGUVcl35gRWH d++LqwAUZtXw2czUg+a7dtdlxxN7aZYsIyUbop+jgka5t8Sxwp9Lg+CEb0LNICYwrsSN V9iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2DgN9P7H5Y1sBpohDDZnGVEOHs7moz54i4Qw/MnzgAg=; fh=Pbaf5xSstyrgcPHLHFkW6apPSOjjdcOMMVB/y25DgwU=; b=U4V9MnYRDsevmxymExDWTofAxNdqEaSVl2bbeT/x0VzoefqCwsA1+/Kf11L4mH73WY rrSr8//+vA1ItC15GW/5XIbKU2PPSuFZgWloFZb5uKwd+lzaOZqoMOElq2cgnmQcSlqS OuzAm/kkDPix4yuCK5N6qhSIs1t4HFXMJT4vWKkbiupTxRIFmpGSMSk7jCRmsJOwzj3c MyXNLW3CIB3E6kmGdTnwsfrymbwZO/9hWtR/2PQf520y6ZgEE++kXqdhBeXhkgeNLqX7 s56AA07KlVCH5I8Amrs4KS2lv8bTbUmyPJqZFXrrPeIDLsJ9ZOAfCJAq4N14veEu/qyG jj+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KAWk6DZA; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-65255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVTE9BXxaX8MrV2BmJVRSlqXWNC7/F6AEV4GOcXUVYY9IwE4EKFVJyzWLOU89/09WU4Zxa9nQBEUg3wv8Vjg4HTKGD/zxzkAJES6LfNow== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z21-20020a656655000000b005dc81a30772si3261242pgv.301.2024.02.14.05.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 05:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KAWk6DZA; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-65255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E1F42820BE for ; Wed, 14 Feb 2024 13:13:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13C09535CC; Wed, 14 Feb 2024 13:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KAWk6DZA" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BED7A53805; Wed, 14 Feb 2024 13:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916377; cv=none; b=IJ4doUAIkEUBelr7pqx1hLTNYA9pK/c83Af3d34EiUYBg5KRNJv4ekb+hVW97gcORGkzZDfWvOp8jkE8XQT/6MDEPOvpYLBC0RlsF/QrBhTJzMHx/kNDYz5S2ClBfnV+2MTLcTkqWYSF5RbZncim5I3eVYcz2em3Trivz5rvqmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707916377; c=relaxed/simple; bh=ppF6Ky/9HUsd6/RqDwiUAbsV3+Zz3zn7DpSwLi/fI4c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IrRydBvh54B44R5cAHsTa3qT/QuyEbQHBQuM0D97BkYqNpA6/Qe4hyflhZyt92K0hB7hLfVBRZai5WfJmm0hMzGZaDARTafUmfiEkHohHSYfkDItS5UnzN9k8V94p28Bva80f5s/hw8/NDT5Vfa3pCFt6HxbYCx/zlMl/suf1pw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KAWk6DZA; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707916375; x=1739452375; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ppF6Ky/9HUsd6/RqDwiUAbsV3+Zz3zn7DpSwLi/fI4c=; b=KAWk6DZA/bEJJ43w0wHxYt7dtbOXEdFe4RLrdtABU0eyBu1djpus55qm Rp5FuxvDu6iXkvYiEJC5qCFsnvmaFre7f3SudGfGZZtce6nLn25JGxFUi Xr9jvUDi/Hrj3LGw08bqvXdPnVxagKmvMJEUR7olvQ+MLsNJ+kT2TGSY/ wL6WpXHGCHXhKBppHBUcB3YwkLYTnV0Dgv8KDHlEB4hAjLkatwHAUB8MS G/zU0HURpg8N4AzHLJhDOSs6JpcPn6gjT5yzjJ9e90gSMNI/+5+VLR9ZZ 7kEvStvQt7rvV6ZoU4XZG+rLguLk47RnG3tq3wKFWKwKhtRxsb1asDT3B w==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="5778793" X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="5778793" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2024 05:12:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="3548587" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 14 Feb 2024 05:12:51 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1raF4C-0008mX-2o; Wed, 14 Feb 2024 13:12:48 +0000 Date: Wed, 14 Feb 2024 21:11:57 +0800 From: kernel test robot To: Balint Dobszay , op-tee@lists.trustedfirmware.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, jens.wiklander@linaro.org, sumit.garg@linaro.org, corbet@lwn.net, balint.dobszay@arm.com, sudeep.holla@arm.com, gyorgy.szing@arm.com Subject: Re: [PATCH 1/3] tee: optee: Move pool_op helper functions Message-ID: <202402142000.xRg35j1i-lkp@intel.com> References: <20240213145239.379875-2-balint.dobszay@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240213145239.379875-2-balint.dobszay@arm.com> Hi Balint, kernel test robot noticed the following build errors: [auto build test ERROR on lwn/docs-next] [also build test ERROR on soc/for-next linus/master v6.8-rc4 next-20240214] [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/Balint-Dobszay/tee-optee-Move-pool_op-helper-functions/20240213-225716 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20240213145239.379875-2-balint.dobszay%40arm.com patch subject: [PATCH 1/3] tee: optee: Move pool_op helper functions config: i386-buildonly-randconfig-002-20240214 (https://download.01.org/0day-ci/archive/20240214/202402142000.xRg35j1i-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240214/202402142000.xRg35j1i-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202402142000.xRg35j1i-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/tee/tee_shm.c:227:15: error: call to undeclared function 'virt_to_phys'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 227 | shm->paddr = virt_to_phys(shm->kaddr); | ^ 1 error generated. vim +/virt_to_phys +227 drivers/tee/tee_shm.c 204 205 int tee_shm_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm, 206 size_t size, size_t align, 207 int (*shm_register)(struct tee_context *ctx, 208 struct tee_shm *shm, 209 struct page **pages, 210 size_t num_pages, 211 unsigned long start)) 212 { 213 size_t nr_pages = roundup(size, PAGE_SIZE) / PAGE_SIZE; 214 struct page **pages; 215 unsigned int i; 216 int rc = 0; 217 218 /* 219 * Ignore alignment since this is already going to be page aligned 220 * and there's no need for any larger alignment. 221 */ 222 shm->kaddr = alloc_pages_exact(nr_pages * PAGE_SIZE, 223 GFP_KERNEL | __GFP_ZERO); 224 if (!shm->kaddr) 225 return -ENOMEM; 226 > 227 shm->paddr = virt_to_phys(shm->kaddr); 228 shm->size = nr_pages * PAGE_SIZE; 229 230 pages = kcalloc(nr_pages, sizeof(*pages), GFP_KERNEL); 231 if (!pages) { 232 rc = -ENOMEM; 233 goto err; 234 } 235 236 for (i = 0; i < nr_pages; i++) 237 pages[i] = virt_to_page((u8 *)shm->kaddr + i * PAGE_SIZE); 238 239 shm->pages = pages; 240 shm->num_pages = nr_pages; 241 242 if (shm_register) { 243 rc = shm_register(shm->ctx, shm, pages, nr_pages, 244 (unsigned long)shm->kaddr); 245 if (rc) 246 goto err; 247 } 248 249 return 0; 250 err: 251 free_pages_exact(shm->kaddr, shm->size); 252 shm->kaddr = NULL; 253 return rc; 254 } 255 EXPORT_SYMBOL_GPL(tee_shm_pool_op_alloc_helper); 256 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki