Hi Chris,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v5.7-rc1 next-20200412]
[cannot apply to drm-tip/drm-tip]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-execlists-...
base:
git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a001-20200412 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gt/intel_lrc.c: In function 'trace_ports':
> drivers/gpu/drm/i915/gt/intel_lrc.c:1443:15: error: unused
variable 'p1' [-Werror=unused-variable]
char p0[40], p1[40];
^
> drivers/gpu/drm/i915/gt/intel_lrc.c:1443:7: error: unused
variable 'p0' [-Werror=unused-variable]
char p0[40], p1[40];
^
drivers/gpu/drm/i915/gt/intel_lrc.c: At top level:
> drivers/gpu/drm/i915/gt/intel_lrc.c:1418:14: error:
'dump_port' defined but not used [-Werror=unused-function]
static char
*dump_port(char *buf, int buflen,
^
cc1: all warnings being treated as errors
vim +/p1 +1443 drivers/gpu/drm/i915/gt/intel_lrc.c
1417
1418 static char *dump_port(char *buf, int buflen,
1419
const char *prefix,
1420 struct i915_request *rq)
1421 {
1422 if (!rq)
1423 return "";
1424
1425 snprintf(buf, buflen, "%s%llx:%lld%s prio %d",
1426 prefix,
1427 rq->fence.context, rq->fence.seqno,
1428 i915_request_completed(rq) ? "!" :
1429 i915_request_started(rq) ? "*" :
1430 "",
1431 rq_prio(rq));
1432
1433 return buf;
1434 }
1435
1436 static __maybe_unused void
1437 trace_ports(const struct intel_engine_execlists *execlists,
1438 const char *msg,
1439 struct i915_request * const *ports)
1440 {
1441 const struct intel_engine_cs *engine =
1442 container_of(execlists, typeof(*engine), execlists);
1443 char p0[40], p1[40];
1444
1445 if (!ports[0])
1446 return;
1447
1448 ENGINE_TRACE(engine, "%s { %s%s }\n", msg,
1449 dump_port(p0, sizeof(p0), "", ports[0]),
1450 dump_port(p1, sizeof(p1), ", ", ports[1]));
1451 }
1452
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org