All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hector Martin <marcan@marcan.st>
Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau <j@jannau.net>
Subject: [asahilinux:bits/200-dcp 52/177] drivers/gpu/drm/apple/dptxep.c:224:35: sparse: sparse: cast from restricted __le32
Date: Sat, 11 Jul 2026 04:21:02 +0800	[thread overview]
Message-ID: <202607110323.duJMf0bt-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-10 20:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202607110323.duJMf0bt-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=j@jannau.net \
    --cc=marcan@marcan.st \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.