linux-next: build failure after merge of the usb tree
Hi all,
After merging the usb tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/xen/unpopulated-alloc.c:17:21: error: 'list_count' redeclared as different kind of symbol
17 | static unsigned int list_count;
| ^~~~~~~~~~In file included from include/linux/preempt.h:11,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from drivers/xen/unpopulated-alloc.c:3:include/linux/list.h:662:22: note: previous definition of 'list_count' with type 'size_t(struct list_head *)' {aka 'long unsigned int(struct list_head *)'}
662 | static inline size_t list_count(struct list_head *head)
| ^~~~~~~~~~
Caused by commit
a9efc04cfd05 ("i915: Move list_count() to list.h for broader use")
I have used the usb tree from next-20221129 for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 15 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/xen/unpopulated-alloc.c:17:21: error: 'list_count' redeclared as different kind of symbol17 | static unsigned int list_count; | ^~~~~~~~~~In file included from
include/linux/preempt.h:11,
frominclude/linux/spinlock.h:56,
frominclude/linux/mmzone.h:8,
frominclude/linux/gfp.h:7,
fromdrivers/xen/unpopulated-alloc.c:3:include/linux/list.h:662:22: note: previous definition of 'list_count' with type 'size_t(struct list_head *)' {aka 'long unsignedint(struct list_head *)'}
662 | static inlinesize_tlist_count(struct list_head *head)
Quoted 7 lines
| ^~~~~~~~~~Caused by commit
a9efc04cfd05("i915: Movelist_count()tolist.hfor broader use")I have used the usb tree from next-20221129 for today.
Odd, there is also one in the z2ram.c code but that isn't breaking :(
Andy, I'm going to revert this series from the USB tree now, please fix it up and resend.
thanks,
greg k-h
Quoted 20 lines · Greg KH
Quoted 19 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/xen/unpopulated-alloc.c:17:21: error: 'list_count' redeclared as different kind of symbol17 | static unsigned int list_count; | ^~~~~~~~~~In file included from
include/linux/preempt.h:11,
frominclude/linux/spinlock.h:56,
frominclude/linux/mmzone.h:8,
frominclude/linux/gfp.h:7,
fromdrivers/xen/unpopulated-alloc.c:3:include/linux/list.h:662:22: note: previous definition of 'list_count' with type 'size_t(struct list_head *)' {aka 'long unsignedint(struct list_head *)'}
662 | static inlinesize_tlist_count(struct list_head *head)| ^~~~~~~~~~Caused by commit
Quoted 8 lines
Quoted 3 lines
a9efc04cfd05("i915: Movelist_count()tolist.hfor broader use")I have used the usb tree from next-20221129 for today.
Odd, there is also one in the
z2ram.ccode but that isn't breaking :(Andy, I'm going to revert this series from the USB tree now, please fix it up and resend.
Sure. I think I will rename in my series list_count() to list_count_nodes(). This will be less invasive and should solve the issue(s).
$ git grep -n -lw list_count drivers/block/z2ram.c drivers/gpu/drm/i915/gt/intel_engine_cs.c drivers/scsi/hptiop.c drivers/scsi/hptiop.h drivers/xen/unpopulated-alloc.c
$ git grep -n -lw list_count_nodes
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Greg KH
On Wed, Nov 30, 2022 at 01:18:54PM +1100, Stephen Rothwell wrote:
...
Quoted 6 lines
Quoted 2 lines
Andy, I'm going to revert this series from the USB tree now, please fix it up and resend.
Sure. I think I will rename in my series
list_count()tolist_count_nodes(). This will be less invasive and should solve the issue(s).
Quoted 8 lines
$ git grep -n -lw list_count drivers/block/z2ram.c drivers/gpu/drm/i915/gt/intel_engine_cs.c drivers/scsi/hptiop.c drivers/scsi/hptiop.h drivers/xen/unpopulated-alloc.c$ git grep -n -lw list_count_nodes
v5 had been sent.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 19 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Greg KH
On Wed, Nov 30, 2022 at 01:18:54PM +1100, Stephen Rothwell wrote:
...
Quoted 13 lines
Quoted 2 lines
Andy, I'm going to revert this series from the USB tree now, please fix it up and resend.
Sure. I think I will rename in my series
list_count()tolist_count_nodes(). This will be less invasive and should solve the issue(s).$ git grep -n -lw list_count drivers/block/z2ram.c drivers/gpu/drm/i915/gt/intel_engine_cs.c drivers/scsi/hptiop.c drivers/scsi/hptiop.h drivers/xen/unpopulated-alloc.c
Quoted 3 lines
Quoted 1 line
$ git grep -n -lw list_count_nodesv5 had been sent.
Thanks, I'll get to it in a few days when I catch up on USB changes.
greg k-h
Quoted 15 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/xen/unpopulated-alloc.c:17:21: error: 'list_count' redeclared as different kind of symbol17 | static unsigned int list_count; | ^~~~~~~~~~In file included from
include/linux/preempt.h:11,
frominclude/linux/spinlock.h:56,
frominclude/linux/mmzone.h:8,
frominclude/linux/gfp.h:7,
fromdrivers/xen/unpopulated-alloc.c:3:include/linux/list.h:662:22: note: previous definition of 'list_count' with type 'size_t(struct list_head *)' {aka 'long unsignedint(struct list_head *)'}
662 | static inlinesize_tlist_count(struct list_head *head)
Quoted 7 lines
| ^~~~~~~~~~Caused by commit
a9efc04cfd05("i915: Movelist_count()tolist.hfor broader use")I have used the usb tree from next-20221129 for today.
I will cook the fix ASAP, thanks for the report!
Signature · 2 lines
With Best Regards, Andy Shevchenko