]> git.baikalelectronics.ru Git - kernel.git/commit
qcom-scm: Include <linux/err.h> header
authorFabio Estevam <festevam@gmail.com>
Wed, 26 Dec 2018 12:06:19 +0000 (10:06 -0200)
committerAndy Gross <andy.gross@linaro.org>
Thu, 10 Jan 2019 23:04:45 +0000 (17:04 -0600)
commitede0e7d88b1aee93a34d7a7c04b75beb01df691d
tree6269c6a9b3a52600ff2f4f7c71b91c101ec23691
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
qcom-scm: Include <linux/err.h> header

Since commit 2491cf033e36 ("drm/msm: add headless gpu device for imx5")
the DRM_MSM symbol can be selected by SOC_IMX5 causing the following
error when building imx_v6_v7_defconfig:

In file included from ../drivers/gpu/drm/msm/adreno/a5xx_gpu.c:17:0:
../include/linux/qcom_scm.h: In function 'qcom_scm_set_cold_boot_addr':
../include/linux/qcom_scm.h:73:10: error: 'ENODEV' undeclared (first use in this function)
  return -ENODEV;

Include the <linux/err.h> header file to fix this problem.

Reported-by: kernelci.org bot <bot@kernelci.org>
Fixes: 2491cf033e36 ("drm/msm: add headless gpu device for imx5")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
include/linux/qcom_scm.h