On 19 October 2018 at 11:18, Hongbo Zhang <hongbo.zh...@linaro.org> wrote: > Remove the unused herder files, 'virt' can be compiled and run without > including them. > > Signed-off-by: Hongbo Zhang <hongbo.zh...@linaro.org> > --- > hw/arm/virt.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/hw/arm/virt.c b/hw/arm/virt.c > index 9f67782..f0066cb 100644 > --- a/hw/arm/virt.c > +++ b/hw/arm/virt.c > @@ -30,9 +30,6 @@ > > #include "qemu/osdep.h" > #include "qapi/error.h" > -#include "hw/sysbus.h" > -#include "hw/arm/arm.h" > -#include "hw/arm/primecell.h"
Dropping primecell.h makes sense, we don't use what it provides. But I suspect the others are "unused" only because some other header we include drags them in implicitly. I think it's better to explicitly include what we need, in case that other header changes in future. How did you determine which #includes to drop here? thanks -- PMM