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

kernel test robot lkp at intel.com
Mon Nov 22 07:08:24 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-randconfig-c007-20211121 (attached as .config)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # 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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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: unused function 'print_sched_attr' [-Werror,-Wunused-function]
   static int print_sched_attr(const struct i915_sched_attr *attr,
              ^
   1 error generated.


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: 35289 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20211122/ab265f55/attachment-0001.gz>


More information about the Intel-gfx mailing list