linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 620/14813] drivers/gpu/drm/mgag200/mgag200_drv.c:232:9: error: implicit declaration of function 'vmalloc'; did you mean
@ 2020-10-13  4:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-13  4:18 UTC (permalink / raw)
  To: Thomas Zimmermann
  Cc: kbuild-all, Linux Memory Management List, Egbert Eich,
	Takashi Iwai, Lyude Paul

[-- Attachment #1: Type: text/plain, Size: 3221 bytes --]

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27028 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-13  4:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  4:18 [linux-next:master 620/14813] drivers/gpu/drm/mgag200/mgag200_drv.c:232:9: error: implicit declaration of function 'vmalloc'; did you mean kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).