Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp557391rdh; Wed, 14 Feb 2024 05:14:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQ49lpnE90LcFXG0TuR/I6k+bDCRxkQ9qgY2pHEWTNT7G0znS4rQcbSUAJ4SPbJJ+PmAE/kXqUAdbBZIuR4wHx51X/CLwoy+rXk5QLmQ== X-Google-Smtp-Source: AGHT+IGBL5LyAMoPhs3hmrUFLzN7Ze57l6ENxwB6BtF8Ax9fCvK35NgZRM3Z7JHenaRMvw/8h8vp X-Received: by 2002:a17:903:244d:b0:1d9:c17b:43f3 with SMTP id l13-20020a170903244d00b001d9c17b43f3mr3103496pls.15.1707916485675; Wed, 14 Feb 2024 05:14:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707916485; cv=pass; d=google.com; s=arc-20160816; b=0SUKxoNDv5vUcXyLY868nscsKNc788HgCVoGo6/Xy2vPXLqtulrdpZflMLiO0h6nwC Xyrd7k1R/aKc6iwhOSD+YDBNll69wTzErxqJjghXDTyPu0rSvIgLiOrqMeKfgmTIgGBC jrWt+bXS5jT8AYWyyj09UXdHkb+e0MDXUWkQLkA8BRdL0A41Cg2+UHenadGLtED4Nd/c ZQG54Kb/rgaVsVI1iVd4nmML4w1+yd0rDCYLgTgC0Gkp0+O5EfcO4v/6oGVAVfJo/QE8 HU59XRl5V23yTbB6O2SVZ7z2/ziHJVrBVPQsrFJuq9wX+QbVVWZbX5Qq01ComdtJ+ufS QWKw== 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=bTDFUD7r710sDELTnM+Qp9PSlOMbt+02lqUBMxj0/9s=; fh=A3umGYKriGg5kvKukt0JequDcp4sfLVpZC2vVKYxsX0=; b=rfIVgJZRucIIn1AhuwbRUjeVXADFDHwLHt79894GlaQTYa9T+iwIk6zH0DA61QNCud bFUsfGQIaxEyBCbfXrn0PZNcK93hKmzZZAKWyNU34XKoScV1W5dFlIIlZZDfghhi/8V4 2iT1vRjgNVbH8v6FRPx8q5jgcTRizyFXpSqYYaDFse8gn62WxRdbutO0LIi12gUiSUjt wT3ZI7m82UlGRViU1cRvPnnAfc/GWsfCFvvJMNhwa8TeAVeXRsPNhI8cOiMPsK4BGrT/ um+H29fOVfs1+HsMmh6jZYAErr9o2aqakRvokJGXkBOuwJOfYh6gdqyu1qECWN3bpU34 LHNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YZT00K+A; 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-65242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65242-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; AJvYcCWPhMiHouHeyY1bNWpJmhkKBSnYd3uFaFYDfVznJdRfQllYOvwwIk6VP/T2uKZuwc6HJzhk/1/2dTPi9YDeUxVJ3TYdrGX2bHaUVXzpuw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z11-20020a170903018b00b001da192f3ec1si3719321plg.540.2024.02.14.05.14.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 05:14:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YZT00K+A; 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-65242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65242-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F864B24E6B for ; Wed, 14 Feb 2024 13:02:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9ACEF5337D; Wed, 14 Feb 2024 13:01:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YZT00K+A" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 2138F52F6E; Wed, 14 Feb 2024 13:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915717; cv=none; b=jlzzghfh5omCr4P23OXTsJOvGdeXqBfeFsNY0XnogZjmGbJ/ooKG9idiEIvD144NKWFKobDn+7rZfOF1mPM+s8mZapwllt8RbK5pay4FjpRjZ7y+iQjLwgWuhFwIae58478HQ69zGxtMO9meX3Nu2fkTt9oxLIkXwEKWmlZBg+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915717; c=relaxed/simple; bh=UPDRuiOXlP13ChjfIMysQjZiACzpmw75739/2c4aLa4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XAaZDNM9hrCmDpPxPF7s64lAyfCwgjBtcer7dtNTmK5qe6tKWgSyX3NGslyY12pv3MXDwWbIS0893KoJKlm/azeqf5clu5mkpeQR8pEQe+mgSL2Vp5M4bvZhwFpbKHi7Jhmx0XiLxQqlCUM1zFvw6uSLknfOqyHY/iVbUMYJGLA= 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=YZT00K+A; arc=none smtp.client-ip=198.175.65.21 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=1707915715; x=1739451715; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UPDRuiOXlP13ChjfIMysQjZiACzpmw75739/2c4aLa4=; b=YZT00K+Aip+tuYn07OoxOVHlYi8NiUJx0qbk2c/f0OmOFFsKj2fr2CWv eSKYe4BwzmSsTLlMBPK28EiEGchMK4dO1MdqjQIAUqH7x87bY/T2o8B8f Pfaqpp6xIkdN+b0nDUfyKWIJy6ed5GXqewU0zNNvQXqEw37Za4wSuZuhH 5yiTcT2+i0HyDBMjxx2zVCdO0P/ejpI8A62vdDWOwCtBd9OGtmr7Z3NIs rg0XAMx0faDqXNXDQphOM6LaXNaagWataF//2d7vS+4ZUv58uCYJcjN/y HXLgwx2+LUTdaNa+6l6T7UL3Q+RIdOFacKbWdRzP3cxgfvUwafKxicsWm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="1866040" X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="1866040" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2024 05:01:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="7776217" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 14 Feb 2024 05:01:50 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1raEtY-0008m6-1t; Wed, 14 Feb 2024 13:01:48 +0000 Date: Wed, 14 Feb 2024 21:01:22 +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: 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: <202402142042.JLQEGKBr-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: s390-allyesconfig (https://download.01.org/0day-ci/archive/20240214/202402142042.JLQEGKBr-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240214/202402142042.JLQEGKBr-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/202402142042.JLQEGKBr-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/tee/tee_shm.c: In function 'tee_shm_pool_op_alloc_helper': >> drivers/tee/tee_shm.c:227:22: error: implicit declaration of function 'virt_to_phys'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration] 227 | shm->paddr = virt_to_phys(shm->kaddr); | ^~~~~~~~~~~~ | virt_to_pfn cc1: some warnings being treated as errors vim +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