x86/shadow: drop callback_mask pseudo-variables
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Jul 2021 14:46:46 +0000 (16:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Jul 2021 14:46:46 +0000 (16:46 +0200)
commit5b2a5523d697b6d1a97a18d33dc6bf92a33def32
treef888d41d1772daf2f4b774996e50786bd5805076
parent383b41974d5543b62f3181d216070fe3691fb130
x86/shadow: drop callback_mask pseudo-variables

In commit 90629587e16e ("x86/shadow: replace stale literal numbers in
hash_{vcpu,domain}_foreach()") I had to work around Clang not following
gcc in certain relaxed requirements as to the expressions usable with
_Static_assert() (gcc tolerates static const variables in otherwise
integer constant expressions). Roberto suggests that we'd better not
rely on such behavior. Drop the involved static const-s, using their
"expansions" in both of the prior use sites each. This then allows
dropping the short-circuiting of the check for clang.

Requested-by: Roberto Bagnara <roberto.bagnara@bugseng.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c