diff options
author | Brian Masney <masneyb@onstation.org> | 2019-09-01 17:30:37 -0400 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-10-07 08:19:43 -0700 |
commit | bfcb7e1555ecc157cea23e35057002e3055e90a6 (patch) | |
tree | dc3492fd12def0004e41e1f6f38fa1b7b7fc41aa /include/soc | |
parent | 26c0b26dcd005d9d6de9246737177e7af821859a (diff) |
soc: qcom: ocmem: add missing includes
The kbuild bot reported the following compiler errors when compiling on
MIPS with CONFIG_QCOM_OCMEM disabled:
In file included from <command-line>:0:0:
>> include/soc/qcom/ocmem.h:43:49: warning: 'struct device' declared
inside parameter list will not be visible outside of this
definition or declaration
static inline struct ocmem *of_get_ocmem(struct device *dev)
^~~~~~
include/soc/qcom/ocmem.h: In function 'of_get_ocmem':
>> include/soc/qcom/ocmem.h:45:9: error: implicit declaration of
function 'ERR_PTR' [-Werror=implicit-function-declaration]
return ERR_PTR(-ENODEV);
^~~~~~~
>> include/soc/qcom/ocmem.h:45:18: error: 'ENODEV' undeclared (first
use in this function)
return ERR_PTR(-ENODEV);
Add the proper includes to fix the compiler errors.
Signed-off-by: Brian Masney <masneyb@onstation.org>
Reported-by: kbuild test robot <lkp@intel.com>
Tested-by: Gabriel Francisco <frc.gabriel@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/qcom/ocmem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/soc/qcom/ocmem.h b/include/soc/qcom/ocmem.h index a0ae336ba78b..02a8bc2677b1 100644 --- a/include/soc/qcom/ocmem.h +++ b/include/soc/qcom/ocmem.h @@ -9,6 +9,9 @@ * Copyright (C) 2015 Red Hat. Author: Rob Clark <robdclark@gmail.com> */ +#include <linux/device.h> +#include <linux/err.h> + #ifndef __OCMEM_H__ #define __OCMEM_H__ |