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>
done = 1; \
} while (0)
-static char * sh_audit_flags(struct vcpu *v, int level,
- int gflags, int sflags)
+static const char *sh_audit_flags(struct vcpu *v, int level,
+ int gflags, int sflags)
/* Common code for auditing flag bits */
{
if ( (sflags & _PAGE_PRESENT) && !(gflags & _PAGE_PRESENT) )
mfn_t mfn, gmfn, gl1mfn;
gfn_t gfn;
p2m_type_t p2mt;
- char *s;
+ const char *s;
int done = 0;
/* Follow the backpointer */
mfn_t mfn, gmfn, gl2mfn;
gfn_t gfn;
p2m_type_t p2mt;
- char *s;
+ const char *s;
int done = 0;
/* Follow the backpointer */
mfn_t mfn, gmfn, gl3mfn;
gfn_t gfn;
p2m_type_t p2mt;
- char *s;
+ const char *s;
int done = 0;
/* Follow the backpointer */
mfn_t mfn, gmfn, gl4mfn;
gfn_t gfn;
p2m_type_t p2mt;
- char *s;
+ const char *s;
int done = 0;
/* Follow the backpointer */