x86: generalize padding field handling
authorJan Beulich <jbeulich@suse.com>
Fri, 4 Sep 2020 09:13:01 +0000 (11:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Sep 2020 09:13:01 +0000 (11:13 +0200)
commit696c273f3d9a169911308fb7e0a702a3eb6a150d
tree361fc15cbd0bc0dbed639bec60311d82c23af179
parenta609b6577f7867db4be1470130b7b3c686398c4f
x86: generalize padding field handling

The original intention was to ignore padding fields, but the pattern
matched only ones whose names started with an underscore. Also match
fields whose names are in line with the C spec by not having a leading
underscore. (Note that the leading ^ in the sed regexps was pointless
and hence get dropped.)

This requires adjusting some vNUMA macros, to avoid triggering
"enumeration value ... not handled in switch" warnings, which - due to
-Werror - would cause the build to fail. (I have to admit that I find
these padding fields odd, when translation of the containing structure
is needed anyway.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/common/compat/memory.c
xen/tools/get-fields.sh