tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/fdp1-v2-rebased2
head:   86b4ca1f09bb40114845c618868d447769aef33e
commit: 86b4ca1f09bb40114845c618868d447769aef33e [8/8] v4l: platform: Add 
Renesas R-Car FDP1 Driver
config: openrisc-allyesconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 86b4ca1f09bb40114845c618868d447769aef33e
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   drivers/media/platform/rcar_fdp1.c:1972:2: warning: initialization from 
incompatible pointer type
   drivers/media/platform/rcar_fdp1.c: In function 'fdp1_probe':
>> drivers/media/platform/rcar_fdp1.c:2264:2: error: implicit declaration of 
>> function 'vb2_dma_contig_init_ctx'
   drivers/media/platform/rcar_fdp1.c:2264:18: warning: assignment makes 
pointer from integer without a cast
>> drivers/media/platform/rcar_fdp1.c:2331:2: error: implicit declaration of 
>> function 'vb2_dma_contig_cleanup_ctx'
   drivers/media/platform/rcar_fdp1.c: At top level:
   drivers/media/platform/rcar_fdp1.c:2349:12: warning: 
'fdp1_pm_runtime_suspend' defined but not used
   drivers/media/platform/rcar_fdp1.c:2358:12: warning: 
'fdp1_pm_runtime_resume' defined but not used

vim +/vb2_dma_contig_init_ctx +2264 drivers/media/platform/rcar_fdp1.c

  2258                  return PTR_ERR(clk);
  2259  
  2260          fdp1->clk_rate = clk_get_rate(clk);
  2261          clk_put(clk);
  2262  
  2263          /* Memory allocation contexts */
> 2264          fdp1->alloc_ctx = vb2_dma_contig_init_ctx(&pdev->dev);
  2265          if (IS_ERR(fdp1->alloc_ctx)) {
  2266                  v4l2_err(&fdp1->v4l2_dev, "Failed to init memory 
allocator\n");
  2267                  return PTR_ERR(fdp1->alloc_ctx);
  2268          }
  2269  
  2270          /* V4L2 device registration */
  2271          ret = v4l2_device_register(&pdev->dev, &fdp1->v4l2_dev);
  2272          if (ret) {
  2273                  v4l2_err(&fdp1->v4l2_dev, "Failed to register video 
device\n");
  2274                  goto vb2_allocator_rollback;
  2275          }
  2276  
  2277          /* M2M registration */
  2278          fdp1->m2m_dev = v4l2_m2m_init(&m2m_ops);
  2279          if (IS_ERR(fdp1->m2m_dev)) {
  2280                  v4l2_err(&fdp1->v4l2_dev, "Failed to init mem2mem 
device\n");
  2281                  ret = PTR_ERR(fdp1->m2m_dev);
  2282                  goto unreg_dev;
  2283          }
  2284  
  2285          /* Video registration */
  2286          fdp1->vfd = fdp1_videodev;
  2287          vfd = &fdp1->vfd;
  2288          vfd->lock = &fdp1->dev_mutex;
  2289          vfd->v4l2_dev = &fdp1->v4l2_dev;
  2290          video_set_drvdata(vfd, fdp1);
  2291          strlcpy(vfd->name, fdp1_videodev.name, sizeof(vfd->name));
  2292  
  2293          ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);
  2294          if (ret) {
  2295                  v4l2_err(&fdp1->v4l2_dev, "Failed to register video 
device\n");
  2296                  goto release_m2m;
  2297          }
  2298  
  2299          v4l2_info(&fdp1->v4l2_dev,
  2300                          "Device registered as /dev/video%d\n", 
vfd->num);
  2301  
  2302          /* Power up the cells to read HW */
  2303          pm_runtime_enable(&pdev->dev);
  2304          pm_runtime_get_sync(fdp1->dev);
  2305  
  2306          hw_version = fdp1_read(fdp1, FD1_IP_INTDATA);
  2307          switch (hw_version) {
  2308          case FD1_IP_H3:
  2309                  dprintk(fdp1, "FDP1 Version R-Car H3\n");
  2310                  break;
  2311          case FD1_IP_M3W:
  2312                  dprintk(fdp1, "FDP1 Version R-Car M3-W\n");
  2313                  break;
  2314          default:
  2315                  dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n",
  2316                                  hw_version);
  2317          }
  2318  
  2319          /* Allow the hw to sleep until an open call puts it to use */
  2320          pm_runtime_put(fdp1->dev);
  2321  
  2322          return 0;
  2323  
  2324  release_m2m:
  2325          v4l2_m2m_release(fdp1->m2m_dev);
  2326  
  2327  unreg_dev:
  2328          v4l2_device_unregister(&fdp1->v4l2_dev);
  2329  
  2330  vb2_allocator_rollback:
> 2331          vb2_dma_contig_cleanup_ctx(fdp1->alloc_ctx);
  2332  
  2333          return ret;
  2334  }

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

Attachment: .config.gz
Description: Binary data

Reply via email to