Commit f0b25932b8e60e96f5f371b27442e560803ac6f5

Authored by Stephen Boyd
Committed by David S. Miller
1 parent a160ee69c6

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

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

drivers/connector/cn_proc.c
... ... @@ -227,7 +227,8 @@
227 227 * cn_proc_mcast_ctl
228 228 * @data: message sent from userspace via the connector
229 229 */
230   -static void cn_proc_mcast_ctl(struct cn_msg *msg)
  230 +static void cn_proc_mcast_ctl(struct cn_msg *msg,
  231 + struct netlink_skb_parms *nsp)
231 232 {
232 233 enum proc_cn_mcast_op *mc_op = NULL;
233 234 int err = 0;