On Mon, Mar 13, 2017 at 10:14 AM, Petri Savolainen <
[email protected]> wrote:

> Add visibility markers to make inline offset table visible
> applications linking against an installed copy of the library.
>
> Signed-off-by: Petri Savolainen <[email protected]>
>

Reviewed-by: Bill Fischofer <[email protected]>


> ---
>  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
>
>

Reply via email to