Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make failed in Kernel 5.2 and later #11

Open
nokia-t1zhou opened this issue Dec 12, 2019 · 1 comment
Open

make failed in Kernel 5.2 and later #11

nokia-t1zhou opened this issue Dec 12, 2019 · 1 comment

Comments

@nokia-t1zhou
Copy link

nokia-t1zhou commented Dec 12, 2019

in the kernel version 5.2.x and later, the struct genl_ops delete filed "policy", this will cause make failed.
the new definition is:

/**
 * struct genl_ops - generic netlink operations
 * @cmd: command identifier
 * @internal_flags: flags used by the family
 * @flags: flags
 * @doit: standard command callback
 * @start: start callback for dumps
 * @dumpit: callback for dumpers
 * @done: completion callback for dumps
 */
struct genl_ops {
	int		       (*doit)(struct sk_buff *skb,
				       struct genl_info *info);
	int		       (*start)(struct netlink_callback *cb);
	int		       (*dumpit)(struct sk_buff *skb,
					 struct netlink_callback *cb);
	int		       (*done)(struct netlink_callback *cb);
	u8			cmd;
	u8			internal_flags;
	u8			flags;
	u8			validate;
};
@vmag
Copy link

vmag commented Mar 24, 2020

We have PR for this: #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants