drm/i915/lrc: Update reg_state macros to pass checkpatch
authorMichel Thierry <michel.thierry@intel.com>
Wed, 24 Jan 2018 00:43:48 +0000 (16:43 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Jan 2018 09:19:38 +0000 (09:19 +0000)
commit751d115302466113ab757db5771d1e9e74d1b0b7
tree5e67dcd938c0e45a0027679a8ddbeebdc8ee478d
parent8810bc5609117aad1dd01c1c8c4cd3847ec2fd3e
drm/i915/lrc: Update reg_state macros to pass checkpatch

The macros we use to init the reg_state had the following issues reported
by checkpatch --strict.

  Macro argument reuse 'reg_state' - possible side-effects
  Macro argument reuse 'pos' - possible side-effects
  Macro argument reuse 'ppgtt' - possible side-effects
  spaces preferred around that '+' (ctx:VxV)

So fix these issues before they are moved to a new header file.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180124004349.22126-1-michel.thierry@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_lrc.c