diff mbox

linux-gen: packet: make inline table visible

Message ID 1489418097-21704-1-git-send-email-petri.savolainen@linaro.org
State Accepted
Commit 746455fcdf279fcef7ec6a3eb6c5f1b465588554
Headers show

Commit Message

Petri Savolainen March 13, 2017, 3:14 p.m. UTC
Add visibility markers to make inline offset table visible
applications linking against an installed copy of the library.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 platform/linux-generic/odp_packet.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.8.1

Comments

Bill Fischofer March 13, 2017, 7:16 p.m. UTC | #1
On Mon, Mar 13, 2017 at 10:14 AM, Petri Savolainen <
petri.savolainen@linaro.org> wrote:

> Add visibility markers to make inline offset table visible

> applications linking against an installed copy of the library.

>

> Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

>


Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>



> ---

>  platform/linux-generic/odp_packet.c | 4 ++++

>  1 file changed, 4 insertions(+)

>

> diff --git a/platform/linux-generic/odp_packet.c

> b/platform/linux-generic/odp_packet.c

> index 60eef3a..b8aac6b 100644

> --- a/platform/linux-generic/odp_packet.c

> +++ b/platform/linux-generic/odp_packet.c

> @@ -24,6 +24,8 @@

>  /* Initial packet segment data length */

>  #define BASE_LEN  CONFIG_PACKET_MAX_SEG_LEN

>

> +#include <odp/visibility_begin.h>

> +

>  /* Fill in packet header field offsets for inline functions */

>  const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = {

>         .data           = offsetof(odp_packet_hdr_t, buf_hdr.seg[0].data),

> @@ -43,6 +45,8 @@ const _odp_packet_inline_offset_t _odp_packet_inline

> ODP_ALIGNED_CACHE = {

>

>  };

>

> +#include <odp/visibility_end.h>

> +

>  static inline odp_packet_hdr_t *packet_hdr(odp_packet_t pkt)

>  {

>         return (odp_packet_hdr_t *)(uintptr_t)pkt;

> --

> 2.8.1

>

>
diff mbox

Patch

diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 60eef3a..b8aac6b 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -24,6 +24,8 @@ 
 /* Initial packet segment data length */
 #define BASE_LEN  CONFIG_PACKET_MAX_SEG_LEN
 
+#include <odp/visibility_begin.h>
+
 /* Fill in packet header field offsets for inline functions */
 const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = {
 	.data           = offsetof(odp_packet_hdr_t, buf_hdr.seg[0].data),
@@ -43,6 +45,8 @@  const _odp_packet_inline_offset_t _odp_packet_inline ODP_ALIGNED_CACHE = {
 
 };
 
+#include <odp/visibility_end.h>
+
 static inline odp_packet_hdr_t *packet_hdr(odp_packet_t pkt)
 {
 	return (odp_packet_hdr_t *)(uintptr_t)pkt;