On Fri, Aug 29, 2014 at 12:12:35PM +0200, David Herrmann wrote: > The drm_memory.h header is only used to define PAGE_AGP, which is only > used in drm_memory.c. Fold the header into drm_memory.c and drop it. > > Signed-off-by: David Herrmann <dh.herrmann@xxxxxxxxx> > --- > drivers/gpu/drm/drm_memory.c | 11 +++++++++ > include/drm/drmP.h | 6 ++--- > include/drm/drm_memory.h | 59 -------------------------------------------- > 3 files changed, 13 insertions(+), 63 deletions(-) > delete mode 100644 include/drm/drm_memory.h > > diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c > index 7888dad..62fda6a 100644 > --- a/drivers/gpu/drm/drm_memory.c > +++ b/drivers/gpu/drm/drm_memory.c > @@ -39,6 +39,17 @@ > #include "drm_legacy.h" > > #if __OS_HAS_AGP > + > +#ifdef HAVE_PAGE_AGP > +# include <asm/agp.h> > +#else This check seems to be redundant. All architectures that support AGP provide this header. > +# ifdef __powerpc__ > +# define PAGE_AGP __pgprot(_PAGE_KERNEL | _PAGE_NO_CACHE) Is this even necessary? It seems like PowerPC always defines HAVE_PAGE_AGP. > +# else > +# define PAGE_AGP PAGE_KERNEL > +# endif > +#endif Shouldn't this simply be moved into the asm/agp.h header for each of the architectures that has AGP? Thierry
Attachment:
pgpR2BXAzE36W.pgp
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel