connector: Fix incompatible pointer type warning
Subsystems (2)
PATCH 1/1 connector: Fix incompatible pointer type warning
Commit 7069331 (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
--- drivers/connector/cn_proc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/connector/cn_proc.c +2 -1
@@ -227,7 +227,8 @@ static void cn_proc_ack(int err, int rcvd_seq, int rcvd_ack)* cn_proc_mcast_ctl * @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 ;int err =0 ;
Signature · 1 line
1.6.5.rc1.44.ga1675
From: Stephen Boyd <[email protected]>
Date: Tue, 6 Oct 2009 01:23:37 -0700
Quoted 9 lines
Commit 7069331 (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 typeSigned-off-by Stephen Boyd <[email protected]>
Applied, thanks.