vendorcode/eltan/security: update attribute use
Update the use of __attribute__((weak)) to the preferred __weak BUG=None TEST=Builds BRANCH=None Change-Id: I75a0e7c03e537be2d38b7f9c6b81eafbb5fb8018 Signed-off-by: Jon Murphy <jpmurphy@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/77669 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
		| @@ -271,7 +271,7 @@ int mb_measure_log_worker(const char *name, uint32_t type, uint32_t pcr, | |||||||
|  * @retval TPM_E_IOERROR	Unexpected device behavior. |  * @retval TPM_E_IOERROR	Unexpected device behavior. | ||||||
| **/ | **/ | ||||||
|  |  | ||||||
| int __attribute__((weak)) mb_entry(int wake_from_s3) | __weak int mb_entry(int wake_from_s3) | ||||||
| { | { | ||||||
| 	int status; | 	int status; | ||||||
|  |  | ||||||
| @@ -315,7 +315,7 @@ int __attribute__((weak)) mb_entry(int wake_from_s3) | |||||||
|  * @retval TPM_E_IOERROR	Unexpected device behavior. |  * @retval TPM_E_IOERROR	Unexpected device behavior. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| int __attribute__((weak))mb_measure(int wake_from_s3) | __weak int mb_measure(int wake_from_s3) | ||||||
| { | { | ||||||
| 	uint32_t status; | 	uint32_t status; | ||||||
|  |  | ||||||
| @@ -357,7 +357,7 @@ int __attribute__((weak))mb_measure(int wake_from_s3) | |||||||
|  * @retval TPM_SUCCESS		Operation completed successfully. |  * @retval TPM_SUCCESS		Operation completed successfully. | ||||||
|  * @retval TPM_E_IOERROR	Unexpected device behavior. |  * @retval TPM_E_IOERROR	Unexpected device behavior. | ||||||
|  */ |  */ | ||||||
| int __attribute__((weak))mb_measure_log_start(void) | __weak int mb_measure_log_start(void) | ||||||
| { | { | ||||||
| 	int status; | 	int status; | ||||||
| 	uint32_t i; | 	uint32_t i; | ||||||
| @@ -414,7 +414,7 @@ static const uint8_t crtm_version[] = | |||||||
|  * @retval TPM_SUCCESS		Operation completed successfully. |  * @retval TPM_SUCCESS		Operation completed successfully. | ||||||
|  * @retval TPM_E_IOERROR	Unexpected device behavior. |  * @retval TPM_E_IOERROR	Unexpected device behavior. | ||||||
| **/ | **/ | ||||||
| int __attribute__((weak))mb_crtm(void) | __weak int mb_crtm(void) | ||||||
| { | { | ||||||
| 	int status; | 	int status; | ||||||
| 	TCG_PCR_EVENT2_HDR tcgEventHdr; | 	TCG_PCR_EVENT2_HDR tcgEventHdr; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user