Messages in this thread | | | Date | Fri, 8 Apr 2022 15:38:49 +0800 | From | kernel test robot <> | Subject | [l1k:smsc95xx_5.17 76/887] drivers/video/fbdev/rpisense-fb.c:203:34: error: implicit declaration of function 'vzalloc'; did you mean 'kvzalloc'? |
| |
tree: https://github.com/l1k/linux smsc95xx_5.17 head: 05d68ced287b30f62f18f95b5476135ef669804a commit: b722bea6165a6e42fff47ede05186cb53542689e [76/887] mfd: Add Raspberry Pi Sense HAT core driver config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220408/202204081542.rzWZZRnZ-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 11.2.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://github.com/l1k/linux/commit/b722bea6165a6e42fff47ede05186cb53542689e git remote add l1k https://github.com/l1k/linux git fetch --no-tags l1k smsc95xx_5.17 git checkout b722bea6165a6e42fff47ede05186cb53542689e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/video/fbdev/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/video/fbdev/rpisense-fb.c: In function 'rpisense_fb_probe': >> drivers/video/fbdev/rpisense-fb.c:203:34: error: implicit declaration of function 'vzalloc'; did you mean 'kvzalloc'? [-Werror=implicit-function-declaration] 203 | rpisense_fb_param.vmem = vzalloc(rpisense_fb_param.vmemsize); | ^~~~~~~ | kvzalloc >> drivers/video/fbdev/rpisense-fb.c:203:32: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 203 | rpisense_fb_param.vmem = vzalloc(rpisense_fb_param.vmemsize); | ^ >> drivers/video/fbdev/rpisense-fb.c:246:9: error: implicit declaration of function 'vfree'; did you mean 'kfree'? [-Werror=implicit-function-declaration] 246 | vfree(rpisense_fb_param.vmem); | ^~~~~ | kfree cc1: some warnings being treated as errors
vim +203 drivers/video/fbdev/rpisense-fb.c
193 194 static int rpisense_fb_probe(struct platform_device *pdev) 195 { 196 struct fb_info *info; 197 int ret = -ENOMEM; 198 struct rpisense_fb *rpisense_fb; 199 200 rpisense = rpisense_get_dev(); 201 rpisense_fb = &rpisense->framebuffer; 202 > 203 rpisense_fb_param.vmem = vzalloc(rpisense_fb_param.vmemsize); 204 if (!rpisense_fb_param.vmem) 205 return ret; 206 207 rpisense_fb_param.vmem_work = devm_kmalloc(&pdev->dev, 193, GFP_KERNEL); 208 if (!rpisense_fb_param.vmem_work) 209 goto err_malloc; 210 211 info = framebuffer_alloc(0, &pdev->dev); 212 if (!info) { 213 dev_err(&pdev->dev, "Could not allocate framebuffer.\n"); 214 goto err_malloc; 215 } 216 rpisense_fb->info = info; 217 218 rpisense_fb_fix.smem_start = (unsigned long)rpisense_fb_param.vmem; 219 rpisense_fb_fix.smem_len = rpisense_fb_param.vmemsize; 220 221 info->fbops = &rpisense_fb_ops; 222 info->fix = rpisense_fb_fix; 223 info->var = rpisense_fb_var; 224 info->fbdefio = &rpisense_fb_defio; 225 info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB; 226 info->screen_base = rpisense_fb_param.vmem; 227 info->screen_size = rpisense_fb_param.vmemsize; 228 229 if (lowlight) 230 rpisense_fb_param.gamma = gamma_low; 231 232 fb_deferred_io_init(info); 233 234 ret = register_framebuffer(info); 235 if (ret < 0) { 236 dev_err(&pdev->dev, "Could not register framebuffer.\n"); 237 goto err_fballoc; 238 } 239 240 fb_info(info, "%s frame buffer device\n", info->fix.id); 241 schedule_delayed_work(&info->deferred_work, rpisense_fb_defio.delay); 242 return 0; 243 err_fballoc: 244 framebuffer_release(info); 245 err_malloc: > 246 vfree(rpisense_fb_param.vmem); 247 return ret; 248 } 249
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |