summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2023-03-18 15:45:41 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2024-05-07 00:32:24 +0300
commitea0b9aa5d0f26f17021e516f11ccf7b316ea1771 (patch)
tree9b1d7ac6c72441105dbc3e219592b60b17450ccb
parent0750dd02b9c60708417c214409dae9fc3f4a3c31 (diff)
sna/gen2: Silence compiler warn
../src/sna/kgem_debug_gen2.c:625:5: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 625 | const static struct { | ^~~~~ Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--src/sna/kgem_debug_gen2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem_debug_gen2.c b/src/sna/kgem_debug_gen2.c
index 3f91c29d..a4b1b841 100644
--- a/src/sna/kgem_debug_gen2.c
+++ b/src/sna/kgem_debug_gen2.c
@@ -622,7 +622,7 @@ decode_3d_1c(struct kgem *kgem, uint32_t offset)
int kgem_gen2_decode_3d(struct kgem *kgem, uint32_t offset)
{
- const static struct {
+ static const struct {
uint32_t opcode;
int min_len;
int max_len;