Skip to content

Commit

Permalink
tools: ynl: remove the libmnl dependency
Browse files Browse the repository at this point in the history
We don't use libmnl any more.

Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240227223032.1835527-15-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jakub Kicinski committed Feb 28, 2024
1 parent 5ac6868 commit 73395b4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tools/net/ynl/lib/ynl-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#ifndef __YNL_C_PRIV_H
#define __YNL_C_PRIV_H 1

#include <stdbool.h>
#include <stddef.h>
#include <libmnl/libmnl.h>
#include <linux/types.h>

struct ynl_parse_arg;
Expand All @@ -12,8 +12,6 @@ struct ynl_parse_arg;
* YNL internals / low level stuff
*/

/* Generic mnl helper code */

enum ynl_policy_type {
YNL_PT_REJECT = 1,
YNL_PT_IGNORE,
Expand Down
1 change: 0 additions & 1 deletion tools/net/ynl/lib/ynl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <stdio.h>
#include <unistd.h>
#include <linux/types.h>
#include <libmnl/libmnl.h>
#include <linux/genetlink.h>
#include <sys/socket.h>

Expand Down
2 changes: 1 addition & 1 deletion tools/net/ynl/samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ifeq ("$(DEBUG)","1")
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
endif

LDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a
LDLIBS=../lib/ynl.a ../generated/protos.a

SRCS=$(wildcard *.c)
BINS=$(patsubst %.c,%,${SRCS})
Expand Down
1 change: 0 additions & 1 deletion tools/net/ynl/ynl-gen-c.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,6 @@ def main():

if args.mode == "user":
if not args.header:
cw.p("#include <libmnl/libmnl.h>")
cw.p("#include <linux/genetlink.h>")
cw.nl()
for one in args.user_header:
Expand Down

0 comments on commit 73395b4

Please sign in to comment.