From 0db789e180b6b01fb8aff547879387058f52a0b9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 13 Jun 2012 14:26:37 +0200 Subject: sna: Constification Adding preserving const modifiers to decrease amount of const warnings Signed-off-by: Zdenek Kabelac Signed-off-by: Chris Wilson --- src/sna/kgem_debug_gen4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sna/kgem_debug_gen4.c') diff --git a/src/sna/kgem_debug_gen4.c b/src/sna/kgem_debug_gen4.c index 53c350b8..9b80dc88 100644 --- a/src/sna/kgem_debug_gen4.c +++ b/src/sna/kgem_debug_gen4.c @@ -256,7 +256,7 @@ static void primitive_out(struct kgem *kgem, uint32_t *data) static void state_base_out(uint32_t *data, uint32_t offset, unsigned int index, - char *name) + const char *name) { if (data[index] & 1) kgem_debug_print(data, offset, index, @@ -270,7 +270,7 @@ state_base_out(uint32_t *data, uint32_t offset, unsigned int index, static void state_max_out(uint32_t *data, uint32_t offset, unsigned int index, - char *name) + const char *name) { if (data[index] == 1) kgem_debug_print(data, offset, index, @@ -460,7 +460,7 @@ int kgem_gen4_decode_3d(struct kgem *kgem, uint32_t offset) uint32_t op; unsigned int len; int i; - char *desc1 = NULL; + const char *desc1 = NULL; len = (data[0] & 0xff) + 2; op = (data[0] & 0xffff0000) >> 16; -- cgit v1.2.3