On Wed, Sep 06, 2017 at 12:44:20PM +0100, Chris Wilson wrote: > Quoting Daniel Vetter (2017-09-05 13:36:09) > > diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c > > index f2a94b5572ea..a2061ff6138e 100644 > > --- a/lib/igt_dummyload.c > > +++ b/lib/igt_dummyload.c > > @@ -22,11 +22,18 @@ > > * > > */ > > > > -#include "igt.h" > > -#include "igt_dummyload.h" > > #include <time.h> > > #include <signal.h> > > #include <sys/syscall.h> > > +#include <sys/mman.h> > > For PROT_*? It's using the gem_mmap/gem_munmap interfaces, should we not > then be defining PROT_* as part of that interface. > > We don't need the raw syscall interface here. > > > + > > +#include <i915_drm.h> > > + > > +#include "igt_dummyload.h" > > +#include "igt_gt.h" > > +#include "intel_batchbuffer.h" > > What are we pulling in from batchbuffer.h? I think you mean intel_reg.h. > Both are inappropriate places for MI commands. > > igt_core.h for igt_require > > -#include "igt.h" > -#include "igt_dummyload.h" > #include <time.h> > #include <signal.h> > -#include <sys/syscall.h> > + > +#include <i915_drm.h> > + > +#include "igt_core.h" > +#include "igt_dummyload.h" > +#include "igt_gt.h" > +#include "intel_chipset.h" > +#include "intel_reg.h" > +#include "ioctl_wrappers.h" > > plus the indirect sys/mman.h via ioctl_wrappers.h That indirect include doesn't exist, it's only in drmtest.h. But I agree it should be there, so I'll add it and use your version. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx