[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJFZqHwAFao9En4LRBST3YSufbrjbtsV09_h9fOVTSsCHtsT_w@mail.gmail.com>
Date: Mon, 2 Apr 2012 18:16:14 +0800
From: RongQing Li <roy.qing.li@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] ipv6: fix array index in ip6_mc_add_src()
2012/4/2 David Miller <davem@...emloft.net>:
> From: roy.qing.li@...il.com
> Date: Sun, 1 Apr 2012 16:45:26 +0800
>
>> From: RongQing.Li <roy.qing.li@...il.com>
>>
>> Convert array index from the loop bound to the loop index.
>>
>> Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
>
> That's not all you are doing:
>
>> - (void) ip6_mc_del1_src(pmc, sfmode, &psfsrc[i]);
>> + ip6_mc_del1_src(pmc, sfmode, &psfsrc[j]);
>
> You absolutely MUST mention and explain this (void) removal.
> It's probably there to elide an unchecked return value
> warning from the compiler.
since ip6_mc_del1_src() does not use __must_check likely attribute.
I try to compile with several gcc warning options, but do not
find which options can report the unchecked return value.
Maybe other tools will complain the unchecked return value.
So I will keep the void.
-R
--
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