Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfio/mdev: make mdev.h standalone includable

Include <linux/device.h> and <linux/uuid.h> so that users of this headers
don't need to do that and remove those includes that aren't needed
any more.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20220923092652.100656-4-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Christoph Hellwig and committed by
Alex Williamson
bdef2b78 1aa3834f

+3 -13
-2
drivers/gpu/drm/i915/gvt/kvmgt.c
··· 34 34 */ 35 35 36 36 #include <linux/init.h> 37 - #include <linux/device.h> 38 37 #include <linux/mm.h> 39 38 #include <linux/kthread.h> 40 39 #include <linux/sched/mm.h> ··· 42 43 #include <linux/rbtree.h> 43 44 #include <linux/spinlock.h> 44 45 #include <linux/eventfd.h> 45 - #include <linux/uuid.h> 46 46 #include <linux/mdev.h> 47 47 #include <linux/debugfs.h> 48 48
-1
drivers/s390/cio/vfio_ccw_drv.c
··· 12 12 13 13 #include <linux/module.h> 14 14 #include <linux/init.h> 15 - #include <linux/device.h> 16 15 #include <linux/slab.h> 17 16 #include <linux/mdev.h> 18 17
-1
drivers/s390/crypto/vfio_ap_private.h
··· 13 13 #define _VFIO_AP_PRIVATE_H_ 14 14 15 15 #include <linux/types.h> 16 - #include <linux/device.h> 17 16 #include <linux/mdev.h> 18 17 #include <linux/delay.h> 19 18 #include <linux/mutex.h>
-2
drivers/vfio/mdev/mdev_core.c
··· 8 8 */ 9 9 10 10 #include <linux/module.h> 11 - #include <linux/device.h> 12 11 #include <linux/slab.h> 13 - #include <linux/uuid.h> 14 12 #include <linux/sysfs.h> 15 13 #include <linux/mdev.h> 16 14
-1
drivers/vfio/mdev/mdev_driver.c
··· 7 7 * Kirti Wankhede <kwankhede@nvidia.com> 8 8 */ 9 9 10 - #include <linux/device.h> 11 10 #include <linux/iommu.h> 12 11 #include <linux/mdev.h> 13 12
-2
drivers/vfio/mdev/mdev_sysfs.c
··· 9 9 10 10 #include <linux/sysfs.h> 11 11 #include <linux/ctype.h> 12 - #include <linux/device.h> 13 12 #include <linux/slab.h> 14 - #include <linux/uuid.h> 15 13 #include <linux/mdev.h> 16 14 17 15 #include "mdev_private.h"
+3
include/linux/mdev.h
··· 10 10 #ifndef MDEV_H 11 11 #define MDEV_H 12 12 13 + #include <linux/device.h> 14 + #include <linux/uuid.h> 15 + 13 16 struct mdev_type; 14 17 15 18 struct mdev_device {
-1
samples/vfio-mdev/mbochs.c
··· 21 21 */ 22 22 #include <linux/init.h> 23 23 #include <linux/module.h> 24 - #include <linux/device.h> 25 24 #include <linux/kernel.h> 26 25 #include <linux/slab.h> 27 26 #include <linux/vmalloc.h>
-1
samples/vfio-mdev/mdpy.c
··· 17 17 */ 18 18 #include <linux/init.h> 19 19 #include <linux/module.h> 20 - #include <linux/device.h> 21 20 #include <linux/kernel.h> 22 21 #include <linux/slab.h> 23 22 #include <linux/vmalloc.h>
-2
samples/vfio-mdev/mtty.c
··· 12 12 13 13 #include <linux/init.h> 14 14 #include <linux/module.h> 15 - #include <linux/device.h> 16 15 #include <linux/kernel.h> 17 16 #include <linux/fs.h> 18 17 #include <linux/poll.h> ··· 19 20 #include <linux/cdev.h> 20 21 #include <linux/sched.h> 21 22 #include <linux/wait.h> 22 - #include <linux/uuid.h> 23 23 #include <linux/vfio.h> 24 24 #include <linux/iommu.h> 25 25 #include <linux/sysfs.h>