Linux USB
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: qiwuchen55@gmail.com
Cc: kbuild-all@lists.01.org, gregkh@linuxfoundation.org,
	linux-usb@vger.kernel.org, chenqiwu <chenqiwu@xiaomi.com>
Subject: Re: [PATCH] usb: fhci: use list_first_entry() instead of list_entry()
Date: Mon, 24 Feb 2020 01:53:25 +0800	[thread overview]
Message-ID: <202002240106.X8UCBJF8%lkp@intel.com> (raw)
In-Reply-To: <1582468543-32343-1-git-send-email-qiwuchen55@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 27506 bytes --]

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on balbi-usb/next peter.chen-usb/ci-for-usb-next v5.6-rc2 next-20200221]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/qiwuchen55-gmail-com/usb-fhci-use-list_first_entry-instead-of-list_entry/20200223-232202
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

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

   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'peek_td_from_ed':
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
>> drivers/usb/host/fhci-q.c:75:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
>> drivers/usb/host/fhci-q.c:75:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
>> drivers/usb/host/fhci-q.c:75:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'fhci_remove_td_from_frame':
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:87:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:87:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:87:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
>> drivers/usb/host/fhci-q.c:88:17: error: incompatible type for argument 1 of 'list_del_init'
      list_del_init(td->frame_lh);
                    ^~
   In file included from include/linux/preempt.h:11:0,
                    from include/linux/spinlock.h:51,
                    from drivers/usb/host/fhci-q.c:16:
   include/linux/list.h:202:20: note: expected 'struct list_head *' but argument is of type 'struct list_head'
    static inline void list_del_init(struct list_head *entry)
                       ^~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'fhci_peek_td_from_frame':
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:100:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:100:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:100:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(frame->tds_list, struct td, frame_lh);
           ^~~~~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'fhci_remove_td_from_ed':
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:112:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:112:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:112:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(ed->td_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   drivers/usb/host/fhci-q.c:113:17: error: incompatible type for argument 1 of 'list_del_init'
      list_del_init(td->node);
                    ^~
   In file included from include/linux/preempt.h:11:0,
                    from include/linux/spinlock.h:51,
                    from drivers/usb/host/fhci-q.c:16:
   include/linux/list.h:202:20: note: expected 'struct list_head *' but argument is of type 'struct list_head'
    static inline void list_del_init(struct list_head *entry)
                       ^~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:117:18: note: in expansion of macro 'list_first_entry'
       ed->td_head = list_first_entry(ed->td_list, struct td,
                     ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:117:18: note: in expansion of macro 'list_first_entry'
       ed->td_head = list_first_entry(ed->td_list, struct td,
                     ^~~~~~~~~~~~~~~~
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:117:18: note: in expansion of macro 'list_first_entry'
       ed->td_head = list_first_entry(ed->td_list, struct td,
                     ^~~~~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'fhci_remove_td_from_done_list':
>> include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:132:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(p_list->done_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
   include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:132:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(p_list->done_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:987:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:988:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   include/linux/list.h:493:2: note: in expansion of macro 'container_of'
     container_of(ptr, type, member)
     ^~~~~~~~~~~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:132:8: note: in expansion of macro 'list_first_entry'
      td = list_first_entry(p_list->done_list, struct td, node);
           ^~~~~~~~~~~~~~~~
   drivers/usb/host/fhci-q.c:133:17: error: incompatible type for argument 1 of 'list_del_init'
      list_del_init(td->node);
                    ^~
   In file included from include/linux/preempt.h:11:0,
                    from include/linux/spinlock.h:51,
                    from drivers/usb/host/fhci-q.c:16:
   include/linux/list.h:202:20: note: expected 'struct list_head *' but argument is of type 'struct list_head'
    static inline void list_del_init(struct list_head *entry)
                       ^~~~~~~~~~~~~
   In file included from drivers/usb/host/fhci-q.c:14:0:
   drivers/usb/host/fhci-q.c: In function 'fhci_move_td_from_ed_to_done_list':
   include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/kernel.h:986:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   include/linux/list.h:504:2: note: in expansion of macro 'list_entry'
     list_entry((ptr)->next, type, member)
     ^~~~~~~~~~
   drivers/usb/host/fhci-q.c:149:17: note: in expansion of macro 'list_first_entry'
      ed->td_head = list_first_entry(ed->td_list, struct td, node);
                    ^~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:11:0,
                    from drivers/usb/host/fhci-q.c:14:
   include/linux/list.h:504:18: error: invalid type argument of '->' (have 'struct list_head')
     list_entry((ptr)->next, type, member)
                     ^
   include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
..

vim +/list_del_init +88 drivers/usb/host/fhci-q.c

    69	
    70	static struct td *peek_td_from_ed(struct ed *ed)
    71	{
    72		struct td *td;
    73	
    74		if (!list_empty(&ed->td_list))
  > 75			td = list_first_entry(ed->td_list, struct td, node);
    76		else
    77			td = NULL;
    78	
    79		return td;
    80	}
    81	
    82	struct td *fhci_remove_td_from_frame(struct fhci_time_frame *frame)
    83	{
    84		struct td *td;
    85	
    86		if (!list_empty(&frame->tds_list)) {
    87			td = list_first_entry(frame->tds_list, struct td, frame_lh);
  > 88			list_del_init(td->frame_lh);
    89		} else
    90			td = NULL;
    91	
    92		return td;
    93	}
    94	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64816 bytes --]

      reply	other threads:[~2020-02-23 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-23 14:35 [PATCH] usb: fhci: use list_first_entry() instead of list_entry() qiwuchen55
2020-02-23 17:53 ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202002240106.X8UCBJF8%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenqiwu@xiaomi.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=qiwuchen55@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox