lkml.org 
[lkml]   [2018]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] firmware: qcom: scm: add error include
Date
In some configurations the preprocessor define ENODEV is missing
leading to compile time errors (e.g. when using imx_v6_v7_defconfig).

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
I noticed while compiling todays master branch with imx_v6_v7_defconfig:

In file included from drivers/gpu/drm/msm/adreno/a5xx_gpu.c:17:
./include/linux/qcom_scm.h:73:10: error: use of undeclared identifier 'ENODEV'
return -ENODEV;
^

I think this only got uncovered due to e6f6d63ed14c ("drm/msm: add headless
gpu device for imx5") but it seems to be a missing include already before that
commit.

--
Stefan


include/linux/qcom_scm.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/qcom_scm.h b/include/linux/qcom_scm.h
index 06996ad4f2bc..ce5a476fd733 100644
--- a/include/linux/qcom_scm.h
+++ b/include/linux/qcom_scm.h
@@ -13,6 +13,7 @@
#ifndef __QCOM_SCM_H
#define __QCOM_SCM_H

+#include <linux/err.h>
#include <linux/types.h>
#include <linux/cpumask.h>

--
2.20.1
\
 
 \ /
  Last update: 2018-12-27 23:56    [W:0.025 / U:7.220 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site