Skip to content

Commit

Permalink
*: add XREF_SETUP() to libraries and utilites
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
eqvinox committed May 2, 2024
1 parent afb3020 commit 3ca60d0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fpm/fpm_pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
/*
* Main file for the fpm_pb library.
*/

#include "config.h"
#include "xref.h"

XREF_SETUP();
6 changes: 6 additions & 0 deletions mgmtd/mgmt_be_nb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later

#include "config.h"
#include "xref.h"

XREF_SETUP();
1 change: 1 addition & 0 deletions mgmtd/subdir.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 = \
Expand Down
5 changes: 5 additions & 0 deletions qpb/qpb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
/*
* Main file for the qpb library.
*/

#include "config.h"
#include "xref.h"

XREF_SETUP();
2 changes: 2 additions & 0 deletions zebra/fpm_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
#include "fpm/fpm.h"
#include "lib/libfrr.h"

XREF_SETUP();

struct glob {
int server_sock;
int sock;
Expand Down

0 comments on commit 3ca60d0

Please sign in to comment.