x86: replace open-coded occurrences of sizeof_field()...
authorPaul Durrant <pdurrant@amazon.com>
Wed, 25 Nov 2020 13:06:42 +0000 (14:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Nov 2020 13:06:42 +0000 (14:06 +0100)
commit8041317f72f684ee4e64209c0dd4a8b7ea200e0b
treea187566d395c01ca8df85b0f88bdd0d717397c46
parent758fae24d7b90fcfa7dffbffb5a5cab274caf3fc
x86: replace open-coded occurrences of sizeof_field()...

... with macro evaluations, now that it is available.

A recent patch imported the sizeof_field() macro from Linux. This patch makes
use of it in places where the construct is currently open-coded.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/setup.c