提交 f0b25932 编写于 作者: S Stephen Boyd 提交者: David S. Miller

connector: Fix incompatible pointer type warning

Commit 7069331d (connector: Provide the sender's credentials to the
callback, 2009-10-02) changed callbacks to take two arguments but missed
this one.

drivers/connector/cn_proc.c: In function ‘cn_proc_init’:
drivers/connector/cn_proc.c:263: warning: passing argument 3 of
‘cn_add_callback’ from incompatible pointer type
Signed-off-by: NStephen Boyd <bebarino@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a160ee69
...@@ -227,7 +227,8 @@ static void cn_proc_ack(int err, int rcvd_seq, int rcvd_ack) ...@@ -227,7 +227,8 @@ static void cn_proc_ack(int err, int rcvd_seq, int rcvd_ack)
* cn_proc_mcast_ctl * cn_proc_mcast_ctl
* @data: message sent from userspace via the connector * @data: message sent from userspace via the connector
*/ */
static void cn_proc_mcast_ctl(struct cn_msg *msg) static void cn_proc_mcast_ctl(struct cn_msg *msg,
struct netlink_skb_parms *nsp)
{ {
enum proc_cn_mcast_op *mc_op = NULL; enum proc_cn_mcast_op *mc_op = NULL;
int err = 0; int err = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册