OSDN Git Service

amdgpu: Move union declaration to top of amdgpu_cs_ctx_override_priority
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 20 Jun 2019 08:42:10 +0000 (10:42 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 25 Jun 2019 15:58:31 +0000 (17:58 +0200)
commite246114c46140589ae95dfa3f517d59e853667d1
tree881e668ad3c3e69dbcba177170b6c0a2974f4a3b
parent8849aa87fb3879b7d3fd4c9e4435bc0eb1499fa9
amdgpu: Move union declaration to top of amdgpu_cs_ctx_override_priority

Avoids compiler warning:

../../amdgpu/amdgpu_cs.c: In function 'amdgpu_cs_ctx_override_priority':
../../amdgpu/amdgpu_cs.c:155:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  union drm_amdgpu_sched args;
  ^~~~~

Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu_cs.c