提交 b461d2f2 编写于 作者: P Per Liden 提交者: David S. Miller

[NETLINK] genetlink: fix cmd type in genl_ops to be consistent to u8

Signed-off-by: NPer Liden <per.liden@ericsson.com>
ACKed-by: NJamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fd19f329
......@@ -60,7 +60,7 @@ struct genl_info
*/
struct genl_ops
{
unsigned int cmd;
u8 cmd;
unsigned int flags;
struct nla_policy *policy;
int (*doit)(struct sk_buff *skb,
......
......@@ -441,7 +441,7 @@ static int ctrl_dumpfamily(struct sk_buff *skb, struct netlink_callback *cb)
}
static struct sk_buff *ctrl_build_msg(struct genl_family *family, u32 pid,
int seq, int cmd)
int seq, u8 cmd)
{
struct sk_buff *skb;
int err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册