Re: linux-next: Tree for Jul 20 (arch/x86/kvm/)

From: Stephen Rothwell
Date: Mon Jul 20 2020 - 14:43:13 EST


Hi Randy,

On Mon, 20 Jul 2020 09:56:08 -0700 Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> on x86_64:
>
> CC [M] arch/x86/kvm/mmu/page_track.o
> In file included from ../include/linux/pid.h:5:0,
> from ../include/linux/sched.h:14,
> from ../include/linux/kvm_host.h:12,
> from ../arch/x86/kvm/mmu/page_track.c:14:
> ../arch/x86/kvm/mmu/page_track.c: In function âkvm_page_track_writeâ:
> ../include/linux/rculist.h:727:30: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
> for (__list_check_srcu(cond), \
> ^
> ../arch/x86/kvm/mmu/page_track.c:232:2: note: in expansion of macro âhlist_for_each_entry_srcuâ
> hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../arch/x86/kvm/mmu/page_track.c: In function âkvm_page_track_flush_slotâ:
> ../include/linux/rculist.h:727:30: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
> for (__list_check_srcu(cond), \
> ^
> ../arch/x86/kvm/mmu/page_track.c:258:2: note: in expansion of macro âhlist_for_each_entry_srcuâ
> hlist_for_each_entry_srcu(n, &head->track_notifier_list, node,
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors

Caused by commit

bd4444c47de9 ("rculist : Introduce list/hlist_for_each_entry_srcu() macros")

presumably with CONFIG_PROVE_RCU_LIST not set.

--
Cheers,
Stephen Rothwell

Attachment: pgpYJSI9O8Xr0.pgp
Description: OpenPGP digital signature