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

From: kbuild test robot
Date: Tue Sep 29 2015 - 13:45:05 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/