]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
refactor(ti): remove inline directive from ti_sci and sec_proxy drivers
authorAndrew Davis <afd@ti.com>
Fri, 11 Nov 2022 18:49:38 +0000 (12:49 -0600)
committerAndrew Davis <afd@ti.com>
Thu, 30 Mar 2023 15:19:21 +0000 (10:19 -0500)
Let the compiler choose when to inline. Here this reduces binary size.

Signed-off-by: Andrew Davis <afd@ti.com>
Change-Id: I68cd0fc3a94c8c94781ca3dc277a1dd4c6f2bd3a

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

index a0bfdee36706f7e9854a0d7cba81e1f3e2f6bc52..1bed229b70a158151b3d4086eb4850a8188aa2dd 100644 (file)
@@ -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 */
index 366189f174d0121def7189dfbf3e6257fe204e25..f0529d07ad792fb6182993ee5c23fdcbee4bcb8c 100644 (file)
@@ -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;