Linux Power Management development
 help / color / mirror / Atom feed
* [vireshk:opp/genpd-performance-state 8/8] drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state'
@ 2017-08-03  0:11 kbuild test robot
  2017-08-03  3:04 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2017-08-03  0:11 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: kbuild-all, linux-pm

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

tree:   https://git.linaro.org/people/vireshk/linux opp/genpd-performance-state
head:   632eb4c9568177dd7a3f3c29ba88698616f6e4ad
commit: 632eb4c9568177dd7a3f3c29ba88698616f6e4ad [8/8] remoteproc: qcom: q6v5: Vote for proxy powerdomain performance state
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 632eb4c9568177dd7a3f3c29ba88698616f6e4ad
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers//remoteproc/qcom_q6v5_pil.c: In function 'q6v5_probe':
>> drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state' [-Werror=implicit-function-declaration]
     qproc->has_perf_state = pm_genpd_has_performance_state(&qproc->dev);
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/pm_genpd_has_performance_state +1050 drivers//remoteproc/qcom_q6v5_pil.c

   949	
   950	static int q6v5_probe(struct platform_device *pdev)
   951	{
   952		const struct rproc_hexagon_res *desc;
   953		struct q6v5 *qproc;
   954		struct rproc *rproc;
   955		int ret;
   956	
   957		desc = of_device_get_match_data(&pdev->dev);
   958		if (!desc)
   959			return -EINVAL;
   960	
   961		rproc = rproc_alloc(&pdev->dev, pdev->name, &q6v5_ops,
   962				    desc->hexagon_mba_image, sizeof(*qproc));
   963		if (!rproc) {
   964			dev_err(&pdev->dev, "failed to allocate rproc\n");
   965			return -ENOMEM;
   966		}
   967	
   968		rproc->fw_ops = &q6v5_fw_ops;
   969	
   970		qproc = (struct q6v5 *)rproc->priv;
   971		qproc->dev = &pdev->dev;
   972		qproc->rproc = rproc;
   973		platform_set_drvdata(pdev, qproc);
   974	
   975		init_completion(&qproc->start_done);
   976		init_completion(&qproc->stop_done);
   977	
   978		ret = q6v5_init_mem(qproc, pdev);
   979		if (ret)
   980			goto free_rproc;
   981	
   982		ret = q6v5_alloc_memory_region(qproc);
   983		if (ret)
   984			goto free_rproc;
   985	
   986		ret = q6v5_init_clocks(&pdev->dev, qproc->proxy_clks,
   987				       desc->proxy_clk_names);
   988		if (ret < 0) {
   989			dev_err(&pdev->dev, "Failed to get proxy clocks.\n");
   990			goto free_rproc;
   991		}
   992		qproc->proxy_clk_count = ret;
   993	
   994		ret = q6v5_init_clocks(&pdev->dev, qproc->active_clks,
   995				       desc->active_clk_names);
   996		if (ret < 0) {
   997			dev_err(&pdev->dev, "Failed to get active clocks.\n");
   998			goto free_rproc;
   999		}
  1000		qproc->active_clk_count = ret;
  1001	
  1002		ret = q6v5_regulator_init(&pdev->dev, qproc->proxy_regs,
  1003					  desc->proxy_supply);
  1004		if (ret < 0) {
  1005			dev_err(&pdev->dev, "Failed to get proxy regulators.\n");
  1006			goto free_rproc;
  1007		}
  1008		qproc->proxy_reg_count = ret;
  1009	
  1010		ret = q6v5_regulator_init(&pdev->dev,  qproc->active_regs,
  1011					  desc->active_supply);
  1012		if (ret < 0) {
  1013			dev_err(&pdev->dev, "Failed to get active regulators.\n");
  1014			goto free_rproc;
  1015		}
  1016		qproc->active_reg_count = ret;
  1017	
  1018		ret = q6v5_init_reset(qproc);
  1019		if (ret)
  1020			goto free_rproc;
  1021	
  1022		ret = q6v5_request_irq(qproc, pdev, "wdog", q6v5_wdog_interrupt);
  1023		if (ret < 0)
  1024			goto free_rproc;
  1025	
  1026		ret = q6v5_request_irq(qproc, pdev, "fatal", q6v5_fatal_interrupt);
  1027		if (ret < 0)
  1028			goto free_rproc;
  1029	
  1030		ret = q6v5_request_irq(qproc, pdev, "handover", q6v5_handover_interrupt);
  1031		if (ret < 0)
  1032			goto free_rproc;
  1033	
  1034		ret = q6v5_request_irq(qproc, pdev, "stop-ack", q6v5_stop_ack_interrupt);
  1035		if (ret < 0)
  1036			goto free_rproc;
  1037	
  1038		qproc->state = qcom_smem_state_get(&pdev->dev, "stop", &qproc->stop_bit);
  1039		if (IS_ERR(qproc->state)) {
  1040			ret = PTR_ERR(qproc->state);
  1041			goto free_rproc;
  1042		}
  1043	
  1044		qcom_add_smd_subdev(rproc, &qproc->smd_subdev);
  1045	
  1046		ret = rproc_add(rproc);
  1047		if (ret)
  1048			goto free_rproc;
  1049	
> 1050		qproc->has_perf_state = pm_genpd_has_performance_state(&qproc->dev);
  1051	
  1052		return 0;
  1053	
  1054	free_rproc:
  1055		rproc_free(rproc);
  1056	
  1057		return ret;
  1058	}
  1059	

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [vireshk:opp/genpd-performance-state 8/8] drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state'
  2017-08-03  0:11 [vireshk:opp/genpd-performance-state 8/8] drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state' kbuild test robot
@ 2017-08-03  3:04 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2017-08-03  3:04 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-pm

On 03-08-17, 08:11, kbuild test robot wrote:
> tree:   https://git.linaro.org/people/vireshk/linux opp/genpd-performance-state
> head:   632eb4c9568177dd7a3f3c29ba88698616f6e4ad
> commit: 632eb4c9568177dd7a3f3c29ba88698616f6e4ad [8/8] remoteproc: qcom: q6v5: Vote for proxy powerdomain performance state
> config: arm-allmodconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 632eb4c9568177dd7a3f3c29ba88698616f6e4ad
>         # save the attached .config to linux build tree
>         make.cross ARCH=arm 
> 
> All errors (new ones prefixed by >>):
> 
>    drivers//remoteproc/qcom_q6v5_pil.c: In function 'q6v5_probe':
> >> drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state' [-Werror=implicit-function-declaration]
>      qproc->has_perf_state = pm_genpd_has_performance_state(&qproc->dev);
>                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    cc1: some warnings being treated as errors
> 
> vim +/pm_genpd_has_performance_state +1050 drivers//remoteproc/qcom_q6v5_pil.c

It was just a testing patch, dropped it from the tree now. Thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-03  3:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-03  0:11 [vireshk:opp/genpd-performance-state 8/8] drivers//remoteproc/qcom_q6v5_pil.c:1050:26: error: implicit declaration of function 'pm_genpd_has_performance_state' kbuild test robot
2017-08-03  3:04 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox