Message ID | 1489418097-21704-1-git-send-email-petri.savolainen@linaro.org |
---|---|
State | Accepted |
Commit | 746455fcdf279fcef7ec6a3eb6c5f1b465588554 |
Headers | show |
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 --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;
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