Commit 73395b43 authored by Jakub Kicinski's avatar Jakub Kicinski

tools: ynl: remove the libmnl dependency

We don't use libmnl any more.
Acked-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://lore.kernel.org/r/20240227223032.1835527-15-kuba@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5ac6868d
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
#ifndef __YNL_C_PRIV_H #ifndef __YNL_C_PRIV_H
#define __YNL_C_PRIV_H 1 #define __YNL_C_PRIV_H 1
#include <stdbool.h>
#include <stddef.h> #include <stddef.h>
#include <libmnl/libmnl.h>
#include <linux/types.h> #include <linux/types.h>
struct ynl_parse_arg; struct ynl_parse_arg;
...@@ -12,8 +12,6 @@ struct ynl_parse_arg; ...@@ -12,8 +12,6 @@ struct ynl_parse_arg;
* YNL internals / low level stuff * YNL internals / low level stuff
*/ */
/* Generic mnl helper code */
enum ynl_policy_type { enum ynl_policy_type {
YNL_PT_REJECT = 1, YNL_PT_REJECT = 1,
YNL_PT_IGNORE, YNL_PT_IGNORE,
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <linux/types.h> #include <linux/types.h>
#include <libmnl/libmnl.h>
#include <linux/genetlink.h> #include <linux/genetlink.h>
#include <sys/socket.h> #include <sys/socket.h>
......
...@@ -9,7 +9,7 @@ ifeq ("$(DEBUG)","1") ...@@ -9,7 +9,7 @@ ifeq ("$(DEBUG)","1")
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
endif endif
LDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a LDLIBS=../lib/ynl.a ../generated/protos.a
SRCS=$(wildcard *.c) SRCS=$(wildcard *.c)
BINS=$(patsubst %.c,%,${SRCS}) BINS=$(patsubst %.c,%,${SRCS})
......
...@@ -2677,7 +2677,6 @@ def main(): ...@@ -2677,7 +2677,6 @@ def main():
if args.mode == "user": if args.mode == "user":
if not args.header: if not args.header:
cw.p("#include <libmnl/libmnl.h>")
cw.p("#include <linux/genetlink.h>") cw.p("#include <linux/genetlink.h>")
cw.nl() cw.nl()
for one in args.user_header: for one in args.user_header:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment