[PATCH] drm/mgag200: fix build on alpha arch

Sam Ravnborg sam at ravnborg.org
Fri Aug 7 21:00:18 UTC 2020


Hi Daniel.

On Fri, Aug 07, 2020 at 10:36:34PM +0200, Daniel Vetter wrote:
> On Fri, Aug 7, 2020 at 8:05 PM Sam Ravnborg <sam at ravnborg.org> wrote:
> >
> > When building imgag200 for the alpha architecture it fails like this:
> > mgag200_drv.c:233:9: error: implicit declaration of function ‘vmalloc’
> >   233 |  bios = vmalloc(size);
> >       |         ^~~~~~~
> >       |         kmalloc
> >
> > When building for other architectures vmalloc.h is pulled in via some
> > other header file - for example asm-generic/io.h.
> > Use an explicit include of vmalloc.h to fix the build.
> >
> > Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
> > Fixes: e20dfd27f7aa ("drm/mgag200: Add support for G200 desktop cards")
> > Cc: Thomas Zimmermann <tzimmermann at suse.de>
> > Cc: Egbert Eich <eich at suse.com>
> > Cc: Takashi Iwai <tiwai at suse.de>
> > Cc: Lyude Paul <lyude at redhat.com>
> > ---
> > I have lost track if the offending commit is on the way to upstream or
> > it is just in drm-misc-next. But I think it is the latter so we can
> > apply this to drm-misc-next.
> 
> $ dim status # fetches all the trees
Hmm, except that it did not update drm-misc-next?!?

I have read "Commiters that want to check the status of their
current branch should use normal git status commands."

So that, I guess, may explain it.

> $ dim tag-contains e20dfd27f7aa
> drm-misc/drm-misc-next
Nice little command - but no "tag-contains" in my dim version.
There is "dim tc" but no-one have any chance guessing what tc
is an abbrevation for - sigh.

> 
> You guess correctly :-)
> 
> Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

Thanks, pushed to drm-misc-next.

	Sam


> >
> >         Sam
> >
> >  drivers/gpu/drm/mgag200/mgag200_drv.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c
> > index 09170d46aa53..b282b0e42c2d 100644
> > --- a/drivers/gpu/drm/mgag200/mgag200_drv.c
> > +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c
> > @@ -9,6 +9,7 @@
> >  #include <linux/console.h>
> >  #include <linux/module.h>
> >  #include <linux/pci.h>
> > +#include <linux/vmalloc.h>
> >
> >  #include <drm/drm_drv.h>
> >  #include <drm/drm_file.h>
> > --
> > 2.25.1
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> 
> 
> 
> -- 
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list