mips: allmodconfig build failed on linux next

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

 



mips allmodconfig build failed on linux next due to below errors.
Since we recently started building allmodconfig, we do not have information
on when this problem started.

We are building with gcc-8, gcc-9 and gcc-10.

metadata:
--------------
    git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
    target_arch: mips
    toolchain: gcc-10
    git_short_log: dcf2427baa64 (\Add linux-next specific files for 20200923\)
    git_describe: next-20200923
    kernel_version: 5.9.0-rc6

build log:
-------------
make -sk KBUILD_BUILD_USER=TuxBuild -C/linux ARCH=mips
CROSS_COMPILE=mips-linux-gnu- HOSTCC=gcc CC="sccache
mips-linux-gnu-gcc" O=build allmodconfig

make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=mips
CROSS_COMPILE=mips-linux-gnu- HOSTCC=gcc CC="sccache
mips-linux-gnu-gcc" O=build
#
In file included from <command-line>:
../arch/mips/mm/init.c: In function ‘mem_init’:
./../include/linux/compiler_types.h:319:38: error: call to
‘__compiletime_assert_321’ declared with attribute error: BUILD_BUG_ON
failed: IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)
  319 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |                                      ^
./../include/linux/compiler_types.h:300:4: note: in definition of
macro ‘__compiletime_assert’
  300 |    prefix ## suffix();    \
      |    ^~~~~~
./../include/linux/compiler_types.h:319:2: note: in expansion of macro
‘_compiletime_assert’
  319 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |  ^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro
‘compiletime_assert’
   39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
      |                                     ^~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:50:2: note: in expansion of macro
‘BUILD_BUG_ON_MSG’
   50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
      |  ^~~~~~~~~~~~~~~~
../arch/mips/mm/init.c:458:2: note: in expansion of macro ‘BUILD_BUG_ON’
  458 |  BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT));
      |  ^~~~~~~~~~~~
