tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y head: 95a3867e897abd7811196123f81a119a75aba863 commit: 95f179ffff039f428371133f76dda1384b527fcb [9520/9999] mips/panic: replace smp_send_stop() with kdump friendly version in panic path config: mips-randconfig-p002-20210209 (attached as .config) compiler: mips64-linux-gcc (GCC) 7.5.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=95f179ffff039f428371133f76dda1384b527fcb git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-4.4.y git checkout 95f179ffff039f428371133f76dda1384b527fcb # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): include/asm-generic/bug.h:151:25: note: in definition of macro 'WARN_ON' int __ret_warn_on = !!(condition); \ ^~~~~~~~~ include/linux/cpumask.h:117:2: note: in expansion of macro 'WARN_ON_ONCE' WARN_ON_ONCE(cpu >= nr_cpumask_bits); ^~~~~~~~~~~~ In file included from arch/mips/kernel/linux32.c:17:0: include/linux/skbuff.h: In function 'skb_add_data': include/linux/skbuff.h:2675:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] &csum, from) == copy) { ^~ include/linux/skbuff.h:2679:60: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] } else if (copy_from_iter(skb_put(skb, copy), copy, from) == copy) ^~ include/linux/skbuff.h: In function 'skb_can_coalesce': include/linux/skbuff.h:2693:14: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] off == frag->page_offset + skb_frag_size(frag); ^~ include/linux/skbuff.h: In function 'memcpy_from_msg': include/linux/skbuff.h:2921:51: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] return copy_from_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT; ^~ include/linux/skbuff.h: In function 'memcpy_to_msg': include/linux/skbuff.h:2926:49: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT; ^~ In file included from include/net/inet_frag.h:4:0, from include/net/netns/ipv4.h:9, from include/net/net_namespace.h:17, from include/linux/netdevice.h:43, from include/net/sch_generic.h:4, from include/linux/filter.h:16, from arch/mips/kernel/linux32.c:18: include/linux/rhashtable.h: In function 'rht_grow_above_75': include/linux/rhashtable.h:264:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ include/linux/rhashtable.h: In function 'rht_shrink_below_30': include/linux/rhashtable.h:277:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ include/linux/rhashtable.h: In function 'rht_grow_above_100': include/linux/rhashtable.h:289:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ include/linux/rhashtable.h: In function 'rht_grow_above_max': include/linux/rhashtable.h:302:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] atomic_read(&ht->nelems) >= ht->p.insecure_max_entries; ^~ In file included from include/net/sch_generic.h:4:0, from include/linux/filter.h:16, from arch/mips/kernel/linux32.c:18: include/linux/netdevice.h: In function '__skb_gro_checksum_validate_needed': include/linux/netdevice.h:2389:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] skb_checksum_start_offset(skb) < ^ In file included from arch/mips/include/asm/bug.h:41:0, from include/linux/bug.h:4, from include/linux/mmdebug.h:4, from include/linux/mm.h:8, from arch/mips/kernel/linux32.c:8: include/linux/netdevice.h: In function 'get_netdev_rx_queue_index': include/linux/netdevice.h:3027:15: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] BUG_ON(index >= dev->num_rx_queues); ^ include/asm-generic/bug.h:146:36: note: in definition of macro 'BUG_ON' #define BUG_ON(condition) do { if (condition) BUG(); } while (0) ^~~~~~~~~ In file included from include/net/sch_generic.h:4:0, from include/linux/filter.h:16, from arch/mips/kernel/linux32.c:18: include/linux/netdevice.h: In function 'netif_msg_init': include/linux/netdevice.h:3301:37: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (debug_value < 0 || debug_value >= (sizeof(u32) * 8)) ^~ In file included from include/net/rtnetlink.h:5:0, from include/net/sch_generic.h:12, from include/linux/filter.h:16, from arch/mips/kernel/linux32.c:18: include/net/netlink.h: In function 'nlmsg_ok': include/net/netlink.h:337:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] nlh->nlmsg_len <= remaining); ^~ include/net/netlink.h: In function 'nlmsg_parse': include/net/netlink.h:372:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) ^ include/net/netlink.h: In function 'nlmsg_validate': include/net/netlink.h:405:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) ^ In file included from include/net/sch_generic.h:12:0, from include/linux/filter.h:16, from arch/mips/kernel/linux32.c:18: include/net/rtnetlink.h: In function 'rtnl_msg_family': include/net/rtnetlink.h:20:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) ^~ In file included from arch/mips/kernel/linux32.c:7:0: include/net/sch_generic.h: In function 'qdisc_cb_private_validate': >> include/net/sch_generic.h:267:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] BUILD_BUG_ON(sizeof(qcb->data) < sz); ^ include/linux/compiler.h:485:19: note: in definition of macro '__compiletime_assert' bool __cond = !(condition); \ ^~~~~~~~~ include/linux/compiler.h:505:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^~~~~~~~~~~~~~~~~~~ include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^~~~~~~~~~~~~~~~ include/net/sch_generic.h:267:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(sizeof(qcb->data) < sz); ^~~~~~~~~~~~ In file included from arch/mips/kernel/linux32.c:18:0: include/linux/filter.h: In function 'bpf_needs_clear_a': >> include/linux/filter.h:517:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (first->k == SKF_AD_OFF + SKF_AD_ALU_XOR_X) ^~ In file included from arch/mips/kernel/linux32.c:37:0: include/net/sock.h: In function 'skb_do_copy_data_nocache': include/net/sock.h:1827:54: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (csum_and_copy_from_iter(to, copy, &csum, from) != copy) ^~ include/net/sock.h:1831:46: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (copy_from_iter_nocache(to, copy, from) != copy) ^~ include/net/sock.h:1833:44: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] } else if (copy_from_iter(to, copy, from) != copy) ^~ arch/mips/kernel/linux32.c: At top level: arch/mips/kernel/linux32.c:136:20: error: no previous prototype for 'sys32_readahead' [-Werror=missing-prototypes] asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3, ^~~~~~~~~~~~~~~ arch/mips/kernel/linux32.c:142:17: error: no previous prototype for 'sys32_sync_file_range' [-Werror=missing-prototypes] asmlinkage long sys32_sync_file_range(int fd, int __pad, ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/linux32.c:152:17: error: no previous prototype for 'sys32_fadvise64_64' [-Werror=missing-prototypes] asmlinkage long sys32_fadvise64_64(int fd, int __pad, ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/linux32.c:162:17: error: no previous prototype for 'sys32_fallocate' [-Werror=missing-prototypes] asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors -- In file included from arch/mips/include/asm/bug.h:41:0, from include/linux/bug.h:4, from include/linux/cpumask.h:12, from include/linux/smp.h:12, from arch/mips/kernel/crash.c:2: include/linux/cpumask.h: In function 'cpumask_check': include/linux/cpumask.h:117:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] WARN_ON_ONCE(cpu >= nr_cpumask_bits); ^ include/asm-generic/bug.h:151:25: note: in definition of macro 'WARN_ON' int __ret_warn_on = !!(condition); \ ^~~~~~~~~ include/linux/cpumask.h:117:2: note: in expansion of macro 'WARN_ON_ONCE' WARN_ON_ONCE(cpu >= nr_cpumask_bits); ^~~~~~~~~~~~ arch/mips/kernel/crash.c: At top level: >> arch/mips/kernel/crash.c:80:6: error: no previous prototype for 'crash_smp_send_stop' [-Werror=missing-prototypes] void crash_smp_send_stop(void) ^~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/crash_smp_send_stop +80 arch/mips/kernel/crash.c 78 79 /* Override the weak function in kernel/panic.c */ > 80 void crash_smp_send_stop(void) 81 { 82 if (_crash_smp_send_stop) 83 _crash_smp_send_stop(); 84 85 crash_kexec_prepare_cpus(); 86 } 87 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip