Re: [PATCH] elx: efct: Fix void-pointer-to-enum-cast warning for efc_nport_topology

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux