* build warning on v4.0-rc1
@ 2015-02-25 17:51 Felipe Balbi
2015-02-25 21:45 ` Al Viro
0 siblings, 1 reply; 2+ messages in thread
From: Felipe Balbi @ 2015-02-25 17:51 UTC (permalink / raw)
To: linux-arm-kernel
Hi Al,
commit 3b994d98a815d934ab6a77a380882865982c14f9 (get rid of the second
argument of acct_kill()) added a new build warning when building
kernel/acct.c. Warning can be seen below. Revert of that commit is
non-trivial, so I haven't tried to check if reverting it fixes the
warning.
One one to silent the warning would be to cast return of cmpxchg to void
on the call inside acct_pin_kill(), but maybe there's a better way?
In file included from ./arch/arm/include/asm/atomic.h:19:0,
from include/linux/atomic.h:4,
from include/linux/debug_locks.h:5,
from include/linux/lockdep.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:81,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/mm.h:9,
from kernel/acct.c:46:
kernel/acct.c: In function ?acct_kill?:
./arch/arm/include/asm/cmpxchg.h:205:3: warning: value computed is not used [-Wunused-value]
((__typeof__(*(ptr)))__cmpxchg_mb((ptr), \
^
kernel/acct.c:181:3: note: in expansion of macro ?cmpxchg?
cmpxchg(&ns->bacct, acct, NULL);
^
cheers
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150225/ef25bff5/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
* build warning on v4.0-rc1
2015-02-25 17:51 build warning on v4.0-rc1 Felipe Balbi
@ 2015-02-25 21:45 ` Al Viro
0 siblings, 0 replies; 2+ messages in thread
From: Al Viro @ 2015-02-25 21:45 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Feb 25, 2015 at 11:51:43AM -0600, Felipe Balbi wrote:
> Hi Al,
>
> commit 3b994d98a815d934ab6a77a380882865982c14f9 (get rid of the second
> argument of acct_kill()) added a new build warning when building
> kernel/acct.c. Warning can be seen below. Revert of that commit is
> non-trivial, so I haven't tried to check if reverting it fixes the
> warning.
Warning is a false positive; we really do not care about the return
value here.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-25 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 17:51 build warning on v4.0-rc1 Felipe Balbi
2015-02-25 21:45 ` Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).