mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vladimir Bely <vlwwwwww@gmail.com>,
	Rob Clark <robin.clark@oss.qualcomm.com>,
	Dmitry Baryshkov <lumag@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Jessica Zhang <jesszhan0024@gmail.com>,
	Sean Paul <sean@poorly.run>,
	Marijn Suijten <marijn.suijten@somainline.org>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Vladimir Bely <vlwwwwww@gmail.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH v2] drm/msm/gem: defer shared GPU VM teardown until last VMA user
Date: Sun, 29 Nov 2026 16:16:03 +0800	[thread overview]
Message-ID: <20261129161110.lCqUxpjD-lkp@intel.com> (raw)
In-Reply-To: <20261129011759.1025516-1-vlwwwwww@gmail.com>

Hi Vladimir,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v7.4-rc4 next-20261127]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Vladimir-Bely/drm-msm-gem-defer-shared-GPU-VM-teardown-until-last-VMA-user/20261129-041758
base:   https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next
patch link:    https://lore.kernel.org/r/20261129011759.1025516-1-vlwwwwww%40gmail.com
patch subject: [PATCH v2] drm/msm/gem: defer shared GPU VM teardown until last VMA user
config: arc-randconfig-1001-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129161110.lCqUxpjD-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 13.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129161110.lCqUxpjD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261129161110.lCqUxpjD-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/preempt.h:11,
                    from include/linux/sched.h:15,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from include/linux/dma-mapping.h:5,
                    from include/linux/dma-map-ops.h:9,
                    from drivers/gpu/drm/msm/msm_gem.c:7:
   drivers/gpu/drm/msm/msm_gem.c: In function 'has_vma':
>> include/linux/cleanup.h:298:9: error: unknown type name 'class_gem_lock_t'; did you mean 'class_read_lock_t'?
     298 |         class_##_name##_t var __cleanup(class_##_name##_destructor) =   \
         |         ^~~~~~
   include/linux/cleanup.h:416:9: note: in expansion of macro 'CLASS'
     416 |         CLASS(_name, __UNIQUE_ID(guard))
         |         ^~~~~
   drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard'
      59 |         guard(gem_lock)(obj);
         |         ^~~~~
>> drivers/gpu/drm/msm/msm_gem.c:59:9: error: cleanup argument not a function
>> include/linux/cleanup.h:299:17: error: implicit declaration of function 'class_gem_lock_constructor'; did you mean 'class_read_lock_constructor'? [-Werror=implicit-function-declaration]
     299 |                 class_##_name##_constructor
         |                 ^~~~~~
   include/linux/cleanup.h:416:9: note: in expansion of macro 'CLASS'
     416 |         CLASS(_name, __UNIQUE_ID(guard))
         |         ^~~~~
   drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard'
      59 |         guard(gem_lock)(obj);
         |         ^~~~~
   include/linux/compiler.h:165:17: warning: unused variable '__UNIQUE_ID_guard_549' [-Wunused-variable]
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |                 ^~~~~~~~~~~~
   include/linux/cleanup.h:298:27: note: in definition of macro 'CLASS'
     298 |         class_##_name##_t var __cleanup(class_##_name##_destructor) =   \
         |                           ^~~
   include/linux/compiler_types.h:16:23: note: in expansion of macro '___PASTE'
      16 | #define __PASTE(a, b) ___PASTE(a, b)
         |                       ^~~~~~~~
   include/linux/compiler.h:165:9: note: in expansion of macro '__PASTE'
     165 |         __PASTE(__UNIQUE_ID_,                                   \
         |         ^~~~~~~
   include/linux/cleanup.h:416:22: note: in expansion of macro '__UNIQUE_ID'
     416 |         CLASS(_name, __UNIQUE_ID(guard))
         |                      ^~~~~~~~~~~
   drivers/gpu/drm/msm/msm_gem.c:59:9: note: in expansion of macro 'guard'
      59 |         guard(gem_lock)(obj);
         |         ^~~~~
   cc1: some warnings being treated as errors


vim +59 drivers/gpu/drm/msm/msm_gem.c

    51	
    52	static void put_iova_spaces(struct drm_gem_object *obj, struct drm_gpuvm *vm,
    53				    bool close, const char *reason);
    54	
    55	static bool has_vma(struct drm_gem_object *obj, struct drm_gpuvm *vm)
    56	{
    57		struct drm_gpuvm_bo *vm_bo;
    58	
  > 59		guard(gem_lock)(obj);
    60	
    61		drm_gem_for_each_gpuvm_bo(vm_bo, obj) {
    62			if (vm_bo->vm == vm)
    63				return true;
    64		}
    65	
    66		return false;
    67	}
    68	

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

  reply	other threads:[~2026-11-29  8:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  0:09 [PATCH] " Vladimir Bely
2026-11-29  1:17 ` [PATCH v2] " Vladimir Bely
2026-11-29  8:16   ` kernel test robot [this message]
2026-11-29  9:00   ` [PATCH v3] " Vladimir Bely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261129161110.lCqUxpjD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=jesszhan0024@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robin.clark@oss.qualcomm.com \
    --cc=sean@poorly.run \
    --cc=simona@ffwll.ch \
    --cc=stable@vger.kernel.org \
    --cc=vlwwwwww@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®