Skip to content

Commit bfcb7e1

Browse files
masneybrobclark
authored andcommitted
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>
1 parent 26c0b26 commit bfcb7e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/soc/qcom/ocmem.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
* Copyright (C) 2015 Red Hat. Author: Rob Clark <robdclark@gmail.com>
1010
*/
1111

12+
#include <linux/device.h>
13+
#include <linux/err.h>
14+
1215
#ifndef __OCMEM_H__
1316
#define __OCMEM_H__
1417

0 commit comments

Comments
 (0)