Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235439

Re: [PATCH 2/2] tpm, tpm_tis: detect TPM2 FIFO devices based on HID

From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] tpm, tpm_tis: detect TPM2 FIFO devices based on HID
Date 2015-09-29 19:50 +0200
Message-ID <qe7cn-50W-19@gated-at.bofh.it> (permalink)
References <qe6zE-4i6-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] tpm, tpm_tis: detect TPM2 FIFO devices based on HID Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-09-29 19:10 +0200
  Re: [PATCH 2/2] tpm, tpm_tis: detect TPM2 FIFO devices based on HID kbuild test robot <lkp@intel.com> - 2015-09-29 19:50 +0200

csiph-web