[tglx-devel:x86/entry 93/119] arch/x86/entry/common.c:707:2: error: unknown type name 'boot'; did you mean 'bool'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/entry
head: da0d0553b69e8159a4f25f7981d752e20c22f2ab
commit: 096b735813d5fef5b6b0e80e7585fba57c55e05b [93/119] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY
config: i386-debian-10.3 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 096b735813d5fef5b6b0e80e7585fba57c55e05b
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/x86/entry/common.c:272:24: warning: no previous prototype for 'prepare_exit_to_usermode' [-Wmissing-prototypes]
__visible noinstr void prepare_exit_to_usermode(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c:334:24: warning: no previous prototype for 'syscall_return_slowpath' [-Wmissing-prototypes]
__visible noinstr void syscall_return_slowpath(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c:408:24: warning: no previous prototype for 'do_int80_syscall_32' [-Wmissing-prototypes]
__visible noinstr void do_int80_syscall_32(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c:451:24: warning: no previous prototype for 'do_fast_syscall_32' [-Wmissing-prototypes]
__visible noinstr long do_fast_syscall_32(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~
arch/x86/entry/common.c: In function 'get_and_clear_inhcall':
>> arch/x86/entry/common.c:707:2: error: unknown type name 'boot'; did you mean 'bool'?
boot inhcall = __this_cpu_read(xen_in_preemptible_hcall);
^~~~
bool
arch/x86/entry/common.c:707:7: warning: unused variable 'inhcall' [-Wunused-variable]
boot inhcall = __this_cpu_read(xen_in_preemptible_hcall);
^~~~~~~
>> arch/x86/entry/common.c:710:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
arch/x86/entry/common.c: At top level:
>> arch/x86/entry/common.c:731:24: warning: no previous prototype for 'xen_pv_evtchn_do_upcall' [-Wmissing-prototypes]
__visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs)
^~~~~~~~~~~~~~~~~~~~~~~
vim +707 arch/x86/entry/common.c
700
701 /*
702 * In case of scheduling the flag must be cleared and restored after
703 * returning from schedule as the task might move to a different CPU.
704 */
705 static __always_inline bool get_and_clear_inhcall(void)
706 {
> 707 boot inhcall = __this_cpu_read(xen_in_preemptible_hcall);
708
709 __this_cpu_write(xen_in_preemptible_hcall, false);
> 710 }
711
712 static __always_inline void restore_inhcall(bool inhcall)
713 {
714 __this_cpu_write(xen_in_preemptible_hcall, inhcall);
715 }
716 #else
717 static __always_inline bool get_and_clear_inhcall(void) { return false; }
718 static __always_inline void restore_inhcall(bool inhcall) { }
719 #endif
720
721 static void __xen_pv_evtchn_do_upcall(void)
722 {
723 irq_enter_rcu();
724 inc_irq_stat(irq_hv_callback_count);
725
726 xen_hvm_evtchn_do_upcall();
727
728 irq_exit_rcu();
729 }
730
> 731 __visible noinstr void xen_pv_evtchn_do_upcall(struct pt_regs *regs)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [bpf-next PATCH] bpf: Add rx_queue_mapping to bpf_sock
by kbuild test robot
Hi Amritha,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
[also build test ERROR on bpf/master net/master net-next/master v5.7-rc6 next-20200521]
[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/Amritha-Nambiar/bpf-Add-rx_queue...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-randconfig-a013-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> net/core/filter.c:7878:34: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:423:59: note: expanded from macro 'BPF_FIELD_SIZEOF'
const int __size = bytes_to_bpf_size(sizeof_field(type, field)); ^
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:386:6: note: expanded from macro 'bytes_to_bpf_size'
if (bytes == sizeof(u8)) ^
include/linux/filter.h:245:31: note: expanded from macro 'BPF_LDX_MEM'
.code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, ~~~~~~~~~^~~~~
include/uapi/linux/bpf_common.h:17:27: note: expanded from macro 'BPF_SIZE'
#define BPF_SIZE(code) ((code) & 0x18)
^~~~
>> net/core/filter.c:7878:34: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:423:59: note: expanded from macro 'BPF_FIELD_SIZEOF'
const int __size = bytes_to_bpf_size(sizeof_field(type, field)); ^
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:388:11: note: expanded from macro 'bytes_to_bpf_size'
else if (bytes == sizeof(u16)) ^
include/linux/filter.h:245:31: note: expanded from macro 'BPF_LDX_MEM'
.code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, ~~~~~~~~~^~~~~
include/uapi/linux/bpf_common.h:17:27: note: expanded from macro 'BPF_SIZE'
#define BPF_SIZE(code) ((code) & 0x18)
^~~~
>> net/core/filter.c:7878:34: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:423:59: note: expanded from macro 'BPF_FIELD_SIZEOF'
const int __size = bytes_to_bpf_size(sizeof_field(type, field)); ^
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:390:11: note: expanded from macro 'bytes_to_bpf_size'
else if (bytes == sizeof(u32)) ^
include/linux/filter.h:245:31: note: expanded from macro 'BPF_LDX_MEM'
.code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, ~~~~~~~~~^~~~~
include/uapi/linux/bpf_common.h:17:27: note: expanded from macro 'BPF_SIZE'
#define BPF_SIZE(code) ((code) & 0x18)
^~~~
>> net/core/filter.c:7878:34: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:423:59: note: expanded from macro 'BPF_FIELD_SIZEOF'
const int __size = bytes_to_bpf_size(sizeof_field(type, field)); ^
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:392:11: note: expanded from macro 'bytes_to_bpf_size'
else if (bytes == sizeof(u64)) ^
include/linux/filter.h:245:31: note: expanded from macro 'BPF_LDX_MEM'
.code = BPF_LDX | BPF_SIZE(SIZE) | BPF_MEM, ~~~~~~~~~^~~~~
include/uapi/linux/bpf_common.h:17:27: note: expanded from macro 'BPF_SIZE'
#define BPF_SIZE(code) ((code) & 0x18)
^~~~
net/core/filter.c:7880:32: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
bpf_target_off(struct sock, sk_rx_queue_mapping,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:500:35: note: expanded from macro 'bpf_target_off'
BUILD_BUG_ON(sizeof_field(TYPE, MEMBER) != (SIZE)); ^
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:338:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler.h:330:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) ^
include/linux/filter.h:248:12: note: expanded from macro 'BPF_LDX_MEM'
.off = OFF, ^~~
net/core/filter.c:7882:11: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
sk_rx_queue_mapping),
^~~~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:500:47: note: expanded from macro 'bpf_target_off'
BUILD_BUG_ON(sizeof_field(TYPE, MEMBER) != (SIZE)); ^
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:338:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler.h:330:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) ^
include/linux/filter.h:248:12: note: expanded from macro 'BPF_LDX_MEM'
.off = OFF, ^~~
net/core/filter.c:7882:11: error: no member named 'sk_rx_queue_mapping' in 'struct sock'
sk_rx_queue_mapping),
^~~~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:28:57: note: expanded from macro 'sizeof_field'
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
^
include/linux/filter.h:501:18: note: expanded from macro 'bpf_target_off'
*(PTR_SIZE) = (SIZE); ^
include/linux/filter.h:248:12: note: expanded from macro 'BPF_LDX_MEM'
.off = OFF, ^~~
>> net/core/filter.c:7880:4: error: no member named 'sk_rx_queue_mapping' in 'sock'
bpf_target_off(struct sock, sk_rx_queue_mapping,
^ ~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:502:3: note: expanded from macro 'bpf_target_off'
offsetof(TYPE, MEMBER); ^ ~~~~~~
include/linux/stddef.h:17:32: note: expanded from macro 'offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^ ~~~~~~
include/linux/compiler_types.h:129:35: note: expanded from macro '__compiler_offsetof'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^ ~
include/linux/filter.h:248:12: note: expanded from macro 'BPF_LDX_MEM'
.off = OFF, ^~~
>> net/core/filter.c:7880:4: error: initializing '__s16' (aka 'short') with an expression of incompatible type 'void'
bpf_target_off(struct sock, sk_rx_queue_mapping,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:499:2: note: expanded from macro 'bpf_target_off'
({ ^
include/linux/filter.h:248:12: note: expanded from macro 'BPF_LDX_MEM'
.off = OFF, ^~~
9 errors generated.
vim +7878 net/core/filter.c
7722
7723 u32 bpf_sock_convert_ctx_access(enum bpf_access_type type,
7724 const struct bpf_insn *si,
7725 struct bpf_insn *insn_buf,
7726 struct bpf_prog *prog, u32 *target_size)
7727 {
7728 struct bpf_insn *insn = insn_buf;
7729 int off;
7730
7731 switch (si->off) {
7732 case offsetof(struct bpf_sock, bound_dev_if):
7733 BUILD_BUG_ON(sizeof_field(struct sock, sk_bound_dev_if) != 4);
7734
7735 if (type == BPF_WRITE)
7736 *insn++ = BPF_STX_MEM(BPF_W, si->dst_reg, si->src_reg,
7737 offsetof(struct sock, sk_bound_dev_if));
7738 else
7739 *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg,
7740 offsetof(struct sock, sk_bound_dev_if));
7741 break;
7742
7743 case offsetof(struct bpf_sock, mark):
7744 BUILD_BUG_ON(sizeof_field(struct sock, sk_mark) != 4);
7745
7746 if (type == BPF_WRITE)
7747 *insn++ = BPF_STX_MEM(BPF_W, si->dst_reg, si->src_reg,
7748 offsetof(struct sock, sk_mark));
7749 else
7750 *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg,
7751 offsetof(struct sock, sk_mark));
7752 break;
7753
7754 case offsetof(struct bpf_sock, priority):
7755 BUILD_BUG_ON(sizeof_field(struct sock, sk_priority) != 4);
7756
7757 if (type == BPF_WRITE)
7758 *insn++ = BPF_STX_MEM(BPF_W, si->dst_reg, si->src_reg,
7759 offsetof(struct sock, sk_priority));
7760 else
7761 *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg,
7762 offsetof(struct sock, sk_priority));
7763 break;
7764
7765 case offsetof(struct bpf_sock, family):
7766 *insn++ = BPF_LDX_MEM(
7767 BPF_FIELD_SIZEOF(struct sock_common, skc_family),
7768 si->dst_reg, si->src_reg,
7769 bpf_target_off(struct sock_common,
7770 skc_family,
7771 sizeof_field(struct sock_common,
7772 skc_family),
7773 target_size));
7774 break;
7775
7776 case offsetof(struct bpf_sock, type):
7777 *insn++ = BPF_LDX_MEM(
7778 BPF_FIELD_SIZEOF(struct sock, sk_type),
7779 si->dst_reg, si->src_reg,
7780 bpf_target_off(struct sock, sk_type,
7781 sizeof_field(struct sock, sk_type),
7782 target_size));
7783 break;
7784
7785 case offsetof(struct bpf_sock, protocol):
7786 *insn++ = BPF_LDX_MEM(
7787 BPF_FIELD_SIZEOF(struct sock, sk_protocol),
7788 si->dst_reg, si->src_reg,
7789 bpf_target_off(struct sock, sk_protocol,
7790 sizeof_field(struct sock, sk_protocol),
7791 target_size));
7792 break;
7793
7794 case offsetof(struct bpf_sock, src_ip4):
7795 *insn++ = BPF_LDX_MEM(
7796 BPF_SIZE(si->code), si->dst_reg, si->src_reg,
7797 bpf_target_off(struct sock_common, skc_rcv_saddr,
7798 sizeof_field(struct sock_common,
7799 skc_rcv_saddr),
7800 target_size));
7801 break;
7802
7803 case offsetof(struct bpf_sock, dst_ip4):
7804 *insn++ = BPF_LDX_MEM(
7805 BPF_SIZE(si->code), si->dst_reg, si->src_reg,
7806 bpf_target_off(struct sock_common, skc_daddr,
7807 sizeof_field(struct sock_common,
7808 skc_daddr),
7809 target_size));
7810 break;
7811
7812 case bpf_ctx_range_till(struct bpf_sock, src_ip6[0], src_ip6[3]):
7813 #if IS_ENABLED(CONFIG_IPV6)
7814 off = si->off;
7815 off -= offsetof(struct bpf_sock, src_ip6[0]);
7816 *insn++ = BPF_LDX_MEM(
7817 BPF_SIZE(si->code), si->dst_reg, si->src_reg,
7818 bpf_target_off(
7819 struct sock_common,
7820 skc_v6_rcv_saddr.s6_addr32[0],
7821 sizeof_field(struct sock_common,
7822 skc_v6_rcv_saddr.s6_addr32[0]),
7823 target_size) + off);
7824 #else
7825 (void)off;
7826 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0);
7827 #endif
7828 break;
7829
7830 case bpf_ctx_range_till(struct bpf_sock, dst_ip6[0], dst_ip6[3]):
7831 #if IS_ENABLED(CONFIG_IPV6)
7832 off = si->off;
7833 off -= offsetof(struct bpf_sock, dst_ip6[0]);
7834 *insn++ = BPF_LDX_MEM(
7835 BPF_SIZE(si->code), si->dst_reg, si->src_reg,
7836 bpf_target_off(struct sock_common,
7837 skc_v6_daddr.s6_addr32[0],
7838 sizeof_field(struct sock_common,
7839 skc_v6_daddr.s6_addr32[0]),
7840 target_size) + off);
7841 #else
7842 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0);
7843 *target_size = 4;
7844 #endif
7845 break;
7846
7847 case offsetof(struct bpf_sock, src_port):
7848 *insn++ = BPF_LDX_MEM(
7849 BPF_FIELD_SIZEOF(struct sock_common, skc_num),
7850 si->dst_reg, si->src_reg,
7851 bpf_target_off(struct sock_common, skc_num,
7852 sizeof_field(struct sock_common,
7853 skc_num),
7854 target_size));
7855 break;
7856
7857 case offsetof(struct bpf_sock, dst_port):
7858 *insn++ = BPF_LDX_MEM(
7859 BPF_FIELD_SIZEOF(struct sock_common, skc_dport),
7860 si->dst_reg, si->src_reg,
7861 bpf_target_off(struct sock_common, skc_dport,
7862 sizeof_field(struct sock_common,
7863 skc_dport),
7864 target_size));
7865 break;
7866
7867 case offsetof(struct bpf_sock, state):
7868 *insn++ = BPF_LDX_MEM(
7869 BPF_FIELD_SIZEOF(struct sock_common, skc_state),
7870 si->dst_reg, si->src_reg,
7871 bpf_target_off(struct sock_common, skc_state,
7872 sizeof_field(struct sock_common,
7873 skc_state),
7874 target_size));
7875 break;
7876 case offsetof(struct bpf_sock, rx_queue_mapping):
7877 *insn++ = BPF_LDX_MEM(
> 7878 BPF_FIELD_SIZEOF(struct sock, sk_rx_queue_mapping),
7879 si->dst_reg, si->src_reg,
> 7880 bpf_target_off(struct sock, sk_rx_queue_mapping,
7881 sizeof_field(struct sock,
7882 sk_rx_queue_mapping),
7883 target_size));
7884 *insn++ = BPF_JMP_IMM(BPF_JNE, si->dst_reg, NO_QUEUE_MAPPING,
7885 1);
7886 *insn++ = BPF_MOV64_IMM(si->dst_reg, -1);
7887 break;
7888 }
7889
7890 return insn - insn_buf;
7891 }
7892
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH RFC net-next 04/13] ethernet: eth: add default vid len for all ethernet kind devices
by kbuild test robot
Hi Vladimir,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
[also build test ERROR on linus/master v5.7-rc6 next-20200521]
[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/Vladimir-Oltean/RX-filtering-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git de1b99ef2aa1e982c86b15853e013c6e3dbc1e7a
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> net/ethernet/eth.c:375:2: error: implicit declaration of function 'vlan_dev_ivdf_set' [-Werror,-Wimplicit-function-declaration]
vlan_dev_ivdf_set(dev, false);
^
net/ethernet/eth.c:406:2: error: implicit declaration of function 'vlan_dev_ivdf_set' [-Werror,-Wimplicit-function-declaration]
vlan_dev_ivdf_set(dev, false);
^
2 errors generated.
vim +/vlan_dev_ivdf_set +375 net/ethernet/eth.c
354
355 /**
356 * ether_setup - setup Ethernet network device
357 * @dev: network device
358 *
359 * Fill in the fields of the device structure with Ethernet-generic values.
360 */
361 void ether_setup(struct net_device *dev)
362 {
363 dev->header_ops = ð_header_ops;
364 dev->type = ARPHRD_ETHER;
365 dev->hard_header_len = ETH_HLEN;
366 dev->min_header_len = ETH_HLEN;
367 dev->mtu = ETH_DATA_LEN;
368 dev->min_mtu = ETH_MIN_MTU;
369 dev->max_mtu = ETH_DATA_LEN;
370 dev->addr_len = ETH_ALEN;
371 dev->tx_queue_len = DEFAULT_TX_QUEUE_LEN;
372 dev->flags = IFF_BROADCAST|IFF_MULTICAST;
373 dev->priv_flags |= IFF_TX_SKB_SHARING;
374
> 375 vlan_dev_ivdf_set(dev, false);
376 eth_broadcast_addr(dev->broadcast);
377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[jlayton:ceph-fscache-iter 14/14] fs/ceph/addr.c:186:6: warning: no previous prototype for 'ceph_readpage_cb'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscache-iter
head: bd114d497163ff233e8a0402f76b39ada94b2164
commit: bd114d497163ff233e8a0402f76b39ada94b2164 [14/14] ceph: convert to using fscache_read_helper
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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
git checkout bd114d497163ff233e8a0402f76b39ada94b2164
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> fs/ceph/addr.c:186:6: warning: no previous prototype for 'ceph_readpage_cb' [-Wmissing-prototypes]
186 | void ceph_readpage_cb(struct ceph_osd_request *req)
| ^~~~~~~~~~~~~~~~
vim +/ceph_readpage_cb +186 fs/ceph/addr.c
185
> 186 void ceph_readpage_cb(struct ceph_osd_request *req)
187 {
188 struct ceph_fs_client *fsc = req->r_priv;
189 struct ceph_fsc_request *cfreq = container_of(req,
190 struct ceph_fsc_request,
191 osd_req);
192 struct fscache_io_request *fsreq = &cfreq->fsc_req;
193 int err = req->r_result;
194
195 ceph_update_read_latency(&fsc->mdsc->metric, req->r_start_latency,
196 req->r_end_latency, err);
197
198 ceph_osdc_put_request(req);
199 dout("readpage result %d\n", err);
200
201 /* no object should mean success but no data */
202 if (err == -ENOENT)
203 err = 0;
204 else if (err == -EBLACKLISTED)
205 fsc->blacklisted = true;
206
207 fsreq->error = err;
208 if (fsreq->io_done)
209 fsreq->io_done(fsreq);
210 }
211
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[android-common:android-4.19 2/2] kernel/power/wakeup_reason.c:213:2: warning: function '__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf' format attribute
by kbuild test robot
tree: https://android.googlesource.com/kernel/common android-4.19
head: e7b509cf04859273495a2e87c136f6200556d593
commit: e7b509cf04859273495a2e87c136f6200556d593 [2/2] ANDROID: power: wakeup_reason: wake reason enhancements
config: arm-randconfig-r025-20200521 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
git checkout e7b509cf04859273495a2e87c136f6200556d593
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
kernel/power/wakeup_reason.c:199:6: warning: no previous prototype for '__log_abort_or_abnormal_wake' [-Wmissing-prototypes]
199 | void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/power/wakeup_reason.c: In function '__log_abort_or_abnormal_wake':
>> kernel/power/wakeup_reason.c:213:2: warning: function '__log_abort_or_abnormal_wake' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
213 | vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
| ^~~~~~~~~
kernel/power/wakeup_reason.c: At top level:
kernel/power/wakeup_reason.c:378:12: warning: no previous prototype for 'wakeup_reason_init' [-Wmissing-prototypes]
378 | int __init wakeup_reason_init(void)
| ^~~~~~~~~~~~~~~~~~
vim +213 kernel/power/wakeup_reason.c
198
> 199 void __log_abort_or_abnormal_wake(bool abort, const char *fmt, va_list args)
200 {
201 unsigned long flags;
202
203 spin_lock_irqsave(&wakeup_reason_lock, flags);
204
205 /* Suspend abort or abnormal wake reason has already been logged. */
206 if (suspend_abort || abnormal_wake) {
207 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
208 return;
209 }
210
211 suspend_abort = abort;
212 abnormal_wake = !abort;
> 213 vsnprintf(non_irq_wake_reason, MAX_SUSPEND_ABORT_LEN, fmt, args);
214
215 spin_unlock_irqrestore(&wakeup_reason_lock, flags);
216 }
217
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[kbuild] Re: [RFC PATCH 2/4] gpu: dxgkrnl: hook up dxgkrnl
by Dan Carpenter
Hi Sasha,
url: https://github.com/0day-ci/linux/commits/Sasha-Levin/DirectX-on-Linux/202...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 642b151f45dd54809ea00ecd3976a56c1ec9b53d
config: i386-allyesconfig (attached as .config)
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
drivers/gpu/dxgkrnl/dxgadapter.c:923 dxgallocation_destroy() error: we previously assumed 'alloc->owner.device' could be null (see line 919)
drivers/gpu/dxgkrnl/dxgadapter.c:1246 dxgsyncobject_create() error: we previously assumed 'syncobj' could be null (see line 1205)
drivers/gpu/dxgkrnl/dxgadapter.c:1248 dxgsyncobject_create() warn: variable dereferenced before check 'syncobj' (see line 1246)
drivers/gpu/dxgkrnl/dxgvmbus.c:205 dxgvmbuschannel_receive() warn: inconsistent indenting
drivers/gpu/dxgkrnl/dxgvmbus.c:240 dxgvmb_send_sync_msg() warn: inconsistent indenting
drivers/gpu/dxgkrnl/dxgvmbus.c:2310 dxgvmb_send_create_hwqueue() error: we previously assumed 'command' could be null (see line 2234)
Old smatch warnings:
drivers/gpu/dxgkrnl/dxgvmbus.c:246 dxgvmb_send_sync_msg() warn: inconsistent indenting
# https://github.com/0day-ci/linux/commit/09405fa255395b8e7fb7c8a886b18028b...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 09405fa255395b8e7fb7c8a886b18028b907487c
vim +923 drivers/gpu/dxgkrnl/dxgadapter.c
9cc562c3695b5b Sasha Levin 2020-05-19 911 void dxgallocation_destroy(struct dxgallocation *alloc)
9cc562c3695b5b Sasha Levin 2020-05-19 912 {
9cc562c3695b5b Sasha Levin 2020-05-19 913 struct dxgprocess *process = alloc->process;
9cc562c3695b5b Sasha Levin 2020-05-19 914 struct d3dkmt_destroyallocation2 args = { };
9cc562c3695b5b Sasha Levin 2020-05-19 915
9cc562c3695b5b Sasha Levin 2020-05-19 916 dxgallocation_stop(alloc);
9cc562c3695b5b Sasha Levin 2020-05-19 917 if (alloc->resource_owner)
9cc562c3695b5b Sasha Levin 2020-05-19 918 dxgresource_remove_alloc(alloc->owner.resource, alloc);
9cc562c3695b5b Sasha Levin 2020-05-19 @919 else if (alloc->owner.device)
^^^^^^^^^^^^^^^^^^^
Checked.
9cc562c3695b5b Sasha Levin 2020-05-19 920 dxgdevice_remove_alloc(alloc->owner.device, alloc);
^^^^^^^^^^^^^^^^^^^
Freed here?
9cc562c3695b5b Sasha Levin 2020-05-19 921 dxgallocation_free_handle(alloc);
9cc562c3695b5b Sasha Levin 2020-05-19 922 if (alloc->alloc_handle && !alloc->resource_owner) {
9cc562c3695b5b Sasha Levin 2020-05-19 @923 args.device = alloc->owner.device->handle;
^^^^^^^^^^^^^^^^^^^
Unchecked dereference.
9cc562c3695b5b Sasha Levin 2020-05-19 924 args.alloc_count = 1;
9cc562c3695b5b Sasha Levin 2020-05-19 925 args.flags.assume_not_in_use = 1;
9cc562c3695b5b Sasha Levin 2020-05-19 926 dxgvmb_send_destroy_allocation(process,
9cc562c3695b5b Sasha Levin 2020-05-19 927 alloc->owner.device,
9cc562c3695b5b Sasha Levin 2020-05-19 928 &alloc->owner.device->adapter->
9cc562c3695b5b Sasha Levin 2020-05-19 929 channel, &args,
9cc562c3695b5b Sasha Levin 2020-05-19 930 &alloc->alloc_handle);
9cc562c3695b5b Sasha Levin 2020-05-19 931 }
9cc562c3695b5b Sasha Levin 2020-05-19 932 if (alloc->gpadl) {
9cc562c3695b5b Sasha Levin 2020-05-19 933 TRACE_DEBUG(1, "Teardown gpadl %d", alloc->gpadl);
9cc562c3695b5b Sasha Levin 2020-05-19 934 vmbus_teardown_gpadl(dxgglobal_get_vmbus(), alloc->gpadl);
9cc562c3695b5b Sasha Levin 2020-05-19 935 TRACE_DEBUG(1, "Teardown gpadl end");
9cc562c3695b5b Sasha Levin 2020-05-19 936 alloc->gpadl = 0;
9cc562c3695b5b Sasha Levin 2020-05-19 937 }
9cc562c3695b5b Sasha Levin 2020-05-19 938 if (alloc->priv_drv_data)
9cc562c3695b5b Sasha Levin 2020-05-19 939 dxgmem_free(alloc->process, DXGMEM_ALLOCPRIVATE,
9cc562c3695b5b Sasha Levin 2020-05-19 940 alloc->priv_drv_data);
9cc562c3695b5b Sasha Levin 2020-05-19 941 if (alloc->cpu_address_mapped)
9cc562c3695b5b Sasha Levin 2020-05-19 942 pr_err("Alloc IO space is mapped: %p", alloc);
9cc562c3695b5b Sasha Levin 2020-05-19 943 dxgmem_free(alloc->process, DXGMEM_ALLOCATION, alloc);
9cc562c3695b5b Sasha Levin 2020-05-19 944 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
2 years, 4 months
[lkp] [+2050 bytes kernel size regression] [i386-tinyconfig] [18bb639402] vfs: introduce new file extent swap ioctl
by kbuild test robot
FYI, we noticed a +2050 bytes kernel size regression due to commit:
commit: 18bb63940208c2ea3fe3646c7b9cf928ea9825ac (vfs: introduce new file extent swap ioctl)
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git repair-metadata-atomically
Details as below (size data is obtained by `nm --size-sort vmlinux`):
43be1df6: xfs: fix xfs_reflink_remap_prep calling conventions
18bb6394: vfs: introduce new file extent swap ioctl
+------------------------------------------+----------+----------+-------+
| symbol | 43be1df6 | 18bb6394 | delta |
+------------------------------------------+----------+----------+-------+
| bzImage | 439616 | 440736 | 1120 |
| nm.T.generic_swap_file_range_checks | 0 | 739 | 739 |
| nm.T.generic_swap_file_range_prep | 0 | 572 | 572 |
| nm.T.do_swap_file_range | 0 | 190 | 190 |
| nm.T.generic_swap_file_range_check_fresh | 0 | 156 | 156 |
| nm.t.ioctl_file_swap_range | 0 | 139 | 139 |
| nm.t.swap_range_verify_area | 0 | 93 | 93 |
| nm.T.vfs_swap_file_range | 0 | 44 | 44 |
| nm.T.ksys_ioctl | 1427 | 1457 | 30 |
| nm.r.bad_file_ops | 128 | 132 | 4 |
| nm.R.def_blk_fops | 128 | 132 | 4 |
| nm.R.def_chr_fops | 128 | 132 | 4 |
| nm.r.empty_dir_operations | 128 | 132 | 4 |
| nm.r.empty_fops | 128 | 132 | 4 |
| nm.R.fscontext_fops | 128 | 132 | 4 |
| nm.r.full_fops | 128 | 132 | 4 |
| nm.R.generic_ro_fops | 128 | 132 | 4 |
| nm.r.memory_fops | 128 | 132 | 4 |
| nm.r.misc_fops | 128 | 132 | 4 |
| nm.r.no_open_fops | 128 | 132 | 4 |
| nm.r.ns_file_operations | 128 | 132 | 4 |
| nm.r.null_fops | 128 | 132 | 4 |
| nm.r.perf_fops | 128 | 132 | 4 |
| nm.R.pidfd_fops | 128 | 132 | 4 |
| nm.R.pipefifo_fops | 128 | 132 | 4 |
| nm.R.ramfs_file_operations | 128 | 132 | 4 |
| nm.R.random_fops | 128 | 132 | 4 |
| nm.R.simple_dir_operations | 128 | 132 | 4 |
| nm.R.urandom_fops | 128 | 132 | 4 |
| nm.r.zero_fops | 128 | 132 | 4 |
| nm.T.vfs_fadvise | 48 | 51 | 3 |
+------------------------------------------+----------+----------+-------+
Thanks,
Kbuild test robot
2 years, 4 months
Re: [PATCH] base:power:sysfs: Remove redundant attribute runtime_status in runtime_attrs
by kbuild test robot
Hi chenxiang,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on pm/linux-next]
[also build test WARNING on pavel-linux-leds/for-next v5.7-rc6 next-20200519]
[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/chenxiang/base-power-sysfs-Remov...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: arm-eseries_pxa_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from drivers/base/power/sysfs.c:3:
include/linux/device.h:132:26: warning: 'dev_attr_runtime_status' defined but not used [-Wunused-variable]
132 | struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
| ^~~~~~~~~
>> drivers/base/power/sysfs.c:177:8: note: in expansion of macro 'DEVICE_ATTR_RO'
177 | static DEVICE_ATTR_RO(runtime_status);
| ^~~~~~~~~~~~~~
vim +/DEVICE_ATTR_RO +177 drivers/base/power/sysfs.c
0fcb4eef829449 Alan Stern 2010-07-08 176
47acbd77e6e481 Andy Shevchenko 2017-11-10 @177 static DEVICE_ATTR_RO(runtime_status);
15bcb91d7e607d Alan Stern 2010-09-25 178
:::::: The code at line 177 was first introduced by commit
:::::: 47acbd77e6e481abf2f41d3a99cb3762f296b2e6 PM / sysfs: Convert to use DEVICE_ATTR_RO / DEVICE_ATTR_RW
:::::: TO: Andy Shevchenko <andriy.shevchenko(a)linux.intel.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH RFC net-next 04/13] ethernet: eth: add default vid len for all ethernet kind devices
by kbuild test robot
Hi Vladimir,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
[also build test ERROR on linus/master v5.7-rc6 next-20200521]
[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/Vladimir-Oltean/RX-filtering-for...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git de1b99ef2aa1e982c86b15853e013c6e3dbc1e7a
config: arc-defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
net/ethernet/eth.c: In function 'ether_setup':
>> net/ethernet/eth.c:375:2: error: implicit declaration of function 'vlan_dev_ivdf_set' [-Werror=implicit-function-declaration]
375 | vlan_dev_ivdf_set(dev, false);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/vlan_dev_ivdf_set +375 net/ethernet/eth.c
354
355 /**
356 * ether_setup - setup Ethernet network device
357 * @dev: network device
358 *
359 * Fill in the fields of the device structure with Ethernet-generic values.
360 */
361 void ether_setup(struct net_device *dev)
362 {
363 dev->header_ops = ð_header_ops;
364 dev->type = ARPHRD_ETHER;
365 dev->hard_header_len = ETH_HLEN;
366 dev->min_header_len = ETH_HLEN;
367 dev->mtu = ETH_DATA_LEN;
368 dev->min_mtu = ETH_MIN_MTU;
369 dev->max_mtu = ETH_DATA_LEN;
370 dev->addr_len = ETH_ALEN;
371 dev->tx_queue_len = DEFAULT_TX_QUEUE_LEN;
372 dev->flags = IFF_BROADCAST|IFF_MULTICAST;
373 dev->priv_flags |= IFF_TX_SKB_SHARING;
374
> 375 vlan_dev_ivdf_set(dev, false);
376 eth_broadcast_addr(dev->broadcast);
377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months