Re: [PATCH] usb: fhci: use list_first_entry() instead of list_entry()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux