From 3aa8d49ada6fa6d6e36cce9c4e28489340c754bc Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Fri, 11 Nov 2022 12:49:38 -0600 Subject: refactor(ti): remove inline directive from ti_sci and sec_proxy drivers Let the compiler choose when to inline. Here this reduces binary size. Signed-off-by: Andrew Davis Change-Id: I68cd0fc3a94c8c94781ca3dc277a1dd4c6f2bd3a --- plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c | 2 +- plat/ti/k3/common/drivers/ti_sci/ti_sci.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plat/ti') diff --git a/plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c b/plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c index a0bfdee36..1bed229b7 100644 --- a/plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c +++ b/plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c @@ -130,7 +130,7 @@ union sec_msg_hdr { * * Return: 0 if all goes well, else appropriate error message */ -static inline int k3_sec_proxy_verify_thread(struct k3_sec_proxy_thread *spt, +static int k3_sec_proxy_verify_thread(struct k3_sec_proxy_thread *spt, uint32_t dir) { /* Check for any errors already available */ diff --git a/plat/ti/k3/common/drivers/ti_sci/ti_sci.c b/plat/ti/k3/common/drivers/ti_sci/ti_sci.c index 366189f17..f0529d07a 100644 --- a/plat/ti/k3/common/drivers/ti_sci/ti_sci.c +++ b/plat/ti/k3/common/drivers/ti_sci/ti_sci.c @@ -92,8 +92,8 @@ static int ti_sci_setup_one_xfer(uint16_t msg_type, uint32_t msg_flags, * * Return: 0 if all goes well, else appropriate error message */ -static inline int ti_sci_get_response(struct k3_sec_proxy_msg *msg, - enum k3_sec_proxy_chan_id chan) +static int ti_sci_get_response(struct k3_sec_proxy_msg *msg, + enum k3_sec_proxy_chan_id chan) { struct ti_sci_msg_hdr *hdr; unsigned int retry = 5; @@ -140,7 +140,7 @@ static inline int ti_sci_get_response(struct k3_sec_proxy_msg *msg, * * Return: 0 if all goes well, else appropriate error message */ -static inline int ti_sci_do_xfer(struct ti_sci_xfer *xfer) +static int ti_sci_do_xfer(struct ti_sci_xfer *xfer) { struct k3_sec_proxy_msg *tx_msg = &xfer->tx_message; struct k3_sec_proxy_msg *rx_msg = &xfer->rx_message; -- cgit v1.2.1