On 20/03/2025 09:52, Duan, Zhenzhong wrote: >> -----Original Message----- >> From: Cédric Le Goater <c...@redhat.com> >> Subject: [PATCH for-10.1 24/32] vfio: Introduce new files for dirty tracking >> definitions and declarations >> >> File "common.c" has been emptied of most of its definitions by the >> previous changes and the only definitions left are related to dirty >> tracking. Rename it to "dirty-tracking.c" and introduce its associated >> "dirty-tracking.h" header file for the declarations. >> >> Cleanup a little the includes while at it. >> >> Signed-off-by: Cédric Le Goater <c...@redhat.com> >> --- a/hw/vfio/common.c >> +++ b/hw/vfio/dirty-tracking.c >> @@ -20,14 +20,10 @@ >> >> #include "qemu/osdep.h" >> #include <sys/ioctl.h> >> -#ifdef CONFIG_KVM >> -#include <linux/kvm.h> >> -#endif > > It looks this change unrelated to this patch? > >> #include <linux/vfio.h> >> >> #include "hw/vfio/vfio-common.h" >> #include "hw/vfio/pci.h" >> -#include "exec/address-spaces.h" > > Same here. >
It's written in the commit message: "Cleanup a little the includes while at it."