]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/ccw: Pass enum to FSM event jumptable
authorEric Farman <farman@linux.ibm.com>
Thu, 7 Jul 2022 13:57:31 +0000 (15:57 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Jul 2022 20:06:12 +0000 (14:06 -0600)
commit0237e0109be45d89731674b4bc0c41441928f0fd
treeac49e97e6c29b22c8bccc4263f52780959a876d8
parentbaeb1d1b1997fce0de98afa0a6a8e1b3e00db825
vfio/ccw: Pass enum to FSM event jumptable

The FSM has an enumerated list of events defined.
Use that as the argument passed to the jump table,
instead of a regular int.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Link: https://lore.kernel.org/r/20220707135737.720765-6-farman@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_private.h