[ath6kl:pending 31/42] include/linux/kernel.h:870:51: error: 'struct wil6210_priv' has no member named 'pm_notify'

kbuild test robot fengguang.wu at intel.com
Thu Nov 2 14:22:50 PDT 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git pending
head:   94b84baa001b2149a163f7267d7892b7fad37a6e
commit: cdcdf8e424576a44684d28f7d5dde311a5509463 [31/42] wil6210: run-time PM when interface down
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cdcdf8e424576a44684d28f7d5dde311a5509463
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All error/warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/net/wireless/ath/wil6210/pcie_bus.c:17:
   drivers/net/wireless/ath/wil6210/pcie_bus.c: In function 'wil6210_pm_notify':
>> include/linux/kernel.h:870:51: error: 'struct wil6210_priv' has no member named 'pm_notify'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                      ^
   include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^
   include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^
   include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^
   include/linux/kernel.h:870:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^
   include/linux/kernel.h:870:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^
>> drivers/net/wireless/ath/wil6210/pcie_bus.c:451:29: note: in expansion of macro 'container_of'
     struct wil6210_priv *wil = container_of(
                                ^
   In file included from include/linux/compiler.h:58:0,
                    from include/uapi/linux/stddef.h:1,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/net/wireless/ath/wil6210/pcie_bus.c:17:
>> include/linux/compiler-gcc.h:165:2: error: 'struct wil6210_priv' has no member named 'pm_notify'
     __builtin_offsetof(a, b)
     ^
   include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                   ^
   include/linux/kernel.h:873:21: note: in expansion of macro 'offsetof'
     ((type *)(__mptr - offsetof(type, member))); })
                        ^
>> drivers/net/wireless/ath/wil6210/pcie_bus.c:451:29: note: in expansion of macro 'container_of'
     struct wil6210_priv *wil = container_of(
                                ^
   drivers/net/wireless/ath/wil6210/pcie_bus.c: At top level:
   drivers/net/wireless/ath/wil6210/pcie_bus.c:448:12: warning: 'wil6210_pm_notify' defined but not used [-Wunused-function]
    static int wil6210_pm_notify(struct notifier_block *notify_block,
               ^
   drivers/net/wireless/ath/wil6210/pcie_bus.c:487:12: warning: 'wil6210_pm_suspend' defined but not used [-Wunused-function]
    static int wil6210_pm_suspend(struct device *dev)
               ^
   drivers/net/wireless/ath/wil6210/pcie_bus.c:492:12: warning: 'wil6210_pm_resume' defined but not used [-Wunused-function]
    static int wil6210_pm_resume(struct device *dev)
               ^
--
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/net//wireless/ath/wil6210/pcie_bus.c:17:
   drivers/net//wireless/ath/wil6210/pcie_bus.c: In function 'wil6210_pm_notify':
>> include/linux/kernel.h:870:51: error: 'struct wil6210_priv' has no member named 'pm_notify'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                                                      ^
   include/linux/compiler.h:553:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^
   include/linux/compiler.h:576:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^
   include/linux/build_bug.h:46:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^
   include/linux/kernel.h:870:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^
   include/linux/kernel.h:870:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^
   drivers/net//wireless/ath/wil6210/pcie_bus.c:451:29: note: in expansion of macro 'container_of'
     struct wil6210_priv *wil = container_of(
                                ^
   In file included from include/linux/compiler.h:58:0,
                    from include/uapi/linux/stddef.h:1,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from drivers/net//wireless/ath/wil6210/pcie_bus.c:17:
>> include/linux/compiler-gcc.h:165:2: error: 'struct wil6210_priv' has no member named 'pm_notify'
     __builtin_offsetof(a, b)
     ^
   include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                   ^
   include/linux/kernel.h:873:21: note: in expansion of macro 'offsetof'
     ((type *)(__mptr - offsetof(type, member))); })
                        ^
   drivers/net//wireless/ath/wil6210/pcie_bus.c:451:29: note: in expansion of macro 'container_of'
     struct wil6210_priv *wil = container_of(
                                ^
   drivers/net//wireless/ath/wil6210/pcie_bus.c: At top level:
   drivers/net//wireless/ath/wil6210/pcie_bus.c:448:12: warning: 'wil6210_pm_notify' defined but not used [-Wunused-function]
    static int wil6210_pm_notify(struct notifier_block *notify_block,
               ^
   drivers/net//wireless/ath/wil6210/pcie_bus.c:487:12: warning: 'wil6210_pm_suspend' defined but not used [-Wunused-function]
    static int wil6210_pm_suspend(struct device *dev)
               ^
   drivers/net//wireless/ath/wil6210/pcie_bus.c:492:12: warning: 'wil6210_pm_resume' defined but not used [-Wunused-function]
    static int wil6210_pm_resume(struct device *dev)
               ^

vim +870 include/linux/kernel.h

^1da177e Linus Torvalds 2005-04-16  853  
91f68b73 Wu Fengguang   2009-01-07  854  
91f68b73 Wu Fengguang   2009-01-07  855  /*
91f68b73 Wu Fengguang   2009-01-07  856   * swap - swap value of @a and @b
91f68b73 Wu Fengguang   2009-01-07  857   */
ac7b9004 Peter Zijlstra 2009-02-04  858  #define swap(a, b) \
ac7b9004 Peter Zijlstra 2009-02-04  859  	do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0)
91f68b73 Wu Fengguang   2009-01-07  860  
^1da177e Linus Torvalds 2005-04-16  861  /**
^1da177e Linus Torvalds 2005-04-16  862   * container_of - cast a member of a structure out to the containing structure
^1da177e Linus Torvalds 2005-04-16  863   * @ptr:	the pointer to the member.
^1da177e Linus Torvalds 2005-04-16  864   * @type:	the type of the container struct this is embedded in.
^1da177e Linus Torvalds 2005-04-16  865   * @member:	the name of the member within the struct.
^1da177e Linus Torvalds 2005-04-16  866   *
^1da177e Linus Torvalds 2005-04-16  867   */
^1da177e Linus Torvalds 2005-04-16  868  #define container_of(ptr, type, member) ({				\
c7acec71 Ian Abbott     2017-07-12  869  	void *__mptr = (void *)(ptr);					\
c7acec71 Ian Abbott     2017-07-12 @870  	BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&	\
c7acec71 Ian Abbott     2017-07-12  871  			 !__same_type(*(ptr), void),			\
c7acec71 Ian Abbott     2017-07-12  872  			 "pointer type mismatch in container_of()");	\
c7acec71 Ian Abbott     2017-07-12  873  	((type *)(__mptr - offsetof(type, member))); })
^1da177e Linus Torvalds 2005-04-16  874  

:::::: The code at line 870 was first introduced by commit
:::::: c7acec713d14c6ce8a20154f9dfda258d6bcad3b kernel.h: handle pointers to arrays better in container_of()

:::::: TO: Ian Abbott <abbotti at mev.co.uk>
:::::: CC: Linus Torvalds <torvalds at linux-foundation.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: 51610 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/ath10k/attachments/20171103/aefe0e42/attachment-0001.gz>


More information about the ath10k mailing list