aboutsummaryrefslogtreecommitdiff
path: root/drivers/s390/cio/vfio_ccw_cp.h
diff options
context:
space:
mode:
authorJason Gunthorpe2022-05-11 13:12:59 -0600
committerAlex Williamson2022-05-11 13:12:59 -0600
commit0a58795647cd4300470788ffdbff6b29b5f00632 (patch)
tree8d177772bf521603c3d5b85f8607e2afe3e6c76f /drivers/s390/cio/vfio_ccw_cp.h
parent09ea48efffa3156218980e20aaf23dcc7d6000fc (diff)
vfio/ccw: Remove mdev from struct channel_program
The next patch wants the vfio_device instead. There is no reason to store a pointer here since we can container_of back to the vfio_device. Reviewed-by: Eric Farman <farman@linux.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/2-v4-8045e76bf00b+13d-vfio_mdev_no_group_jgg@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/s390/cio/vfio_ccw_cp.h')
-rw-r--r--drivers/s390/cio/vfio_ccw_cp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/s390/cio/vfio_ccw_cp.h b/drivers/s390/cio/vfio_ccw_cp.h
index ba31240ce965..e4c436199b4c 100644
--- a/drivers/s390/cio/vfio_ccw_cp.h
+++ b/drivers/s390/cio/vfio_ccw_cp.h
@@ -37,13 +37,11 @@
struct channel_program {
struct list_head ccwchain_list;
union orb orb;
- struct device *mdev;
bool initialized;
struct ccw1 *guest_cp;
};
-extern int cp_init(struct channel_program *cp, struct device *mdev,
- union orb *orb);
+extern int cp_init(struct channel_program *cp, union orb *orb);
extern void cp_free(struct channel_program *cp);
extern int cp_prefetch(struct channel_program *cp);
extern union orb *cp_get_orb(struct channel_program *cp, u32 intparm, u8 lpm);