]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: ocmem: add missing includes
authorBrian Masney <masneyb@onstation.org>
Sun, 1 Sep 2019 21:30:37 +0000 (17:30 -0400)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Oct 2019 15:19:43 +0000 (08:19 -0700)
commit4d8762118ac63294fbb898a2373a4a7d3cb01ce4
treedc3492fd12def0004e41e1f6f38fa1b7b7fc41aa
parentee2404cb374ea18c6695beb7a8eada7e689f6fd6
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>
include/soc/qcom/ocmem.h