[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202601041357.4DNDupdP-lkp@intel.com>
Date: Sun, 04 Jan 2026 13:56:51 +0800
From: kernel test robot <lkp@...el.com>
To: "Christian König" <christian.koenig@....com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Tvrtko Ursulin <tvrtko.ursulin@...lia.com>
Subject: drivers/dma-buf/dma-fence.c:1000:38: sparse: sparse:
incorrect type in initializer (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: aacb0a6d604ac9953b261963efe25ae7521b7c58
commit: ac364014fd812c8a2babe8f9dff8c909271a653e dma-buf: cleanup dma_fence_describe v3
date: 6 weeks ago
config: i386-randconfig-063-20260104 (https://download.01.org/0day-ci/archive/20260104/202601041357.4DNDupdP-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260104/202601041357.4DNDupdP-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601041357.4DNDupdP-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/dma-buf/dma-fence.c:1000:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const [noderef] __rcu *timeline @@ got char * @@
drivers/dma-buf/dma-fence.c:1000:38: sparse: expected char const [noderef] __rcu *timeline
drivers/dma-buf/dma-fence.c:1000:38: sparse: got char *
>> drivers/dma-buf/dma-fence.c:1001:36: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char const [noderef] __rcu *driver @@ got char * @@
drivers/dma-buf/dma-fence.c:1001:36: sparse: expected char const [noderef] __rcu *driver
drivers/dma-buf/dma-fence.c:1001:36: sparse: got char *
drivers/dma-buf/dma-fence.c:1112:51: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected char const [noderef] __rcu * @@ got char const * @@
drivers/dma-buf/dma-fence.c:1112:51: sparse: expected char const [noderef] __rcu *
drivers/dma-buf/dma-fence.c:1112:51: sparse: got char const *
drivers/dma-buf/dma-fence.c:1114:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected char const [noderef] __rcu * @@ got char * @@
drivers/dma-buf/dma-fence.c:1114:24: sparse: expected char const [noderef] __rcu *
drivers/dma-buf/dma-fence.c:1114:24: sparse: got char *
drivers/dma-buf/dma-fence.c:1144:51: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected char const [noderef] __rcu * @@ got char const * @@
drivers/dma-buf/dma-fence.c:1144:51: sparse: expected char const [noderef] __rcu *
drivers/dma-buf/dma-fence.c:1144:51: sparse: got char const *
drivers/dma-buf/dma-fence.c:1146:24: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected char const [noderef] __rcu * @@ got char * @@
drivers/dma-buf/dma-fence.c:1146:24: sparse: expected char const [noderef] __rcu *
drivers/dma-buf/dma-fence.c:1146:24: sparse: got char *
drivers/dma-buf/dma-fence.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/dma_fence.h):
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void const *driver_ptr_ @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected void const *driver_ptr_
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void const *timeline_ptr_ @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected void const *timeline_ptr_
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void const *driver_ptr_ @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected void const *driver_ptr_
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *str @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected char const *str
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
include/trace/events/dma_fence.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void const *timeline_ptr_ @@ got char const [noderef] __rcu * @@
include/trace/events/dma_fence.h:12:1: sparse: expected void const *timeline_ptr_
include/trace/events/dma_fence.h:12:1: sparse: got char const [noderef] __rcu *
vim +1000 drivers/dma-buf/dma-fence.c
990
991 /**
992 * dma_fence_describe - Dump fence description into seq_file
993 * @fence: the fence to describe
994 * @seq: the seq_file to put the textual description into
995 *
996 * Dump a textual description of the fence and it's state into the seq_file.
997 */
998 void dma_fence_describe(struct dma_fence *fence, struct seq_file *seq)
999 {
> 1000 const char __rcu *timeline = "";
> 1001 const char __rcu *driver = "";
1002 const char *signaled = "";
1003
1004 rcu_read_lock();
1005
1006 if (!dma_fence_is_signaled(fence)) {
1007 timeline = dma_fence_timeline_name(fence);
1008 driver = dma_fence_driver_name(fence);
1009 signaled = "un";
1010 }
1011
1012 seq_printf(seq, "%llu:%llu %s %s %ssignalled\n",
1013 fence->context, fence->seqno, timeline, driver,
1014 signaled);
1015
1016 rcu_read_unlock();
1017 }
1018 EXPORT_SYMBOL(dma_fence_describe);
1019
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists