Hi Rodrigo, [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on v4.12-rc4 next-20170607] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Rodrigo-Vivi/drm-i915-cnl-Introduce-initial-Cannonlake-Workarounds/20170608-041443 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-x011-201723 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from include/linux/err.h:4:0, from include/linux/clk.h:15, from include/linux/cpufreq.h:14, from drivers/gpu/drm/i915/intel_pm.c:28: drivers/gpu/drm/i915/intel_pm.c: In function 'cannonlake_init_clock_gating': drivers/gpu/drm/i915/intel_pm.c:8298:6: error: implicit declaration of function 'IS_CNL_REVID' [-Werror=implicit-function-declaration] if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_pm.c:8298:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^~ drivers/gpu/drm/i915/intel_pm.c:8298:29: error: 'CNL_REVID_A0' undeclared (first use in this function) if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_pm.c:8298:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^~ drivers/gpu/drm/i915/intel_pm.c:8298:29: note: each undeclared identifier is reported only once for each function it appears in if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_pm.c:8298:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^~ drivers/gpu/drm/i915/intel_pm.c:8298:43: error: 'CNL_REVID_B0' undeclared (first use in this function) if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_pm.c:8298:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) ^~ drivers/gpu/drm/i915/intel_pm.c: In function 'intel_init_clock_gating_hooks': drivers/gpu/drm/i915/intel_pm.c:8783:6: error: implicit declaration of function 'IS_CANNONLAKE' [-Werror=implicit-function-declaration] if (IS_CANNONLAKE(dev_priv)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/gpu/drm/i915/intel_pm.c:8783:2: note: in expansion of macro 'if' if (IS_CANNONLAKE(dev_priv)) ^~ cc1: some warnings being treated as errors -- In file included from include/asm-generic/bug.h:4:0, from arch/x86/include/asm/bug.h:81, from include/linux/bug.h:4, from include/linux/mmdebug.h:4, from include/linux/gfp.h:4, from include/linux/slab.h:14, from drivers/gpu/drm/i915/i915_gem_gtt.c:26: drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gtt_write_workarounds': drivers/gpu/drm/i915/i915_gem_gtt.c:1892:35: error: implicit declaration of function 'IS_GEN10' [-Werror=implicit-function-declaration] else if (IS_GEN9_BC(dev_priv) || IS_GEN10(dev_priv)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/i915_gem_gtt.c:1892:7: note: in expansion of macro 'if' else if (IS_GEN9_BC(dev_priv) || IS_GEN10(dev_priv)) ^~ cc1: some warnings being treated as errors -- In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/uapi/drm/drm.h:41, from include/uapi/drm/i915_drm.h:30, from drivers/gpu/drm/i915/i915_drv.h:33, from drivers/gpu/drm/i915/intel_engine_cs.c:25: drivers/gpu/drm/i915/intel_engine_cs.c: In function 'cnl_init_workarounds': drivers/gpu/drm/i915/intel_engine_cs.c:1094:6: error: implicit declaration of function 'IS_CNL_REVID' [-Werror=implicit-function-declaration] if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_engine_cs.c:1094:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^~ drivers/gpu/drm/i915/intel_engine_cs.c:1094:29: error: 'CNL_REVID_A0' undeclared (first use in this function) if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_engine_cs.c:1094:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^~ drivers/gpu/drm/i915/intel_engine_cs.c:1094:29: note: each undeclared identifier is reported only once for each function it appears in if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ >> drivers/gpu/drm/i915/intel_engine_cs.c:1094:2: note: in expansion of macro 'if' if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_A0)) { ^~ drivers/gpu/drm/i915/intel_engine_cs.c: In function 'init_workarounds_ring': drivers/gpu/drm/i915/intel_engine_cs.c:1189:11: error: implicit declaration of function 'IS_CANNONLAKE' [-Werror=implicit-function-declaration] else if (IS_CANNONLAKE(dev_priv)) ^ include/linux/compiler.h:160:30: note: in definition of macro '__trace_if' if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ ^~~~ drivers/gpu/drm/i915/intel_engine_cs.c:1189:7: note: in expansion of macro 'if' else if (IS_CANNONLAKE(dev_priv)) ^~ cc1: some warnings being treated as errors vim +/if +8298 drivers/gpu/drm/i915/intel_pm.c 8282 * See the definition of L3SQCREG1 in BSpec. 8283 */ 8284 POSTING_READ(GEN8_L3SQCREG1); 8285 udelay(1); 8286 I915_WRITE(GEN7_MISCCPCTL, misccpctl); 8287 } 8288 8289 static void cannonlake_init_clock_gating(struct drm_i915_private *dev_priv) 8290 { 8291 gen9_init_clock_gating(dev_priv); 8292 8293 /* WaFbcNukeOnHostModify:cnl */ 8294 I915_WRITE(ILK_DPFC_CHICKEN, I915_READ(ILK_DPFC_CHICKEN) | 8295 ILK_DPFC_NUKE_ON_ANY_MODIFICATION); 8296 8297 /* WaSarbUnitClockGatingDisable:cnl (pre-prod) */ > 8298 if (IS_CNL_REVID(dev_priv, CNL_REVID_A0, CNL_REVID_B0)) 8299 I915_WRITE(SLICE_UNIT_LEVEL_CLKGATE, I915_READ(SLICE_UNIT_LEVEL_CLKGATE) | 8300 SARBUNIT_CLKGATE_DIS); 8301 } 8302 8303 static void kabylake_init_clock_gating(struct drm_i915_private *dev_priv) 8304 { 8305 gen9_init_clock_gating(dev_priv); 8306 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation