[linux-next:master 620/14813] drivers/gpu/drm/mgag200/mgag200_drv.c:232:9: error: implicit declaration of function 'vmalloc'; did you mean

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   148fdf990dee4efd23c1114811b205de9c966680
commit: e20dfd27f7aa257ce01992540a36bc4e818f8452 [620/14813] drm/mgag200: Add support for G200 desktop cards
config: alpha-randconfig-r023-20201013 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e20dfd27f7aa257ce01992540a36bc4e818f8452
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e20dfd27f7aa257ce01992540a36bc4e818f8452
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

Note: the linux-next/master HEAD 148fdf990dee4efd23c1114811b205de9c966680 builds fine.
      It may have been fixed somewhere.

All error/warnings (new ones prefixed by >>):

   drivers/gpu/drm/mgag200/mgag200_drv.c: In function 'mgag200_g200_init_refclk':
>> drivers/gpu/drm/mgag200/mgag200_drv.c:232:9: error: implicit declaration of function 'vmalloc'; did you mean 'kmalloc'? [-Werror=implicit-function-declaration]
     232 |  bios = vmalloc(size);
         |         ^~~~~~~
         |         kmalloc
>> drivers/gpu/drm/mgag200/mgag200_drv.c:232:7: warning: assignment to 'unsigned char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     232 |  bios = vmalloc(size);
         |       ^
>> drivers/gpu/drm/mgag200/mgag200_drv.c:244:2: error: implicit declaration of function 'vfree'; did you mean 'kfree'? [-Werror=implicit-function-declaration]
     244 |  vfree(bios);
         |  ^~~~~
         |  kfree
   cc1: some warnings being treated as errors

vim +232 drivers/gpu/drm/mgag200/mgag200_drv.c

   216	
   217	static void mgag200_g200_init_refclk(struct mga_device *mdev)
   218	{
   219		struct drm_device *dev = &mdev->base;
   220		unsigned char __iomem *rom;
   221		unsigned char *bios;
   222		size_t size;
   223	
   224		mdev->model.g200.pclk_min = 50000;
   225		mdev->model.g200.pclk_max = 230000;
   226		mdev->model.g200.ref_clk = 27050;
   227	
   228		rom = pci_map_rom(dev->pdev, &size);
   229		if (!rom)
   230			return;
   231	
 > 232		bios = vmalloc(size);
   233		if (!bios)
   234			goto out;
   235		memcpy_fromio(bios, rom, size);
   236	
   237		if (size != 0 && bios[0] == 0x55 && bios[1] == 0xaa)
   238			mgag200_g200_interpret_bios(mdev, bios, size);
   239	
   240		drm_dbg_kms(dev, "pclk_min: %ld pclk_max: %ld ref_clk: %ld\n",
   241			    mdev->model.g200.pclk_min, mdev->model.g200.pclk_max,
   242			    mdev->model.g200.ref_clk);
   243	
 > 244		vfree(bios);
   245	out:
   246		pci_unmap_rom(dev->pdev, rom);
   247	}
   248	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux