Re: [PATCH] elx: efct: Fix void-pointer-to-enum-cast warning for efc_nport_topology
From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-09-14 03:44:27
From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-09-14 03:44:27
On Mon, 30 Aug 2021 16:10:50 -0700, James Smart wrote:
the kernel test robot flagged an warning for ".../efc_device.c:932:6: warning: cast to smaller integer type 'enum efc_nport_topology' from 'void *'" For the topology events, the "arg" field is generically defined as a void * and is used to pass different arguments. Most of the arguments are pointers to data structures. But for the EFC_EVT_NPORT_TOPOLOGY_NOTIFY event, the argument is an enum value, and the code is typecasting the void * to an enum generating the warning. [...]
Applied to 5.15/scsi-fixes, thanks!
[1/1] elx: efct: Fix void-pointer-to-enum-cast warning for efc_nport_topology
https://git.kernel.org/mkp/scsi/c/96fafe7c6523
--
Martin K. Petersen Oracle Linux Engineering