tools: ynl-gen: remove unused parse code
Commit f2ba1e5e2208 ("tools: ynl-gen: stop generating common notification handlers") removed the last caller of the parse_cb_run() helper. We no longer need to export ynl_cb_array. Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Link: https://lore.kernel.org/r/20240227223032.1835527-8-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
d62c5d487c
commit
9c29a11316
@ -83,8 +83,6 @@ struct ynl_ntf_base_type {
|
||||
unsigned char data[] __attribute__((aligned(8)));
|
||||
};
|
||||
|
||||
extern mnl_cb_t ynl_cb_array[NLMSG_MIN_TYPE];
|
||||
|
||||
struct nlmsghdr *
|
||||
ynl_gemsg_start_req(struct ynl_sock *ys, __u32 id, __u8 cmd, __u8 version);
|
||||
struct nlmsghdr *
|
||||
|
@ -297,7 +297,7 @@ static int ynl_cb_noop(const struct nlmsghdr *nlh, void *data)
|
||||
return MNL_CB_OK;
|
||||
}
|
||||
|
||||
mnl_cb_t ynl_cb_array[NLMSG_MIN_TYPE] = {
|
||||
static mnl_cb_t ynl_cb_array[NLMSG_MIN_TYPE] = {
|
||||
[NLMSG_NOOP] = ynl_cb_noop,
|
||||
[NLMSG_ERROR] = ynl_cb_error,
|
||||
[NLMSG_DONE] = ynl_cb_done,
|
||||
|
@ -40,14 +40,6 @@ class BaseNlLib:
|
||||
def get_family_id(self):
|
||||
return 'ys->family_id'
|
||||
|
||||
def parse_cb_run(self, cb, data, is_dump=False, indent=1):
|
||||
ind = '\n\t\t' + '\t' * indent + ' '
|
||||
if is_dump:
|
||||
return f"mnl_cb_run2(ys->rx_buf, len, 0, 0, {cb}, {data},{ind}ynl_cb_array, NLMSG_MIN_TYPE)"
|
||||
else:
|
||||
return f"mnl_cb_run2(ys->rx_buf, len, ys->seq, ys->portid,{ind}{cb}, {data},{ind}" + \
|
||||
"ynl_cb_array, NLMSG_MIN_TYPE)"
|
||||
|
||||
|
||||
class Type(SpecAttr):
|
||||
def __init__(self, family, attr_set, attr, value):
|
||||
|
Loading…
x
Reference in New Issue
Block a user