* [asahilinux:bits/200-dcp 52/177] drivers/gpu/drm/apple/dptxep.c:224:35: sparse: sparse: cast from restricted __le32
@ 2026-07-10 20:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-10 20:21 UTC (permalink / raw)
To: Hector Martin; +Cc: oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/200-dcp
head: b9ff2d08b7ac00a981c1725dd329677ca94e5bce
commit: 5c6ae6268ac0e6ef27e765e859397bc9d2b58199 [52/177] drm: apple: dptxep: Implement drive settings stuff
config: arm64-randconfig-r112-20260710 (https://download.01.org/0day-ci/archive/20260711/202607110323.duJMf0bt-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/202607110323.duJMf0bt-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/202607110323.duJMf0bt-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/apple/dptxep.c:224:35: sparse: sparse: cast from restricted __le32
>> drivers/gpu/drm/apple/dptxep.c:224:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@
drivers/gpu/drm/apple/dptxep.c:224:33: sparse: expected unsigned int
drivers/gpu/drm/apple/dptxep.c:224:33: sparse: got restricted __le32 [usertype]
drivers/gpu/drm/apple/dptxep.c:225:35: sparse: sparse: cast from restricted __le32
drivers/gpu/drm/apple/dptxep.c:225:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@
drivers/gpu/drm/apple/dptxep.c:225:33: sparse: expected unsigned int
drivers/gpu/drm/apple/dptxep.c:225:33: sparse: got restricted __le32 [usertype]
vim +224 drivers/gpu/drm/apple/dptxep.c
204
205 static int
206 dptxport_call_set_drive_settings(struct apple_epic_service *service,
207 const void *request_, size_t request_size,
208 void *reply_, size_t reply_size)
209 {
210 struct dptx_port *dptx = service->cookie;
211 const struct dptxport_apcall_drive_settings *request = request_;
212 struct dptxport_apcall_drive_settings *reply = reply_;
213
214 if (reply_size < sizeof(*reply) || request_size < sizeof(*request))
215 return -EINVAL;
216
217 *reply = *request;
218 reply->retcode = cpu_to_le32(0);
219
220 dev_info(service->ep->dcp->dev, "set_drive_settings: %d:%d:%d:%d:%d:%d:%d\n",
221 request->unk1, request->unk2, request->unk3, request->unk4,
222 request->unk5, request->unk6, request->unk7);
223
> 224 dptx->drive_settings[0] = cpu_to_le32(reply->unk5);
225 dptx->drive_settings[1] = cpu_to_le32(reply->unk7);
226
227 return 0;
228 }
229
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-10 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 20:21 [asahilinux:bits/200-dcp 52/177] drivers/gpu/drm/apple/dptxep.c:224:35: sparse: sparse: cast from restricted __le32 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.