[drm-tip:drm-tip 3/7] drivers/gpu/drm/lima/lima_ctx.c:53:45: error: 'struct drm_sched_entity' has no member named 'elapsed_ns'

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

 



tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   25abf2df726cac2701780b068df74a9c36d60655
commit: 6e744f4032e55f6ea113d5b10906aebbd626e5b7 [3/7] Merge remote-tracking branch 'drm-misc/drm-misc-next' into drm-tip
config: arm64-buildonly-randconfig-r001-20230402 (https://download.01.org/0day-ci/archive/20230402/202304022108.kFqa3PUI-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
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
        git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip
        git fetch --no-tags drm-tip drm-tip
        git checkout 6e744f4032e55f6ea113d5b10906aebbd626e5b7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/lima/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304022108.kFqa3PUI-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_do_release':
>> drivers/gpu/drm/lima/lima_ctx.c:53:45: error: 'struct drm_sched_entity' has no member named 'elapsed_ns'
      53 |                 mgr->elapsed_ns[i] += entity->elapsed_ns;
         |                                             ^~
   drivers/gpu/drm/lima/lima_ctx.c: In function 'lima_ctx_mgr_usage':
   drivers/gpu/drm/lima/lima_ctx.c:125:43: error: 'struct drm_sched_entity' has no member named 'elapsed_ns'
     125 |                         usage[i] += entity->elapsed_ns;
         |                                           ^~


vim +53 drivers/gpu/drm/lima/lima_ctx.c

a1d2a6339961ef Qiang Yu    2019-03-09  42  
a1d2a6339961ef Qiang Yu    2019-03-09  43  static void lima_ctx_do_release(struct kref *ref)
a1d2a6339961ef Qiang Yu    2019-03-09  44  {
a1d2a6339961ef Qiang Yu    2019-03-09  45  	struct lima_ctx *ctx = container_of(ref, struct lima_ctx, refcnt);
bccafec957a5c4 Erico Nunes 2023-03-13  46  	struct lima_ctx_mgr *mgr = ctx->mgr;
a1d2a6339961ef Qiang Yu    2019-03-09  47  	int i;
a1d2a6339961ef Qiang Yu    2019-03-09  48  
bccafec957a5c4 Erico Nunes 2023-03-13  49  	for (i = 0; i < lima_pipe_num; i++) {
bccafec957a5c4 Erico Nunes 2023-03-13  50  		struct lima_sched_context *context = &ctx->context[i];
bccafec957a5c4 Erico Nunes 2023-03-13  51  		struct drm_sched_entity *entity = &context->base;
bccafec957a5c4 Erico Nunes 2023-03-13  52  
bccafec957a5c4 Erico Nunes 2023-03-13 @53  		mgr->elapsed_ns[i] += entity->elapsed_ns;
bccafec957a5c4 Erico Nunes 2023-03-13  54  
a1d2a6339961ef Qiang Yu    2019-03-09  55  		lima_sched_context_fini(ctx->dev->pipe + i, ctx->context + i);
bccafec957a5c4 Erico Nunes 2023-03-13  56  	}
a1d2a6339961ef Qiang Yu    2019-03-09  57  	kfree(ctx);
a1d2a6339961ef Qiang Yu    2019-03-09  58  }
a1d2a6339961ef Qiang Yu    2019-03-09  59  

:::::: The code at line 53 was first introduced by commit
:::::: bccafec957a5c4b22ac29e53a39e82d0a0008348 drm/lima: add usage counting method to ctx_mgr

:::::: TO: Erico Nunes <nunes.erico@xxxxxxxxx>
:::::: CC: Qiang Yu <yuq825@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



[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