From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [drm-drm-intel:drm-intel-next-queued 1/1] drivers/gpu/drm/i915/gt/intel_lrc.c:1224:3: note: in expansion of macro 'I915_SELFTEST_ONLY'
Date: Mon, 17 Feb 2020 01:14:36 +0800 [thread overview]
Message-ID: <202002170133.oEOcvCSF%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3069 bytes --]
tree: git://anongit.freedesktop.org/drm/drm-intel drm-intel-next-queued
head: 1883a0a4658eaba354db2179b4d3395247d27582
commit: 1883a0a4658eaba354db2179b4d3395247d27582 [1/1] drm/i915: Track hw reported context runtime
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-4) 7.5.0
reproduce:
git checkout 1883a0a4658eaba354db2179b4d3395247d27582
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/gt/intel_engine_types.h:24:0,
from drivers/gpu/drm/i915/gt/intel_context_types.h:18,
from drivers/gpu/drm/i915/gem/i915_gem_context_types.h:20,
from drivers/gpu/drm/i915/i915_request.h:31,
from drivers/gpu/drm/i915/i915_active.h:13,
from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:13,
from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30,
from drivers/gpu/drm/i915/i915_drv.h:72,
from drivers/gpu/drm/i915/gt/intel_lrc.c:136:
drivers/gpu/drm/i915/gt/intel_lrc.c: In function 'intel_context_update_runtime':
drivers/gpu/drm/i915/i915_selftest.h:118:31: warning: statement with no effect [-Wunused-value]
#define I915_SELFTEST_ONLY(x) 0
^
>> drivers/gpu/drm/i915/gt/intel_lrc.c:1224:3: note: in expansion of macro 'I915_SELFTEST_ONLY'
I915_SELFTEST_ONLY(ce->runtime.num_underflow += dt < 0);
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_selftest.h:118:31: warning: statement with no effect [-Wunused-value]
#define I915_SELFTEST_ONLY(x) 0
^
drivers/gpu/drm/i915/gt/intel_lrc.c:1225:3: note: in expansion of macro 'I915_SELFTEST_ONLY'
I915_SELFTEST_ONLY(ce->runtime.max_underflow =
^~~~~~~~~~~~~~~~~~
vim +/I915_SELFTEST_ONLY +1224 drivers/gpu/drm/i915/gt/intel_lrc.c
1208
1209 static void intel_context_update_runtime(struct intel_context *ce)
1210 {
1211 u32 old;
1212 s32 dt;
1213
1214 if (intel_context_is_barrier(ce))
1215 return;
1216
1217 old = ce->runtime.last;
1218 ce->runtime.last = intel_context_get_runtime(ce);
1219 dt = ce->runtime.last - old;
1220
1221 if (unlikely(dt <= 0)) {
1222 CE_TRACE(ce, "runtime underflow: last=%u, new=%u, delta=%d\n",
1223 old, ce->runtime.last, dt);
> 1224 I915_SELFTEST_ONLY(ce->runtime.num_underflow += dt < 0);
1225 I915_SELFTEST_ONLY(ce->runtime.max_underflow =
1226 max_t(u32, ce->runtime.max_underflow, -dt));
1227 return;
1228 }
1229
1230 ewma_runtime_add(&ce->runtime.avg, dt);
1231 ce->runtime.total += dt;
1232 }
1233
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28326 bytes --]
reply other threads:[~2020-02-16 17:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202002170133.oEOcvCSF%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.