[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202512221330.ccHryQEs-lkp@intel.com>
Date: Mon, 22 Dec 2025 14:02:41 +0800
From: kernel test robot <lkp@...el.com>
To: Haren Myneni <haren@...ux.ibm.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Madhavan Srinivasan <maddy@...ux.ibm.com>,
Mahesh Salgaonkar <mahesh@...ux.ibm.com>,
Tyrel Datwyler <tyreld@...ux.ibm.com>
Subject: arch/powerpc/platforms/pseries/papr-hvpipe.c:121: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: 9448598b22c50c8a5bb77a9103e2d49f134c9578
commit: 814ef095f12c9fa142043ee689500f3a41bb6dab powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces
date: 3 months ago
config: powerpc64-randconfig-r113-20251222 (https://download.01.org/0day-ci/archive/20251222/202512221330.ccHryQEs-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 789845e319bbf346d42ee2c0090a9b8e153797a2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251222/202512221330.ccHryQEs-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/202512221330.ccHryQEs-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/platforms/pseries/papr-hvpipe.c:121:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __poll_t @@ got int @@
arch/powerpc/platforms/pseries/papr-hvpipe.c:121:24: sparse: expected restricted __poll_t
arch/powerpc/platforms/pseries/papr-hvpipe.c:121:24: sparse: got int
vim +121 arch/powerpc/platforms/pseries/papr-hvpipe.c
108
109 /*
110 * The user space waits for the payload to receive.
111 * The hypervisor sends HVPIPE event message to the partition
112 * when the payload is available. The event handler wakeup FD
113 * depends on the source ID in the message event.
114 */
115 static __poll_t papr_hvpipe_handle_poll(struct file *filp,
116 struct poll_table_struct *wait)
117 {
118 struct hvpipe_source_info *src_info = filp->private_data;
119
120 if (!src_info)
> 121 return POLLNVAL;
122
123 return 0;
124 }
125
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists