[radeon-alex:drm-next-4.21-wip 83/87] drivers/gpu/drm/v3d/v3d_sched.c:221:8: error: too many arguments to function 'drm_sched_init'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.21-wip
head:   0f117df308faec4f1eecc9a36b3a836181063483
commit: 0544d53c4e7baac87a8fc81a9aae001be0e034ae [83/87] drm/sched: Add boolean to mark if sched is ready to work v4
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0544d53c4e7baac87a8fc81a9aae001be0e034ae
        # save the attached .config to linux build tree
        GCC_VERSION=8.1.0 make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/v3d/v3d_sched.c: In function 'v3d_sched_init':
>> drivers/gpu/drm/v3d/v3d_sched.c:221:8: error: too many arguments to function 'drm_sched_init'
     ret = drm_sched_init(&v3d->queue[V3D_RENDER].sched,
           ^~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/v3d/v3d_drv.h:9,
                    from drivers/gpu/drm/v3d/v3d_sched.c:23:
   include/drm/gpu_scheduler.h:290:5: note: declared here
    int drm_sched_init(struct drm_gpu_scheduler *sched,
        ^~~~~~~~~~~~~~

vim +/drm_sched_init +221 drivers/gpu/drm/v3d/v3d_sched.c

57692c94 Eric Anholt       2018-04-30  202  
57692c94 Eric Anholt       2018-04-30  203  int
57692c94 Eric Anholt       2018-04-30  204  v3d_sched_init(struct v3d_dev *v3d)
57692c94 Eric Anholt       2018-04-30  205  {
57692c94 Eric Anholt       2018-04-30  206  	int hw_jobs_limit = 1;
57692c94 Eric Anholt       2018-04-30  207  	int job_hang_limit = 0;
57692c94 Eric Anholt       2018-04-30  208  	int hang_limit_ms = 500;
57692c94 Eric Anholt       2018-04-30  209  	int ret;
57692c94 Eric Anholt       2018-04-30  210  
57692c94 Eric Anholt       2018-04-30  211  	ret = drm_sched_init(&v3d->queue[V3D_BIN].sched,
57692c94 Eric Anholt       2018-04-30  212  			     &v3d_sched_ops,
57692c94 Eric Anholt       2018-04-30  213  			     hw_jobs_limit, job_hang_limit,
57692c94 Eric Anholt       2018-04-30  214  			     msecs_to_jiffies(hang_limit_ms),
57692c94 Eric Anholt       2018-04-30  215  			     "v3d_bin");
57692c94 Eric Anholt       2018-04-30  216  	if (ret) {
57692c94 Eric Anholt       2018-04-30  217  		dev_err(v3d->dev, "Failed to create bin scheduler: %d.", ret);
57692c94 Eric Anholt       2018-04-30  218  		return ret;
57692c94 Eric Anholt       2018-04-30  219  	}
57692c94 Eric Anholt       2018-04-30  220  
57692c94 Eric Anholt       2018-04-30 @221  	ret = drm_sched_init(&v3d->queue[V3D_RENDER].sched,
57692c94 Eric Anholt       2018-04-30  222  			     &v3d_sched_ops,
57692c94 Eric Anholt       2018-04-30  223  			     hw_jobs_limit, job_hang_limit,
57692c94 Eric Anholt       2018-04-30  224  			     msecs_to_jiffies(hang_limit_ms),
0544d53c Andrey Grodzovsky 2018-10-18  225  			     "v3d_render", true);
57692c94 Eric Anholt       2018-04-30  226  	if (ret) {
57692c94 Eric Anholt       2018-04-30  227  		dev_err(v3d->dev, "Failed to create render scheduler: %d.",
57692c94 Eric Anholt       2018-04-30  228  			ret);
57692c94 Eric Anholt       2018-04-30  229  		drm_sched_fini(&v3d->queue[V3D_BIN].sched);
57692c94 Eric Anholt       2018-04-30  230  		return ret;
57692c94 Eric Anholt       2018-04-30  231  	}
57692c94 Eric Anholt       2018-04-30  232  
57692c94 Eric Anholt       2018-04-30  233  	return 0;
57692c94 Eric Anholt       2018-04-30  234  }
57692c94 Eric Anholt       2018-04-30  235  

:::::: The code at line 221 was first introduced by commit
:::::: 57692c94dcbe99a1e0444409a3da13fb3443562c drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+

:::::: TO: Eric Anholt <eric@xxxxxxxxxx>
:::::: CC: Eric Anholt <eric@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux