linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] firmware: qcom: scm: add error include
@ 2018-12-27 22:55 Stefan Agner
  0 siblings, 0 replies; only message in thread
From: Stefan Agner @ 2018-12-27 22:55 UTC (permalink / raw)
  To: bjorn.andersson, robdclark; +Cc: jonathan, linux-kernel, Stefan Agner

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-27 22:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27 22:55 [PATCH] firmware: qcom: scm: add error include Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).