[PATCH] drm/i915/gmch: fix build error var set but not used

2023-08-11 Thread Wang Jinchao
When CONFIG_PNP is not defined, i915 will fail to compile with error bellow: drivers/gpu/drm/i915/soc/intel_gmch.c:43:13: error: variable ‘mchbar_addr’ set but not used Fix it by surrounding variable declaration and assignment with ifdef Signed-off-by: Wang Jinchao --- drivers/gpu/drm/i

Re: [PATCH] drm/i915/gmch: fix build error var set but not used

2023-08-10 Thread Jani Nikula
On Thu, 10 Aug 2023, Wang Jinchao wrote: > When CONFIG_PNP is not defined, i915 will fail to compile with error bellow: > drivers/gpu/drm/i915/soc/intel_gmch.c:43:13: error: variable > ‘mchbar_addr’ set but not used > Fix it by surrounding variable declaration and assignment with ifdef > >