linux-next: Tree for Jun 2 (arch/powerpc/kernel/iommu.c)

Randy Dunlap rdunlap at infradead.org
Sat Jun 3 06:56:27 AEST 2023



On 6/1/23 21:01, Stephen Rothwell wrote:
> Hi all,
> 
> Changes since 20230601:
> 

On powerpc64, a randconfig failed with:

In file included from ../include/linux/list.h:5,
                 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 ../include/linux/slab.h:15,
                 from ../arch/powerpc/kernel/iommu.c:15:
../arch/powerpc/kernel/iommu.c: In function 'spapr_tce_setup_phb_iommus_initcall':
../arch/powerpc/kernel/iommu.c:1391:36: error: 'hose_list' undeclared (first use in this function); did you mean 'zonelist'?
 1391 |         list_for_each_entry(hose, &hose_list, list_node) {
      |                                    ^~~~~~~~~
../include/linux/container_of.h:19:33: note: in definition of macro 'container_of'
   19 |         void *__mptr = (void *)(ptr);                                   \
      |                                 ^~~
../include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
  531 |         list_entry((ptr)->next, type, member)
      |         ^~~~~~~~~~
../include/linux/list.h:689:20: note: in expansion of macro 'list_first_entry'
  689 |         for (pos = list_first_entry(head, typeof(*pos), member);        \
      |                    ^~~~~~~~~~~~~~~~
../arch/powerpc/kernel/iommu.c:1391:9: note: in expansion of macro 'list_for_each_entry'
 1391 |         list_for_each_entry(hose, &hose_list, list_node) {
      |         ^~~~~~~~~~~~~~~~~~~
../arch/powerpc/kernel/iommu.c:1391:36: note: each undeclared identifier is reported only once for each function it appears in
 1391 |         list_for_each_entry(hose, &hose_list, list_node) {
      |                                    ^~~~~~~~~
../include/linux/container_of.h:19:33: note: in definition of macro 'container_of'
   19 |         void *__mptr = (void *)(ptr);                                   \
      |                                 ^~~
../include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
  531 |         list_entry((ptr)->next, type, member)
      |         ^~~~~~~~~~
../include/linux/list.h:689:20: note: in expansion of macro 'list_first_entry'
  689 |         for (pos = list_first_entry(head, typeof(*pos), member);        \
      |                    ^~~~~~~~~~~~~~~~
../arch/powerpc/kernel/iommu.c:1391:9: note: in expansion of macro 'list_for_each_entry'
 1391 |         list_for_each_entry(hose, &hose_list, list_node) {
      |         ^~~~~~~~~~~~~~~~~~~
In file included from ../include/linux/init.h:5,
                 from ../arch/powerpc/kernel/iommu.c:13:
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
  338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
   78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
      |                                                        ^~~~
../include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
   20 |         static_assert(__same_type(*(ptr), ((type *)0)->member) ||       \
      |         ^~~~~~~~~~~~~
../include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
   20 |         static_assert(__same_type(*(ptr), ((type *)0)->member) ||       \
      |                       ^~~~~~~~~~~
../include/linux/list.h:520:9: note: in expansion of macro 'container_of'
  520 |         container_of(ptr, type, member)
      |         ^~~~~~~~~~~~
../include/linux/list.h:531:9: note: in expansion of macro 'list_entry'
  531 |         list_entry((ptr)->next, type, member)
      |         ^~~~~~~~~~
../include/linux/list.h:689:20: note: in expansion of macro 'list_first_entry'
  689 |         for (pos = list_first_entry(head, typeof(*pos), member);        \
      |                    ^~~~~~~~~~~~~~~~
../arch/powerpc/kernel/iommu.c:1391:9: note: in expansion of macro 'list_for_each_entry'
 1391 |         list_for_each_entry(hose, &hose_list, list_node) {
      |         ^~~~~~~~~~~~~~~~~~~


CONFIG_IOMMU_API=y
# CONFIG_IOMMU_SUPPORT is not set
CONFIG_IOMMU_HELPER=y


Full randconfig file is attached.

-- 
~Randy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-r9531.gz
Type: application/gzip
Size: 27539 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20230602/a1b5f006/attachment-0001.gz>


More information about the Linuxppc-dev mailing list