[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512151753.eExr3PMz-lkp@intel.com>
Date: Mon, 15 Dec 2025 17:17:00 +0800
From: kernel test robot <lkp@...el.com>
To: Vinicius Costa Gomes <vinicius.gomes@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Vinod Koul <vkoul@...nel.org>, Dave Jiang <dave.jiang@...el.com>
Subject: drivers/dma/idxd/cdev.c:503:24: sparse: sparse: incorrect type in
return expression (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
commit: 8dfa57aabff625bf445548257f7711ef294cd30e dmaengine: idxd: Fix allowing write() from different address spaces
date: 8 months ago
config: x86_64-randconfig-r122-20251215 (https://download.01.org/0day-ci/archive/20251215/202512151753.eExr3PMz-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/20251215/202512151753.eExr3PMz-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/202512151753.eExr3PMz-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/dma/idxd/cdev.c:503:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __poll_t @@ got int @@
drivers/dma/idxd/cdev.c:503:24: sparse: expected restricted __poll_t
drivers/dma/idxd/cdev.c:503:24: sparse: got int
vim +503 drivers/dma/idxd/cdev.c
493
494 static __poll_t idxd_cdev_poll(struct file *filp,
495 struct poll_table_struct *wait)
496 {
497 struct idxd_user_context *ctx = filp->private_data;
498 struct idxd_wq *wq = ctx->wq;
499 struct idxd_device *idxd = wq->idxd;
500 __poll_t out = 0;
501
502 if (current->mm != ctx->mm)
> 503 return -EPERM;
504
505 poll_wait(filp, &wq->err_queue, wait);
506 spin_lock(&idxd->dev_lock);
507 if (idxd->sw_err.valid)
508 out = EPOLLIN | EPOLLRDNORM;
509 spin_unlock(&idxd->dev_lock);
510
511 return out;
512 }
513
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists