[ath6kl:pending 25/27] include/linux/soc/qcom/smem_state.h:28:9: error: implicit declaration of function 'ERR_PTR'

kbuild test robot fengguang.wu at intel.com
Wed Nov 9 05:11:19 PST 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head:   0b28fa7b6a77e1815cb5d34fe5b889ab53c5ca04
commit: d557637809b66bd63a4d4693a11d5c287a6a68c0 [25/27] wcn36xx: Transition driver to SMD client
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d557637809b66bd63a4d4693a11d5c287a6a68c0
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from drivers/net/wireless/ath/wcn36xx/dxe.c:26:0:
   include/linux/soc/qcom/smem_state.h: In function 'qcom_smem_state_get':
>> include/linux/soc/qcom/smem_state.h:28:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]
     return ERR_PTR(-EINVAL);
            ^~~~~~~
   include/linux/soc/qcom/smem_state.h:28:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return ERR_PTR(-EINVAL);
            ^~~~~~~~~~~~~~~~
   include/linux/soc/qcom/smem_state.h: In function 'qcom_smem_state_register':
   include/linux/soc/qcom/smem_state.h:44:9: warning: return makes pointer from integer without a cast [-Wint-conversion]
     return ERR_PTR(-EINVAL);
            ^~~~~~~~~~~~~~~~
   In file included from include/linux/rwsem.h:17:0,
                    from include/linux/mm_types.h:10,
                    from include/linux/kmemcheck.h:4,
                    from include/linux/skbuff.h:18,
                    from include/linux/if_ether.h:23,
                    from include/net/mac80211.h:20,
                    from drivers/net/wireless/ath/wcn36xx/wcn36xx.h:23,
                    from drivers/net/wireless/ath/wcn36xx/dxe.c:27:
   include/linux/err.h: At top level:
>> include/linux/err.h:23:35: error: conflicting types for 'ERR_PTR'
    static inline void * __must_check ERR_PTR(long error)
                                      ^~~~~~~
   In file included from drivers/net/wireless/ath/wcn36xx/dxe.c:26:0:
   include/linux/soc/qcom/smem_state.h:28:9: note: previous implicit declaration of 'ERR_PTR' was here
     return ERR_PTR(-EINVAL);
            ^~~~~~~
   cc1: some warnings being treated as errors

vim +/ERR_PTR +28 include/linux/soc/qcom/smem_state.h

9460ae2f Bjorn Andersson 2015-09-24  22  
e8b123e6 Bjorn Andersson 2015-12-24  23  #else
e8b123e6 Bjorn Andersson 2015-12-24  24  
e8b123e6 Bjorn Andersson 2015-12-24  25  static inline struct qcom_smem_state *qcom_smem_state_get(struct device *dev,
e8b123e6 Bjorn Andersson 2015-12-24  26  	const char *con_id, unsigned *bit)
e8b123e6 Bjorn Andersson 2015-12-24  27  {
e8b123e6 Bjorn Andersson 2015-12-24 @28  	return ERR_PTR(-EINVAL);
e8b123e6 Bjorn Andersson 2015-12-24  29  }
e8b123e6 Bjorn Andersson 2015-12-24  30  
e8b123e6 Bjorn Andersson 2015-12-24  31  static inline void qcom_smem_state_put(struct qcom_smem_state *state)

:::::: The code at line 28 was first introduced by commit
:::::: e8b123e6008480b2b8d80dae060315d84b79f4bb soc: qcom: smem_state: Add stubs for disabled smem_state

:::::: TO: Bjorn Andersson <bjorn at kryo.se>
:::::: CC: Andy Gross <andy.gross at linaro.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 47837 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20161109/962e2bfd/attachment-0001.gz>


More information about the ath10k mailing list