* [frank-w-bpi-r2-4.14:5.17-r2pro-hdmi 43/46] drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2550:12: warning: stack frame size (1168) exceeds limit (1024) in 'vop2_bind'
@ 2022-01-27 5:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-27 5:49 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4725 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.17-r2pro-hdmi
head: 47ea0858ec5d41e130b4ec8e1afc783d6de12db1
commit: 353c7a28cd93e3fcde708355f1d45fac06ae0556 [43/46] drm: rockchip: Add VOP2 driver
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20220127/202201271359.OvFmFHh5-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f400a6012c668dfaa73462caf067ceb074e66c47)
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/frank-w/BPI-R2-4.14/commit/353c7a28cd93e3fcde708355f1d45fac06ae0556
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.17-r2pro-hdmi
git checkout 353c7a28cd93e3fcde708355f1d45fac06ae0556
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/rockchip/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2550:12: warning: stack frame size (1168) exceeds limit (1024) in 'vop2_bind' [-Wframe-larger-than]
static int vop2_bind(struct device *dev, struct device *master, void *data)
^
1 warning generated.
vim +/vop2_bind +2550 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
2549
> 2550 static int vop2_bind(struct device *dev, struct device *master, void *data)
2551 {
2552 struct platform_device *pdev = to_platform_device(dev);
2553 const struct vop2_data *vop2_data;
2554 struct drm_device *drm = data;
2555 struct vop2 *vop2;
2556 struct resource *res;
2557 size_t alloc_size;
2558 int ret;
2559
2560 vop2_data = of_device_get_match_data(dev);
2561 if (!vop2_data)
2562 return -ENODEV;
2563
2564 /* Allocate vop2 struct and its vop2_win array */
2565 alloc_size = sizeof(*vop2) + sizeof(*vop2->win) * vop2_data->win_size;
2566 vop2 = devm_kzalloc(dev, alloc_size, GFP_KERNEL);
2567 if (!vop2)
2568 return -ENOMEM;
2569
2570 vop2->dev = dev;
2571 vop2->data = vop2_data;
2572 vop2->drm = drm;
2573
2574 dev_set_drvdata(dev, vop2);
2575
2576 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
2577 if (!res) {
2578 drm_err(vop2->drm, "failed to get vop2 register byname\n");
2579 return -EINVAL;
2580 }
2581
2582 vop2->regs = devm_ioremap_resource(dev, res);
2583 if (IS_ERR(vop2->regs))
2584 return PTR_ERR(vop2->regs);
2585 vop2->len = resource_size(res);
2586
2587 vop2->map = devm_regmap_init_mmio(dev, vop2->regs, &vop2_regmap_config);
2588
2589 ret = vop2_win_init(vop2);
2590 if (ret)
2591 return ret;
2592
2593 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gamma_lut");
2594 if (res) {
2595 vop2->lut_regs = devm_ioremap_resource(dev, res);
2596 if (IS_ERR(vop2->lut_regs))
2597 return PTR_ERR(vop2->lut_regs);
2598 }
2599
2600 vop2->grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf");
2601
2602 vop2->hclk = devm_clk_get(vop2->dev, "hclk");
2603 if (IS_ERR(vop2->hclk)) {
2604 drm_err(vop2->drm, "failed to get hclk source\n");
2605 return PTR_ERR(vop2->hclk);
2606 }
2607
2608 vop2->aclk = devm_clk_get(vop2->dev, "aclk");
2609 if (IS_ERR(vop2->aclk)) {
2610 drm_err(vop2->drm, "failed to get aclk source\n");
2611 return PTR_ERR(vop2->aclk);
2612 }
2613
2614 vop2->irq = platform_get_irq(pdev, 0);
2615 if (vop2->irq < 0) {
2616 drm_err(vop2->drm, "cannot find irq for vop2\n");
2617 return vop2->irq;
2618 }
2619
2620 mutex_init(&vop2->vop2_lock);
2621
2622 ret = devm_request_irq(dev, vop2->irq, vop2_isr, IRQF_SHARED, dev_name(dev), vop2);
2623 if (ret)
2624 return ret;
2625
2626 ret = rockchip_drm_dma_attach_device(vop2->drm, vop2->dev);
2627 if (ret) {
2628 drm_err(vop2->drm, "failed to attach dma mapping, %d\n", ret);
2629 return ret;
2630 }
2631
2632 ret = vop2_create_crtc(vop2);
2633 if (ret)
2634 return ret;
2635
2636 pm_runtime_enable(&pdev->dev);
2637
2638 return 0;
2639 }
2640
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-27 5:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 5:49 [frank-w-bpi-r2-4.14:5.17-r2pro-hdmi 43/46] drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2550:12: warning: stack frame size (1168) exceeds limit (1024) in 'vop2_bind' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.