Wasn't really sure how to switch the silly -Wdeclaration-after-statement
flag off on a per directory basis. So make the code uglier instead.
for (i = 0; i < msm_ring->submit.nr_cmds; i++) {
struct msm_cmd *msm_cmd = msm_ring->cmds[i];
struct drm_msm_gem_submit_reloc *relocs = msm_cmd->relocs;
+ struct drm_msm_gem_submit_cmd *cmd;
unsigned nr_relocs = msm_cmd->nr_relocs;
/* for reusable stateobjs, the reloc table has reloc_idx that
relocs, nr_relocs);
}
- struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i];
+ cmd = &msm_ring->submit.cmds[i];
cmd->relocs = VOID2U64(relocs);
cmd->nr_relocs = nr_relocs;
}