* [PATCH -mm] connector: Passing required parameter for function cn_add_callback.
@ 2009-10-12 2:44 Rakib Mullick
2009-10-12 5:35 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2009-10-12 2:44 UTC (permalink / raw)
To: netdev; +Cc: Andrew Morton, zbr, LKML
We need to pass struct netlink_skb_parms as parameter for
cn_proc_mcast_ctl, which
is a callback function supposed to take two parameter. Fixes the
following warning and
a kernel-doc notation of the function.
CC drivers/connector/cn_proc.o
drivers/connector/cn_proc.c: In function `cn_proc_init':
drivers/connector/cn_proc.c:263: warning: passing arg 3 of
`cn_add_callback' from incompatible pointer type
----
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
--- linus/drivers/connector/cn_proc.c 2009-10-09 17:38:22.000000000 +0600
+++ rakib/drivers/connector/cn_proc.c 2009-10-12 09:45:33.000000000 +0600
@@ -225,9 +225,10 @@ static void cn_proc_ack(int err, int rcv
/**
* cn_proc_mcast_ctl
- * @data: message sent from userspace via the connector
+ * @msg: message sent from userspace via the connector
+ * @nsp: remains unused but we need it to keep it
*/
-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;
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH -mm] connector: Passing required parameter for function cn_add_callback.
2009-10-12 2:44 [PATCH -mm] connector: Passing required parameter for function cn_add_callback Rakib Mullick
@ 2009-10-12 5:35 ` David Miller
2009-10-13 5:27 ` Rakib Mullick
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2009-10-12 5:35 UTC (permalink / raw)
To: rakib.mullick; +Cc: netdev, akpm, zbr, linux-kernel
From: Rakib Mullick <rakib.mullick@gmail.com>
Date: Mon, 12 Oct 2009 08:44:33 +0600
> */
> -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)
Your patches are unusable because your email client corrupts the
patch, here you can see it is splitting up long lines.
Please fix this up and resubmit.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -mm] connector: Passing required parameter for function cn_add_callback.
2009-10-12 5:35 ` David Miller
@ 2009-10-13 5:27 ` Rakib Mullick
2009-10-13 6:42 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2009-10-13 5:27 UTC (permalink / raw)
To: David Miller; +Cc: netdev, akpm, zbr, linux-kernel
On 10/12/09, David Miller <davem@davemloft.net> wrote:
> From: Rakib Mullick <rakib.mullick@gmail.com>
> Date: Mon, 12 Oct 2009 08:44:33 +0600
>
>
> > */
> > -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)
>
>
> Your patches are unusable because your email client corrupts the
> patch, here you can see it is splitting up long lines.
>
> Please fix this up and resubmit.
Oops..... sorry for that. This is the second time I'm facing this
problem. I'll try to fix it.
I'm resubmitting the patch. Here I've recreate the patch to split the
line into two.
And it just reaches its 80 line mark. Hopefully it will be okay.
Thanks,
----
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
--- linus/drivers/connector/cn_proc.c 2009-10-09 17:38:22.000000000 +0600
+++ rakib/drivers/connector/cn_proc.c 2009-10-13 12:29:37.000000000 +0600
@@ -225,9 +225,11 @@ static void cn_proc_ack(int err, int rcv
/**
* cn_proc_mcast_ctl
- * @data: message sent from userspace via the connector
+ * @msg: message sent from userspace via the connector
+ * @nsp: remains unused but we need it to keep it
*/
-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;
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH -mm] connector: Passing required parameter for function cn_add_callback.
2009-10-13 5:27 ` Rakib Mullick
@ 2009-10-13 6:42 ` David Miller
2009-10-13 7:00 ` Rakib Mullick
0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2009-10-13 6:42 UTC (permalink / raw)
To: rakib.mullick; +Cc: netdev, akpm, zbr, linux-kernel
From: Rakib Mullick <rakib.mullick@gmail.com>
Date: Tue, 13 Oct 2009 11:27:49 +0600
> On 10/12/09, David Miller <davem@davemloft.net> wrote:
>> From: Rakib Mullick <rakib.mullick@gmail.com>
>> Date: Mon, 12 Oct 2009 08:44:33 +0600
>>
>>
>> > */
>> > -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)
>>
>>
>> Your patches are unusable because your email client corrupts the
>> patch, here you can see it is splitting up long lines.
>>
>> Please fix this up and resubmit.
> Oops..... sorry for that. This is the second time I'm facing this
> problem. I'll try to fix it.
> I'm resubmitting the patch. Here I've recreate the patch to split the
> line into two.
> And it just reaches its 80 line mark. Hopefully it will be okay.
Upstream and my net-next-2.6 tree both have this function with
the proper parameters, maybe Andrew's -mm tree had some conflicts
and they weren't dealt with correctly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH -mm] connector: Passing required parameter for function cn_add_callback.
2009-10-13 6:42 ` David Miller
@ 2009-10-13 7:00 ` Rakib Mullick
0 siblings, 0 replies; 5+ messages in thread
From: Rakib Mullick @ 2009-10-13 7:00 UTC (permalink / raw)
To: David Miller; +Cc: netdev, akpm, zbr, linux-kernel
On 10/13/09, David Miller <davem@davemloft.net> wrote:
> From: Rakib Mullick <rakib.mullick@gmail.com>
>
> Date: Tue, 13 Oct 2009 11:27:49 +0600
>
>
> > On 10/12/09, David Miller <davem@davemloft.net> wrote:
> >> From: Rakib Mullick <rakib.mullick@gmail.com>
> >> Date: Mon, 12 Oct 2009 08:44:33 +0600
> >>
> >>
> >> > */
> >> > -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)
> >>
> >>
> >> Your patches are unusable because your email client corrupts the
> >> patch, here you can see it is splitting up long lines.
> >>
> >> Please fix this up and resubmit.
> > Oops..... sorry for that. This is the second time I'm facing this
> > problem. I'll try to fix it.
> > I'm resubmitting the patch. Here I've recreate the patch to split the
> > line into two.
> > And it just reaches its 80 line mark. Hopefully it will be okay.
>
>
> Upstream and my net-next-2.6 tree both have this function with
> the proper parameters, maybe Andrew's -mm tree had some conflicts
> and they weren't dealt with correctly.
>
Ah, sorry again. I should've check the upstream first. Sorry for noise.
Thanks,
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-13 7:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 2:44 [PATCH -mm] connector: Passing required parameter for function cn_add_callback Rakib Mullick
2009-10-12 5:35 ` David Miller
2009-10-13 5:27 ` Rakib Mullick
2009-10-13 6:42 ` David Miller
2009-10-13 7:00 ` Rakib Mullick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox