lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 22 Jun 2018 09:43:30 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Maxime Ripard <maxime.ripard@...tlin.com>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Mauro Carvalho Chehab <m.chehab@...sung.com>,
        linux-media@...r.kernel.org,
        Niklas Söderlund 
        <niklas.soderlund+renesas@...natech.se>,
        Sakari Ailus <sakari.ailus@...ux.intel.com>
Subject: drivers/media/platform/cadence/cdns-csi2rx.c:421:2: error: implicit
 declaration of function 'kzalloc'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   27db64f65f1be2f2ee741a1bf20d8d13d62c167f
commit: 1fc3b37f34f69ee3fd61ca624fc005fb0bfe3984 media: v4l: cadence: Add Cadence MIPI-CSI2 RX driver
date:   5 weeks ago
config: x86_64-randconfig-g0-06220900 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 1fc3b37f34f69ee3fd61ca624fc005fb0bfe3984
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/media/platform/cadence/cdns-csi2rx.c: In function 'csi2rx_probe':
>> drivers/media/platform/cadence/cdns-csi2rx.c:421:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
     csi2rx = kzalloc(sizeof(*csi2rx), GFP_KERNEL);
     ^
   drivers/media/platform/cadence/cdns-csi2rx.c:421:9: warning: assignment makes pointer from integer without a cast
     csi2rx = kzalloc(sizeof(*csi2rx), GFP_KERNEL);
            ^
>> drivers/media/platform/cadence/cdns-csi2rx.c:466:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
     kfree(csi2rx);
     ^
   cc1: some warnings being treated as errors

vim +/kzalloc +421 drivers/media/platform/cadence/cdns-csi2rx.c

   414	
   415	static int csi2rx_probe(struct platform_device *pdev)
   416	{
   417		struct csi2rx_priv *csi2rx;
   418		unsigned int i;
   419		int ret;
   420	
 > 421		csi2rx = kzalloc(sizeof(*csi2rx), GFP_KERNEL);
   422		if (!csi2rx)
   423			return -ENOMEM;
   424		platform_set_drvdata(pdev, csi2rx);
   425		csi2rx->dev = &pdev->dev;
   426		mutex_init(&csi2rx->lock);
   427	
   428		ret = csi2rx_get_resources(csi2rx, pdev);
   429		if (ret)
   430			goto err_free_priv;
   431	
   432		ret = csi2rx_parse_dt(csi2rx);
   433		if (ret)
   434			goto err_free_priv;
   435	
   436		csi2rx->subdev.owner = THIS_MODULE;
   437		csi2rx->subdev.dev = &pdev->dev;
   438		v4l2_subdev_init(&csi2rx->subdev, &csi2rx_subdev_ops);
   439		v4l2_set_subdevdata(&csi2rx->subdev, &pdev->dev);
   440		snprintf(csi2rx->subdev.name, V4L2_SUBDEV_NAME_SIZE, "%s.%s",
   441			 KBUILD_MODNAME, dev_name(&pdev->dev));
   442	
   443		/* Create our media pads */
   444		csi2rx->subdev.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE;
   445		csi2rx->pads[CSI2RX_PAD_SINK].flags = MEDIA_PAD_FL_SINK;
   446		for (i = CSI2RX_PAD_SOURCE_STREAM0; i < CSI2RX_PAD_MAX; i++)
   447			csi2rx->pads[i].flags = MEDIA_PAD_FL_SOURCE;
   448	
   449		ret = media_entity_pads_init(&csi2rx->subdev.entity, CSI2RX_PAD_MAX,
   450					     csi2rx->pads);
   451		if (ret)
   452			goto err_free_priv;
   453	
   454		ret = v4l2_async_register_subdev(&csi2rx->subdev);
   455		if (ret < 0)
   456			goto err_free_priv;
   457	
   458		dev_info(&pdev->dev,
   459			 "Probed CSI2RX with %u/%u lanes, %u streams, %s D-PHY\n",
   460			 csi2rx->num_lanes, csi2rx->max_lanes, csi2rx->max_streams,
   461			 csi2rx->has_internal_dphy ? "internal" : "no");
   462	
   463		return 0;
   464	
   465	err_free_priv:
 > 466		kfree(csi2rx);
   467		return ret;
   468	}
   469	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (25235 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