[PATCH linux-next] drm/i915/request: Remove unused variables

kernel test robot lkp at intel.com
Mon Nov 22 06:48:22 UTC 2021


Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20211118]

url:    https://github.com/0day-ci/linux/commits/cgel-zte-gmail-com/drm-i915-request-Remove-unused-variables/20211121-181441
base:    5191249f880367a4cd675825cd721a8d78f26a45
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/117f34e1836e312bdea3b7c886d829e30f55a094
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/drm-i915-request-Remove-unused-variables/20211121-181441
        git checkout 117f34e1836e312bdea3b7c886d829e30f55a094
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_request.c:2032:12: error: 'print_sched_attr' defined but not used [-Werror=unused-function]
    2032 | static int print_sched_attr(const struct i915_sched_attr *attr,
         |            ^~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/print_sched_attr +2032 drivers/gpu/drm/i915/i915_request.c

7e2e69ed4678a4 Maarten Lankhorst 2021-10-21  2031  
1f0e785a9cc09b Chris Wilson      2020-11-19 @2032  static int print_sched_attr(const struct i915_sched_attr *attr,
1f0e785a9cc09b Chris Wilson      2020-11-19  2033  			    char *buf, int x, int len)
1f0e785a9cc09b Chris Wilson      2020-11-19  2034  {
1f0e785a9cc09b Chris Wilson      2020-11-19  2035  	if (attr->priority == I915_PRIORITY_INVALID)
1f0e785a9cc09b Chris Wilson      2020-11-19  2036  		return x;
1f0e785a9cc09b Chris Wilson      2020-11-19  2037  
1f0e785a9cc09b Chris Wilson      2020-11-19  2038  	x += snprintf(buf + x, len - x,
1f0e785a9cc09b Chris Wilson      2020-11-19  2039  		      " prio=%d", attr->priority);
1f0e785a9cc09b Chris Wilson      2020-11-19  2040  
1f0e785a9cc09b Chris Wilson      2020-11-19  2041  	return x;
1f0e785a9cc09b Chris Wilson      2020-11-19  2042  }
1f0e785a9cc09b Chris Wilson      2020-11-19  2043  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 67189 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20211122/c8c2ebea/attachment-0001.gz>


More information about the dri-devel mailing list