Thread (2 messages) flat view 2 messages, 2 authors, 2021-01-08

Re: [PATCH] ibmvfc: fix missing cast of ibmvfc_event pointer to u64 handle

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-01-08 04:21:11
Also in: linux-scsi, lkml

On Wed, 6 Jan 2021 14:37:21 -0600, Tyrel Datwyler wrote:
Commit 2aa0102c6688 ("scsi: ibmvfc: Use correlation token to tag
commands") sets the vfcFrame correlation token to the pointer handle of
the associated ibmvfc_event. However, that commit failed to cast the
pointer to an appropriate type which in this case is a u64. As such
sparse warnings are generated for both correlation token assignments.

 ibmvfc.c:2375:36: sparse: incorrect type in argument 1 (different base types)
 ibmvfc.c:2375:36: sparse: expected unsigned long long [usertype] val
 ibmvfc.c:2375:36: sparse: got struct ibmvfc_event *[assigned] evt

[...]
Applied to 5.11/scsi-fixes, thanks!

[1/1] ibmvfc: fix missing cast of ibmvfc_event pointer to u64 handle
      https://git.kernel.org/mkp/scsi/c/901d01c8e50c

-- 
Martin K. Petersen	Oracle Linux Engineering
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help