From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935195AbbI2RpA (ORCPT ); Tue, 29 Sep 2015 13:45:00 -0400 Received: from mga02.intel.com ([134.134.136.20]:65300 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754973AbbI2Roy (ORCPT ); Tue, 29 Sep 2015 13:44:54 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,609,1437462000"; d="scan'208";a="570671467" Date: Wed, 30 Sep 2015 01:43:57 +0800 From: kbuild test robot To: Jarkko Sakkinen Cc: kbuild-all@01.org, tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, peterhuewe@gmx.de, gregkh@linuxfoundation.org, jgunthorpe@obsidianresearch.com, akpm@linux-foundation.org, mjg59@srcf.ucam.org, Jarkko Sakkinen , Marcel Selhorst Subject: Re: [PATCH 2/2] tpm, tpm_tis: detect TPM2 FIFO devices based on HID Message-ID: <201509300110.z1IfOgH4%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443546431-14948-3-git-send-email-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jarkko, [auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore] reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> drivers/char/tpm/tpm_tis.c:136:13: sparse: cast to restricted __le32 vim +136 drivers/char/tpm/tpm_tis.c 120 121 static inline int is_tpm2_fifo(struct acpi_device *dev) 122 { 123 struct acpi_table_tpm2 *tbl; 124 acpi_status st; 125 126 if (!has_hid(dev, "MSFT0101")) 127 return 0; 128 129 st = acpi_get_table(ACPI_SIG_TPM2, 1, 130 (struct acpi_table_header **) &tbl); 131 if (ACPI_FAILURE(st)) { 132 dev_err(&dev->dev, "failed to get TPM2 ACPI table\n"); 133 return 0; 134 } 135 > 136 if (le32_to_cpu(tbl->start_method) != TPM2_START_FIFO) 137 return 0; 138 139 return 1; 140 } 141 #else 142 static inline int is_itpm(struct acpi_device *dev) 143 { 144 return 0; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation