From: Helge Deller Date: Sat, 2 Mar 2013 19:01:05 +0000 (+0100) Subject: parisc: fix compile warnings triggered by atomic_sub(sizeof(),v) X-Git-Tag: v3.9-rc1~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8527ed4a7086e7312b8d021ea36d367f7e378c2e;p=pandora-kernel.git parisc: fix compile warnings triggered by atomic_sub(sizeof(),v) This fixes compile warnings like this one: net/ipv4/igmp.c: In function ‘ip_mc_leave_group’: net/ipv4/igmp.c:1898:3: warning: overflow in implicit constant conversion [-Woverflow] atomic_sub() is defined as __atomic_add_return(-(VAL),(v)))) and if VAL is of type unsigned int (as returned by sizeof()), negating this value will overflow. Fix this by type-casting VAL to int type. Signed-off-by: Helge Deller --- Reading git-diff-tree failed