]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
x86: replace open-coded occurrences of sizeof_field()... ex-processor-masks6
authorPaul Durrant <pdurrant@amazon.com>
Mon, 23 Nov 2020 08:36:40 +0000 (08:36 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 24 Nov 2020 19:00:54 +0000 (19:00 +0000)
commit346bba584c8889c6f5d57e3f4d01a4b9b1055237
tree7d79cac38a1ddc9ca8b13334e1ec092482e3753b
parent9fa2418b77bb608fca9b791791b64c8966ca9fe4
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>
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/setup.c