Browse Source

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 <afd@ti.com>
Change-Id: I68cd0fc3a94c8c94781ca3dc277a1dd4c6f2bd3a
pull/1997/head
Andrew Davis 2 years ago
parent
commit
3aa8d49ada
  1. 2
      plat/ti/k3/common/drivers/sec_proxy/sec_proxy.c
  2. 4
      plat/ti/k3/common/drivers/ti_sci/ti_sci.c

2
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 */

4
plat/ti/k3/common/drivers/ti_sci/ti_sci.c

@ -92,7 +92,7 @@ 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,
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;
@ -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;

Loading…
Cancel
Save