Skip to content

Commit 0306fc0

Browse files
committed
tpm_crb_ffa: Remove unused export
JIRA: https://issues.redhat.com/browse/RHEL-102692 commit 89dd369 Author: Jarkko Sakkinen <jarkko.sakkinen@opinsys.com> Date: Tue, 1 Jul 2025 03:37:36 +0300 Remove the export of tpm_crb_ffa_get_interface_version() as it has no callers outside tpm_crb_ffa. Fixes: eb93f07 ("tpm_crb: ffa_tpm: Implement driver compliant to CRB over FF-A") Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@opinsys.com> Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
1 parent 56474bb commit 0306fc0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/char/tpm/tpm_crb_ffa.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int __tpm_crb_ffa_send_recieve(unsigned long func_id,
214214
*
215215
* Return: 0 on success, negative error code on failure.
216216
*/
217-
int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
217+
static int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
218218
{
219219
int rc;
220220

@@ -237,7 +237,6 @@ int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor)
237237

238238
return rc;
239239
}
240-
EXPORT_SYMBOL_GPL(tpm_crb_ffa_get_interface_version);
241240

242241
/**
243242
* tpm_crb_ffa_start() - signals the TPM that a field has changed in the CRB

drivers/char/tpm/tpm_crb_ffa.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111

1212
#if IS_REACHABLE(CONFIG_TCG_ARM_CRB_FFA)
1313
int tpm_crb_ffa_init(void);
14-
int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor);
1514
int tpm_crb_ffa_start(int request_type, int locality);
1615
#else
1716
static inline int tpm_crb_ffa_init(void) { return 0; }
18-
static inline int tpm_crb_ffa_get_interface_version(u16 *major, u16 *minor) { return 0; }
1917
static inline int tpm_crb_ffa_start(int request_type, int locality) { return 0; }
2018
#endif
2119

0 commit comments

Comments
 (0)