xen/x86: shadow: The return type of sh_audit_flags() should be const
authorJulien Grall <jgrall@amazon.com>
Tue, 6 Apr 2021 18:58:05 +0000 (19:58 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 6 Apr 2021 19:03:10 +0000 (20:03 +0100)
commit8b9a78269d2c819194fcc6843d6da64cab5e0ca4
tree3ad4dde37e81ab3f67070276f83b9c666002cef7
parent1f0358093c101b170f7516779b70d3c8e11965ef
xen/x86: shadow: The return type of sh_audit_flags() should be const

The function sh_audit_flags() is returning pointer to literal strings.
They should not be modified, so the return is now const and this is
propagated to the callers.

Take the opportunity to fix the coding style in the declaration of
sh_audit_flags.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c