Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2451861ybl; Sat, 31 Aug 2019 15:31:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNcB8zHtDVe60tl/5QLhN6L8sBfu5nKcgojrTLpDBKCXoAQXUcDHH8R94kNMIYLRI3JXMn X-Received: by 2002:a17:90a:bc06:: with SMTP id w6mr5998912pjr.130.1567290683257; Sat, 31 Aug 2019 15:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567290683; cv=none; d=google.com; s=arc-20160816; b=eJpYh7mHLXUOnCFh5QcQ32HCdKkR1Xuf5zT5nkmHla5fbCZd02e9gwBotIloMuOS12 XBlzJuI6XI7ffrIPsZtNDD/4oKrv91h1GY4WygtNgaD4ZbJuNbtrlgyxelVTZdBLdjy8 /Ypc4wktO+ER8dJTNeW/rjiIwOBKzfR4pvIly3W3mgTxT6pfUJH6HOLgX++cl8trI/ir UpFpxzSQsOL4U2kNb3sRLwxNlHw6811lQCJTT4Z37HYeGf+8GfdNdTFjEoV60h7EIeRM 2F0zLxS4feh4Mdno5MKDHyw12AQhjhZdDUqepGZHGCusL3xGzgepq8gFrBbbVzc2nGt2 81bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tQZVOb2rsUoFGZdygJmGO06rbN0BuPc9lXLuW3veTWc=; b=N0JTIyH7rXOYmyx+bhLM5Z6SwllCLAOs4XcA6e1cUNGYz576+5HZ+tjxDeiIUXFtUn nVk3Hz5drY+6ffIrVFgabE8WwqJde+xPT3L67Ow6gCBf/JFfHcYL/YgqzpY3qvjB3ZDu 8UBuN8W0UP3l7uWdh0T50HDn/ESOG1UPMsGEp1u/91QYUZT4FObA/hIn0+4JoetUDfKw 05kel1nbj4Y3gYNi7VCFmRAgsRZf02QOqokKBgc+NitugVtbwEUAHAwn+NdZ0Jn0Pkzm b8FfUpQLqz6AWhIdRCVHE6TN+8rd93vv6HlsGKmwjobJ3A4RpgCYtpmgSsKDCahrsdW4 k6dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g34si8349811pld.86.2019.08.31.15.30.32; Sat, 31 Aug 2019 15:31:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfHaW16 (ORCPT + 99 others); Sat, 31 Aug 2019 18:27:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:54054 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfHaW15 (ORCPT ); Sat, 31 Aug 2019 18:27:57 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2019 15:27:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,451,1559545200"; d="scan'208";a="211309903" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2019 15:27:55 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1i4Bqd-0006W4-8s; Sun, 01 Sep 2019 06:27:55 +0800 Date: Sun, 1 Sep 2019 06:27:46 +0800 From: kbuild test robot To: Seunghun Han Cc: kbuild-all@01.org, Jarkko Sakkinen , Peter Huewe , "open list:TPM DEVICE DRIVER" , linux-kernel@vger.kernel.org, Seunghun Han Subject: Re: [PATCH 2/2] tpm: tpm_crb: enhance resource mapping mechanism for supporting AMD's fTPM Message-ID: <201909010620.mIDwNGDO%lkp@intel.com> References: <20190830095639.4562-3-kkamagui@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830095639.4562-3-kkamagui@gmail.com> X-Patchwork-Hint: ignore User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Seunghun, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on jss-tpmdd/next] [cannot apply to v5.3-rc6 next-20190830] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Seunghun-Han/Enhance-support-for-the-AMD-s-fTPM/20190901-042313 base: git://git.infradead.org/users/jjs/linux-tpmdd next If you fix the issue, kindly add following tag Reported-by: kbuild test robot coccinelle warnings: (new ones prefixed by >>) >> drivers/char/tpm/tpm_crb.c:457:29-32: WARNING: Suspicious code. resource_size is maybe missing with res vim +457 drivers/char/tpm/tpm_crb.c 452 453 static void __iomem *crb_ioremap_resource(struct device *dev, 454 const struct resource *res) 455 { 456 int rc; > 457 resource_size_t size = res->end - res->start; 458 459 /* Broken BIOS assigns command and response buffers in ACPI NVS region. 460 * Check intersections between a resource and ACPI NVS for W/A. 461 */ 462 rc = region_intersects(res->start, size, IORESOURCE_MEM | 463 IORESOURCE_BUSY, IORES_DESC_ACPI_NV_STORAGE); 464 if (rc != REGION_DISJOINT) { 465 dev_err(dev, 466 FW_BUG "Resource overlaps with a ACPI NVS. %pr\n", 467 res); 468 return devm_ioremap(dev, res->start, size); 469 } 470 471 return devm_ioremap_resource(dev, res); 472 } 473 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation