[PATCH xf86-video-intel 5/8] sna/gen2: Silence compiler warn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>

../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@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux