[Intel-gfx] [drm-intel:drm-intel-nightly 1/9] drivers/gpu/drm/i915/intel_runtime_pm.c:510:13: error: redefinition of 'gen9_write_dc_state'
kbuild test robot
fengguang.wu at intel.com
Mon Mar 7 14:29:09 UTC 2016
tree: git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head: f49783f8d8ee8d80539c7c2cf3c64f0dc6c230c6
commit: e71a6789aadcab1dc6c0180b52f59b901ca099f4 [1/9] Merge remote-tracking branch 'origin/drm-intel-next-queued' into drm-intel-nightly
config: x86_64-rhel (attached as .config)
reproduce:
git checkout e71a6789aadcab1dc6c0180b52f59b901ca099f4
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/intel_runtime_pm.c:510:13: error: redefinition of 'gen9_write_dc_state'
static void gen9_write_dc_state(struct drm_i915_private *dev_priv,
^
drivers/gpu/drm/i915/intel_runtime_pm.c:473:13: note: previous definition of 'gen9_write_dc_state' was here
static void gen9_write_dc_state(struct drm_i915_private *dev_priv,
^
drivers/gpu/drm/i915/intel_runtime_pm.c:473:13: warning: 'gen9_write_dc_state' defined but not used [-Wunused-function]
vim +/gen9_write_dc_state +510 drivers/gpu/drm/i915/intel_runtime_pm.c
779cb5d3 Mika Kuoppala 2016-02-18 494 } else if (rereads++ > 5) {
779cb5d3 Mika Kuoppala 2016-02-18 495 break;
4deccbb2 Patrik Jakobsson 2015-11-09 496 }
779cb5d3 Mika Kuoppala 2016-02-18 497
779cb5d3 Mika Kuoppala 2016-02-18 498 } while (rewrites < 100);
e71a6789 Imre Deak 2016-03-07 499
e71a6789 Imre Deak 2016-03-07 500 if (v != state)
e71a6789 Imre Deak 2016-03-07 501 DRM_ERROR("Writing dc state to 0x%x failed, now 0x%x\n",
e71a6789 Imre Deak 2016-03-07 502 state, v);
e71a6789 Imre Deak 2016-03-07 503
e71a6789 Imre Deak 2016-03-07 504 /* Most of the times we need one retry, avoid spam */
e71a6789 Imre Deak 2016-03-07 505 if (rewrites > 1)
e71a6789 Imre Deak 2016-03-07 506 DRM_DEBUG_KMS("Rewrote dc state to 0x%x %d times\n",
e71a6789 Imre Deak 2016-03-07 507 state, rewrites);
4deccbb2 Patrik Jakobsson 2015-11-09 508 }
4deccbb2 Patrik Jakobsson 2015-11-09 509
9b18572e Mika Kuoppala 2016-02-18 @510 static void gen9_write_dc_state(struct drm_i915_private *dev_priv,
9b18572e Mika Kuoppala 2016-02-18 511 u32 state)
9b18572e Mika Kuoppala 2016-02-18 512 {
9b18572e Mika Kuoppala 2016-02-18 513 int rewrites = 0;
9b18572e Mika Kuoppala 2016-02-18 514 int rereads = 0;
9b18572e Mika Kuoppala 2016-02-18 515 u32 v;
9b18572e Mika Kuoppala 2016-02-18 516
9b18572e Mika Kuoppala 2016-02-18 517 I915_WRITE(DC_STATE_EN, state);
9b18572e Mika Kuoppala 2016-02-18 518
:::::: The code at line 510 was first introduced by commit
:::::: 9b18572e83bfd5378b3fcff3acf123f7bddf558a drm/i915/gen9: Verify and enforce dc6 state writes
:::::: TO: Mika Kuoppala <mika.kuoppala at linux.intel.com>
:::::: CC: Jani Nikula <jani.nikula at intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 36096 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160307/f5af25bc/attachment-0001.obj>
More information about the Intel-gfx
mailing list