drm/i915/gt: Wrap macro arg in ()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Jan 2021 19:29:09 +0000 (19:29 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Mar 2021 18:30:35 +0000 (19:30 +0100)
Checkpatch noticed that ppgtt->pd should have been (ppgtt)->pd to avoid
issues with macros.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122192913.4518-6-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/gt/intel_lrc_reg.h

index e1bd92e..41e5350 100644 (file)
@@ -39,7 +39,7 @@
 
 #define ASSIGN_CTX_PML4(ppgtt, reg_state) do { \
        u32 *reg_state__ = (reg_state); \
-       const u64 addr__ = px_dma(ppgtt->pd); \
+       const u64 addr__ = px_dma((ppgtt)->pd); \
        (reg_state__)[CTX_PDP0_UDW] = upper_32_bits(addr__); \
        (reg_state__)[CTX_PDP0_LDW] = lower_32_bits(addr__); \
 } while (0)