]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b3e7c176e08eb6e01374427317e4ff98796c165
tree5e67dcd938c0e45a0027679a8ddbeebdc8ee478d
parent45bf93719c54e1b53c99951072f33105d92cf6f1
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