[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140721.143146.680791642503413523.davem@davemloft.net>
Date: Mon, 21 Jul 2014 14:31:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: David.Laight@...LAB.COM
Cc: karoly.kemeny@...il.com, jmorris@...ei.org, netdev@...r.kernel.org
Subject: Re: [PATCH] clean up sparse cast warning in do_ip_getsockopt
From: David Laight <David.Laight@...LAB.COM>
Date: Mon, 21 Jul 2014 08:54:02 +0000
> From: David Miller
>> From: Karoly Kemeny <karoly.kemeny@...il.com>
>> Date: Sun, 20 Jul 2014 13:30:17 +0200
>>
>> > There is a sparse warning because of the implicit pointer cast in
>> > do_ip_getsockopt.
>> >
>> > Signed-off-by: Karoly Kemeny <karoly.kemeny@...il.com>
>>
>> Please format your subject line correctly, it should be of the form:
>>
>> [PATCH] ${SUBSYSTEM}: Description.
>>
>> Your's is missing the subsystem prefix, which in this case should
>> be "ipv4: "
>>
>> > - msg.msg_control = optval;
>> > + msg.msg_control = (__force void*) optval;
>>
>> Please put a space between "void" and "*" in the cast.
>
> And remove the one after the ')' ?
Not necessarily, I don't like when the closing parens and the variable
"touch".
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists