[PATCH 0/6 v5] TPM cleanups and MMIO driver
Heinrich Schuchardt
xypron.glpk at gmx.de
Sun Nov 7 18:39:45 CET 2021
Building snow_defconfig fails:
AR drivers/watchdog/built-in.o
drivers/tpm/tpm_tis_infineon.c:53: warning: "TPM_ACCESS" redefined
53 | #define TPM_ACCESS(l) (0x0000 | ((l) << 4))
|
In file included from drivers/tpm/tpm_tis_infineon.c:34:
drivers/tpm/tpm_tis.h:75: note: this is the location of the previous
definition
75 | #define TPM_ACCESS(l) (0x0000 | ((l) << 12))
|
drivers/tpm/tpm_tis_infineon.c:54: warning: "TPM_STS" redefined
54 | #define TPM_STS(l) (0x0001 | ((l) << 4))
|
In file included from drivers/tpm/tpm_tis_infineon.c:34:
drivers/tpm/tpm_tis.h:77: note: this is the location of the previous
definition
77 | #define TPM_STS(l) (0x0018 | ((l) << 12))
|
drivers/tpm/tpm_tis_infineon.c:55: warning: "TPM_DATA_FIFO" redefined
55 | #define TPM_DATA_FIFO(l) (0x0005 | ((l) << 4))
|
In file included from drivers/tpm/tpm_tis_infineon.c:34:
drivers/tpm/tpm_tis.h:78: note: this is the location of the previous
definition
78 | #define TPM_DATA_FIFO(l) (0x0024 | ((l) << 12))
|
drivers/tpm/tpm_tis_infineon.c:56: warning: "TPM_DID_VID" redefined
56 | #define TPM_DID_VID(l) (0x0006 | ((l) << 4))
|
In file included from drivers/tpm/tpm_tis_infineon.c:34:
drivers/tpm/tpm_tis.h:79: note: this is the location of the previous
definition
79 | #define TPM_DID_VID(l) (0x0f00 | ((l) << 12))
|
drivers/tpm/tpm_tis_infineon.c:586:12: error: static declaration of
‘tpm_tis_get_desc’ follows non-static declaration
586 | static int tpm_tis_get_desc(struct udevice *dev, char *buf, int
size)
| ^~~~~~~~~~~~~~~~
In file included from drivers/tpm/tpm_tis_infineon.c:34:
drivers/tpm/tpm_tis.h:245:5: note: previous declaration of
‘tpm_tis_get_desc’ with type ‘int(struct udevice *, char *, int)’
245 | int tpm_tis_get_desc(struct udevice *udev, char *buf, int size);
| ^~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:254:
drivers/tpm/tpm_tis_infineon.o] Error 1
make[1]: *** [scripts/Makefile.build:394: drivers/tpm] Error 2
make: *** [Makefile:1808: drivers] Error 2
Best regards
Heinrich
More information about the U-Boot
mailing list