summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-05-02 10:55:11 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-05-02 23:03:08 +0200
commit3ca60d00b1a3ca3822db5fcf6ba46cf3ac0a6b0b (patch)
treedc05bb85b030d436e4fb7a886e1e297299ae6786
parentMerge pull request #15837 from acooks-at-bda/dev/fix-deprecated-cares-api (diff)
downloadfrr-3ca60d00b1a3ca3822db5fcf6ba46cf3ac0a6b0b.tar.xz
frr-3ca60d00b1a3ca3822db5fcf6ba46cf3ac0a6b0b.zip
*: add XREF_SETUP() to libraries and utilites
This is theoretically not needed if neither DEFUNs nor zlog_* calls are used, except I'm about to turn it into a build error to catch the cases where it _is_ necessary. Which is libmgmt_be_nb.la in this case, where it causes build failures on hppa. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--fpm/fpm_pb.c5
-rw-r--r--mgmtd/mgmt_be_nb.c6
-rw-r--r--mgmtd/subdir.am1
-rw-r--r--qpb/qpb.c5
-rw-r--r--zebra/fpm_listener.c2
5 files changed, 19 insertions, 0 deletions
diff --git a/fpm/fpm_pb.c b/fpm/fpm_pb.c
index e4c9395a8..0e8f618c4 100644
--- a/fpm/fpm_pb.c
+++ b/fpm/fpm_pb.c
@@ -10,3 +10,8 @@
/*
* Main file for the fpm_pb library.
*/
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
diff --git a/mgmtd/mgmt_be_nb.c b/mgmtd/mgmt_be_nb.c
new file mode 100644
index 000000000..613272d40
--- /dev/null
+++ b/mgmtd/mgmt_be_nb.c
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
diff --git a/mgmtd/subdir.am b/mgmtd/subdir.am
index 5182c4a47..14544c4f0 100644
--- a/mgmtd/subdir.am
+++ b/mgmtd/subdir.am
@@ -16,6 +16,7 @@ clippy_scan += \
lib_LTLIBRARIES += mgmtd/libmgmt_be_nb.la
mgmtd_libmgmt_be_nb_la_SOURCES = \
+ mgmtd/mgmt_be_nb.c \
zebra/zebra_cli.c \
# end
nodist_mgmtd_libmgmt_be_nb_la_SOURCES = \
diff --git a/qpb/qpb.c b/qpb/qpb.c
index 63454f115..625817857 100644
--- a/qpb/qpb.c
+++ b/qpb/qpb.c
@@ -10,3 +10,8 @@
/*
* Main file for the qpb library.
*/
+
+#include "config.h"
+#include "xref.h"
+
+XREF_SETUP();
diff --git a/zebra/fpm_listener.c b/zebra/fpm_listener.c
index b31c5f7ac..5533fa7f8 100644
--- a/zebra/fpm_listener.c
+++ b/zebra/fpm_listener.c
@@ -36,6 +36,8 @@
#include "fpm/fpm.h"
#include "lib/libfrr.h"
+XREF_SETUP();
+
struct glob {
int server_sock;
int sock;