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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas.

On Tue, Aug 11, 2020 at 08:59:13AM +0200, Thomas Zimmermann wrote:
> Hi Sam
> 
> thanks for taken care of this issue. Alpha is a rare architecture these
> days. How do you build and test for it?

I am on ubuntu here so I have installed:
apt install gcc-alpha-linux-gnu

And then alpha is one of the architectures I build for.
My full list:
archs="alpha arm arm64 sparc64 i386 x86 powerpc s390 riscv sh"

I build these configs:
configs="allmodconfig allyesconfig allnoconfig defconfig"

It takes a while so usually I build only the relevant sub-set such as
drivers/gpu/drm/bridge/

I have, unfortunately, no testing. Would love something qemu based but
have never invested time into this.

	Sam

> 
> Am 07.08.20 um 20:05 schrieb Sam Ravnborg:
> > 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@xxxxxxxxxxxx>
> 
> Sorry for being (too) late, but still:
> 
> Reviewed-by: Thomas Zimmermann <tzimmermann@xxxxxxx>
> 
> Best regards
> Thomas
> 
> > Fixes: e20dfd27f7aa ("drm/mgag200: Add support for G200 desktop cards")
> > Cc: Thomas Zimmermann <tzimmermann@xxxxxxx>
> > Cc: Egbert Eich <eich@xxxxxxxx>
> > Cc: Takashi Iwai <tiwai@xxxxxxx>
> > Cc: Lyude Paul <lyude@xxxxxxxxxx>
> > ---
> > 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.
> > 
> > 	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>
> > 
> 
> -- 
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Maxfeldstr. 5, 90409 Nürnberg, Germany
> (HRB 36809, AG Nürnberg)
> Geschäftsführer: Felix Imendörffer
> 



_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux