Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 283C41A27B for ; Wed, 13 Sep 2023 19:25:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694633101; x=1726169101; h=date:from:to:cc:subject:message-id:mime-version; bh=2riCU2MuRiKv5KzWGqh8XLuGMfVgNylN3CPlHBkuvbs=; b=YlQHFqxlOX/mvgDiozMSfYHrxWrMWrQCf1hgmXFfMZ/IY/j0Iu7p/aKh dNriqKxVCYe2v9MMsQCp/ub8N1niZI8pJr0l/3QCliz8gR8NVQ8cSldTO AhBBfsWduSySyu8CYd15zvC5sdL44zL2FgGntPay/4KotDAbZvJrXUW9/ mUin2PYzma+44D53n0hjis6WS4rL/bvp8scr4QHWP2C/vUad38O31YdUO /vBlxSOsj5DwMb7IZ8xvFvq5crYC3RG4OvgjTRD0TkRBl5HC15PdUYW+r 6YYePUJ6uY1rm26QKaSeX0obZ3q91Gu7kMEo7U1lUUd5/rk2tcjFUFbIP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="376100063" X-IronPort-AV: E=Sophos;i="6.02,144,1688454000"; d="scan'208";a="376100063" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 12:25:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="737646238" X-IronPort-AV: E=Sophos;i="6.02,144,1688454000"; d="scan'208";a="737646238" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2023 12:24:58 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qgVTs-0000W1-2S; Wed, 13 Sep 2023 19:24:56 +0000 Date: Thu, 14 Sep 2023 03:23:56 +0800 From: kernel test robot To: Danilo Krummrich Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Dave Airlie Subject: drivers/gpu/drm/nouveau/nouveau_fence.c:210:45: sparse: sparse: incorrect type in initializer (different address spaces) Message-ID: <202309140340.BwKXzaDx-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3669558bdf354cd352be955ef2764cde6a9bf5ec commit: 978474dc8278f661930e02e08d292a45a45fa01a drm/nouveau: fence: fix undefined fence state after emit date: 2 weeks ago config: i386-randconfig-062-20230913 (https://download.01.org/0day-ci/archive/20230914/202309140340.BwKXzaDx-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230914/202309140340.BwKXzaDx-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202309140340.BwKXzaDx-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/nouveau/nouveau_fence.c:210:45: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct nouveau_channel *chan @@ got struct nouveau_channel [noderef] __rcu *channel @@ drivers/gpu/drm/nouveau/nouveau_fence.c:210:45: sparse: expected struct nouveau_channel *chan drivers/gpu/drm/nouveau/nouveau_fence.c:210:45: sparse: got struct nouveau_channel [noderef] __rcu *channel drivers/gpu/drm/nouveau/nouveau_fence.c:418:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct nouveau_channel [noderef] __rcu *channel @@ got struct nouveau_channel *chan @@ drivers/gpu/drm/nouveau/nouveau_fence.c:418:24: sparse: expected struct nouveau_channel [noderef] __rcu *channel drivers/gpu/drm/nouveau/nouveau_fence.c:418:24: sparse: got struct nouveau_channel *chan vim +210 drivers/gpu/drm/nouveau/nouveau_fence.c 206 207 int 208 nouveau_fence_emit(struct nouveau_fence *fence) 209 { > 210 struct nouveau_channel *chan = fence->channel; 211 struct nouveau_fence_chan *fctx = chan->fence; 212 struct nouveau_fence_priv *priv = (void*)chan->drm->fence; 213 int ret; 214 215 fence->timeout = jiffies + (15 * HZ); 216 217 if (priv->uevent) 218 dma_fence_init(&fence->base, &nouveau_fence_ops_uevent, 219 &fctx->lock, fctx->context, ++fctx->sequence); 220 else 221 dma_fence_init(&fence->base, &nouveau_fence_ops_legacy, 222 &fctx->lock, fctx->context, ++fctx->sequence); 223 kref_get(&fctx->fence_ref); 224 225 ret = fctx->emit(fence); 226 if (!ret) { 227 dma_fence_get(&fence->base); 228 spin_lock_irq(&fctx->lock); 229 230 if (unlikely(fctx->killed)) { 231 spin_unlock_irq(&fctx->lock); 232 dma_fence_put(&fence->base); 233 return -ENODEV; 234 } 235 236 if (nouveau_fence_update(chan, fctx)) 237 nvif_event_block(&fctx->event); 238 239 list_add_tail(&fence->head, &fctx->pending); 240 spin_unlock_irq(&fctx->lock); 241 } 242 243 return ret; 244 } 245 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki