[Intel-gfx] [PATCH xf86-video-intel 5/8] sna/gen2: Silence compiler warn
Ville Syrjala
ville.syrjala at linux.intel.com
Sat Mar 18 13:45:41 UTC 2023
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
../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 at linux.intel.com>
---
src/sna/kgem_debug_gen2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sna/kgem_debug_gen2.c b/src/sna/kgem_debug_gen2.c
index 3f91c29d1967..a4b1b841aef9 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;
--
2.39.2
More information about the Intel-gfx
mailing list