All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libnftnl] set: export nftnl_set_clone
@ 2024-08-10 19:05 chayleaf
  2024-08-11 11:53 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: chayleaf @ 2024-08-10 19:05 UTC (permalink / raw)
  To: netfilter-devel; +Cc: chayleaf

This is present in libnftnl/set.h, so this has to either be exported or
removed from the header.

Signed-off-by: chayleaf <chayleaf-git@pavluk.org>
---
 src/libnftnl.map | 1 +
 src/set.c        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/libnftnl.map b/src/libnftnl.map
index 8fffff1..3f660de 100644
--- a/src/libnftnl.map
+++ b/src/libnftnl.map
@@ -129,6 +129,7 @@ global:
   nftnl_set_get_str;
   nftnl_set_get_u32;
   nftnl_set_get_u64;
+  nftnl_set_clone;
   nftnl_set_nlmsg_build_payload;
   nftnl_set_nlmsg_parse;
   nftnl_set_parse;
diff --git a/src/set.c b/src/set.c
index 07e332d..c5f9518 100644
--- a/src/set.c
+++ b/src/set.c
@@ -352,6 +352,7 @@ uint64_t nftnl_set_get_u64(const struct nftnl_set *s, uint16_t attr)
 	return val ? *val : 0;
 }
 
+EXPORT_SYMBOL(nftnl_set_clone);
 struct nftnl_set *nftnl_set_clone(const struct nftnl_set *set)
 {
 	struct nftnl_set *newset;
-- 
2.44.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH libnftnl] set: export nftnl_set_clone
  2024-08-10 19:05 [PATCH libnftnl] set: export nftnl_set_clone chayleaf
@ 2024-08-11 11:53 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2024-08-11 11:53 UTC (permalink / raw)
  To: chayleaf; +Cc: netfilter-devel

chayleaf <chayleaf-git@pavluk.org> wrote:
> This is present in libnftnl/set.h, so this has to either be exported or
> removed from the header.

Please remove both nftnl_set_clone and nftnl_set_elem_clone, these are
not used anymore, its dead code.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-11 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-10 19:05 [PATCH libnftnl] set: export nftnl_set_clone chayleaf
2024-08-11 11:53 ` Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.