make[3]: *** [../scripts/Makefile.build:283: arch/mips/mm/init.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [../scripts/Makefile.build:500: arch/mips/mm] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [/linux/Makefile:1792: arch/mips] Error 2
../drivers/bus/mhi/core/debugfs.c: In function ‘mhi_debugfs_events_show’:
../drivers/bus/mhi/core/debugfs.c:74:51: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
   74 |   seq_printf(m, " local rp: 0x%llx db: 0x%llx\n", (u64)ring->rp,
      |                                                   ^
../drivers/bus/mhi/core/debugfs.c:74:45: warning: format ‘%llx’
expects argument of type ‘long long unsigned int’, but argument 4 has
type ‘dma_addr_t’ {aka ‘unsigned int’} [-Wformat=]
   74 |   seq_printf(m, " local rp: 0x%llx db: 0x%llx\n", (u64)ring->rp,
      |                                          ~~~^
      |                                             |
      |                                             long long unsigned int
      |                                          %x
   75 |       mhi_event->db_cfg.db_val);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~
      |                        |
      |                        dma_addr_t {aka unsigned int}
../drivers/bus/mhi/core/debugfs.c: In function ‘mhi_debugfs_channels_show’:
../drivers/bus/mhi/core/debugfs.c:122:7: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
  122 |       (u64)ring->rp, (u64)ring->wp,
      |       ^
../drivers/bus/mhi/core/debugfs.c:122:22: warning: cast from pointer
to integer of different size [-Wpointer-to-int-cast]
  122 |       (u64)ring->rp, (u64)ring->wp,
      |                      ^
../drivers/bus/mhi/core/debugfs.c:121:62: warning: format ‘%llx’
expects argument of type ‘long long unsigned int’, but argument 5 has
type ‘dma_addr_t’ {aka ‘unsigned int’} [-Wformat=]
  121 |   seq_printf(m, " local rp: 0x%llx local wp: 0x%llx db: 0x%llx\n",
      |                                                           ~~~^
      |                                                              |
      |
long long unsigned int
      |                                                           %x
  122 |       (u64)ring->rp, (u64)ring->wp,
  123 |       mhi_chan->db_cfg.db_val);
      |       ~~~~~~~~~~~~~~~~~~~~~~~
      |                       |
      |                       dma_addr_t {aka unsigned int}
In file included from ../include/linux/printk.h:7,
                 from ../include/linux/kernel.h:16,
                 from ../include/asm-generic/bug.h:20,
                 from ../arch/mips/include/asm/bug.h:42,
                 from ../include/linux/bug.h:5,
                 from ../include/linux/thread_info.h:12,
                 from ../include/asm-generic/current.h:5,
                 from ./arch/mips/include/generated/asm/current.h:1,
                 from ../include/linux/sched.h:12,
                 from ../fs/btrfs/extent-tree.c:6:
../fs/btrfs/extent-tree.c: In function ‘__btrfs_free_extent’:
../include/linux/kern_levels.h:5:18: warning: format ‘%lu’ expects
argument of type ‘long unsigned int’, but argument 8 has type
‘unsigned int’ [-Wformat=]
    5 | #define KERN_SOH "\001"  /* ASCII Start Of Header */
      |                  ^~~~~~
../include/linux/kern_levels.h:10:19: note: in expansion of macro ‘KERN_SOH’
   10 | #define KERN_CRIT KERN_SOH "2" /* critical conditions */
      |                   ^~~~~~~~
../fs/btrfs/ctree.h:3148:24: note: in expansion of macro ‘KERN_CRIT’
 3148 |  btrfs_printk(fs_info, KERN_CRIT fmt, ##args)
      |                        ^~~~~~~~~
../fs/btrfs/extent-tree.c:3187:4: note: in expansion of macro ‘btrfs_crit’
 3187 |    btrfs_crit(info,
      |    ^~~~~~~~~~
../drivers/input/joystick/analog.c:160:2: warning: #warning Precise
timer not defined for this architecture. [-Wcpp]
  160 | #warning Precise timer not defined for this architecture.
      |  ^~~~~~~
In file included from ../arch/mips/include/asm/sibyte/sb1250.h:28,
                 from ../drivers/watchdog/sb_wdog.c:58:
../arch/mips/include/asm/sibyte/bcm1480_scd.h:261: warning:
"M_SPC_CFG_CLEAR" redefined
  261 | #define M_SPC_CFG_CLEAR   M_BCM1480_SPC_CFG_CLEAR
      |
In file included from ../arch/mips/include/asm/sibyte/sb1250.h:27,
                 from ../drivers/watchdog/sb_wdog.c:58:
../arch/mips/include/asm/sibyte/sb1250_scd.h:392: note: this is the
location of the previous definition
  392 | #define M_SPC_CFG_CLEAR  _SB_MAKEMASK1(32)
      |
In file included from ../arch/mips/include/asm/sibyte/sb1250.h:28,
                 from ../drivers/watchdog/sb_wdog.c:58:
../arch/mips/include/asm/sibyte/bcm1480_scd.h:262: warning:
"M_SPC_CFG_ENABLE" redefined
  262 | #define M_SPC_CFG_ENABLE  M_BCM1480_SPC_CFG_ENABLE
      |
In file included from ../arch/mips/include/asm/sibyte/sb1250.h:27,
                 from ../drivers/watchdog/sb_wdog.c:58:
../arch/mips/include/asm/sibyte/sb1250_scd.h:393: note: this is the
location of the previous definition
  393 | #define M_SPC_CFG_ENABLE _SB_MAKEMASK1(33)
      |
In file included from ../drivers/net/ethernet/intel/ice/ice_flow.c:5:
../drivers/net/ethernet/intel/ice/ice_flow.c: In function ‘ice_flow_add_entry’:
../drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning: cast
from pointer to integer of different size [-Wpointer-to-int-cast]
  197 | #define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
      |                                 ^
../drivers/net/ethernet/intel/ice/ice_flow.c:946:13: note: in
expansion of macro ‘ICE_FLOW_ENTRY_HNDL’
  946 |  *entry_h = ICE_FLOW_ENTRY_HNDL(e);
      |             ^~~~~~~~~~~~~~~~~~~
../drivers/net/ethernet/intel/ice/ice_flow.c: In function ‘ice_flow_rem_entry’:
../drivers/net/ethernet/intel/ice/ice_flow.h:198:32: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]
  198 | #define ICE_FLOW_ENTRY_PTR(h) ((struct ice_flow_entry *)(h))
      |                                ^
../drivers/net/ethernet/intel/ice/ice_flow.c:974:10: note: in
expansion of macro ‘ICE_FLOW_ENTRY_PTR’
  974 |  entry = ICE_FLOW_ENTRY_PTR(entry_h);
      |          ^~~~~~~~~~~~~~~~~~
In file included from ../drivers/net/ethernet/intel/ice/ice_flex_pipe.c:6:
../drivers/net/ethernet/intel/ice/ice_flex_pipe.c: In function
‘ice_free_flow_profs’:
../drivers/net/ethernet/intel/ice/ice_flow.h:197:33: warning: cast
from pointer to integer of different size [-Wpointer-to-int-cast]
  197 | #define ICE_FLOW_ENTRY_HNDL(e) ((u64)e)
      |                                 ^
../drivers/net/ethernet/intel/ice/ice_flex_pipe.c:2921:9: note: in
expansion of macro ‘ICE_FLOW_ENTRY_HNDL’
 2921 |         ICE_FLOW_ENTRY_HNDL(e));
      |         ^~~~~~~~~~~~~~~~~~~
In file included from ../arch/mips/include/asm/page.h:258,
                 from ../arch/mips/include/asm/io.h:29,
                 from ../include/linux/io.h:13,
                 from ../arch/mips/include/asm/mips-cps.h:10,
                 from ../arch/mips/include/asm/smp-ops.h:16,
                 from ../arch/mips/include/asm/smp.h:21,
                 from ../include/linux/smp.h:85,
                 from ../include/linux/percpu.h:7,
                 from ../include/linux/prandom.h:12,
                 from ../include/linux/random.h:118,
                 from ../include/linux/net.h:18,
                 from ../drivers/infiniband/sw/siw/siw_qp_tx.c:8:
../drivers/infiniband/sw/siw/siw_qp_tx.c: In function ‘siw_tx_hdt’:
../arch/mips/include/asm/page.h:249:53: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
  249 | #define virt_to_pfn(kaddr)    PFN_DOWN(virt_to_phys((void *)(kaddr)))
      |                                                     ^
../include/asm-generic/memory_model.h:33:41: note: in definition of
macro ‘__pfn_to_page’
   33 | #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET))
      |                                         ^~~
../arch/mips/include/asm/page.h:249:31: note: in expansion of macro ‘PFN_DOWN’
  249 | #define virt_to_pfn(kaddr)    PFN_DOWN(virt_to_phys((void *)(kaddr)))
      |                               ^~~~~~~~
../arch/mips/include/asm/page.h:250:41: note: in expansion of macro
‘virt_to_pfn’
  250 | #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
      |                                         ^~~~~~~~~~~
../drivers/infiniband/sw/siw/siw_qp_tx.c:528:23: note: in expansion of
macro ‘virt_to_page’
  528 |     page_array[seg] = virt_to_page(va & PAGE_MASK);
      |                       ^~~~~~~~~~~~
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target '__all' not remade because of errors.

-- 
Linaro LKFT
https://lkft.linaro.org




[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux