[robh:pci-dw-cleanups 23/40] drivers/pci/controller/dwc/pcie-designware.c:549:6: warning: variable 'ret' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git pci-dw-cleanups
head: 62645842bd85958552314ba85bd14565c16bb392
commit: 9d1e1e624ea779b4abd5f346effd9a46c3caa49d [23/40] PCI: dwc: Add a 'num_lanes' field to struct dw_pcie
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 9d1e1e624ea779b4abd5f346effd9a46c3caa49d
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/pci/controller/dwc/pcie-designware.c: In function 'dw_pcie_setup':
>> drivers/pci/controller/dwc/pcie-designware.c:549:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
549 | int ret;
| ^~~
# https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?id...
git remote add robh https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
git fetch --no-tags robh pci-dw-cleanups
git checkout 9d1e1e624ea779b4abd5f346effd9a46c3caa49d
vim +/ret +549 drivers/pci/controller/dwc/pcie-designware.c
a9f4c2d2f99ec85 drivers/pci/controller/dwc/pcie-designware.c Kishon Vijay Abraham I 2019-03-25 546
feb85d9b1c47ea8 drivers/pci/dwc/pcie-designware.c Kishon Vijay Abraham I 2017-02-15 547 void dw_pcie_setup(struct dw_pcie *pci)
340cba6092c2c16 drivers/pci/host/pcie-designware.c Jingoo Han 2013-06-21 548 {
5f334db665173fa drivers/pci/dwc/pcie-designware.c Kishon Vijay Abraham I 2017-02-15 @549 int ret;
:::::: The code at line 549 was first introduced by commit
:::::: 5f334db665173facf2213854408bb5fa2445d0b3 PCI: dwc: designware: Parse "num-lanes" property in dw_pcie_setup_rc()
:::::: TO: Kishon Vijay Abraham I <kishon(a)ti.com>
:::::: CC: Bjorn Helgaas <bhelgaas(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[tglx-devel:devicemsi 18/38] arch/x86/kernel/x86_init.c:80:28: error: 'native_create_pci_msi_domain' undeclared here (not in a function)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: c788f3e806861afdef54db59dc5be9afb5bc906f [18/38] x86/irq: Initialize PCI/MSI domain at PCI init time
config: i386-randconfig-s002-20200820 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/x86_init.c:80:28: error: 'native_create_pci_msi_domain' undeclared here (not in a function)
80 | .create_pci_msi_domain = native_create_pci_msi_domain,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
vim +/native_create_pci_msi_domain +80 arch/x86/kernel/x86_init.c
62
63 .resources = {
64 .probe_roms = probe_roms,
65 .reserve_resources = reserve_standard_io_resources,
66 .memory_setup = e820__memory_setup_default,
67 },
68
69 .mpparse = {
70 .setup_ioapic_ids = x86_init_noop,
71 .find_smp_config = default_find_smp_config,
72 .get_smp_config = default_get_smp_config,
73 },
74
75 .irqs = {
76 .pre_vector_init = init_ISA_irqs,
77 .intr_init = native_init_IRQ,
78 .intr_mode_select = apic_intr_mode_select,
79 .intr_mode_init = apic_intr_mode_init,
> 80 .create_pci_msi_domain = native_create_pci_msi_domain,
81 },
82
83 .oem = {
84 .arch_setup = x86_init_noop,
85 .banner = default_banner,
86 },
87
88 .paging = {
89 .pagetable_init = native_pagetable_init,
90 },
91
92 .timers = {
93 .setup_percpu_clockev = setup_boot_APIC_clock,
94 .timer_init = hpet_time_init,
95 .wallclock_init = x86_wallclock_init,
96 },
97
98 .iommu = {
99 .iommu_init = iommu_init_noop,
100 },
101
102 .pci = {
103 .init = x86_default_pci_init,
104 .init_irq = x86_default_pci_init_irq,
105 .fixup_irqs = x86_default_pci_fixup_irqs,
106 },
107
108 .hyper = {
109 .init_platform = x86_init_noop,
110 .guest_late_init = x86_init_noop,
111 .x2apic_available = bool_x86_init_noop,
112 .init_mem_mapping = x86_init_noop,
113 .init_after_bootmem = x86_init_noop,
114 },
115
116 .acpi = {
117 .set_root_pointer = x86_default_set_root_pointer,
118 .get_root_pointer = x86_default_get_root_pointer,
119 .reduced_hw_early_init = acpi_generic_reduced_hw_init,
120 },
121 };
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH] memory: brcmstb_dpfe: fix array index out of bounds
by kernel test robot
Hi Markus,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.9-rc1 next-20200820]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Markus-Mayer/memory-brcmstb_dpfe...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git da2968ff879b9e74688cdc658f646971991d2c56
config: arm-defconfig (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
# 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: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/memory/brcmstb_dpfe.c:305:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
305 | static const char * const get_error_text(unsigned int i)
| ^~~~~
# https://github.com/0day-ci/linux/commit/a2de88715f98369b7e4478457a6455c3e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Markus-Mayer/memory-brcmstb_dpfe-fix-array-index-out-of-bounds/20200821-090533
git checkout a2de88715f98369b7e4478457a6455c3e2c72725
vim +305 drivers/memory/brcmstb_dpfe.c
304
> 305 static const char * const get_error_text(unsigned int i)
306 {
307 static const char * const error_text[] = {
308 "Success", "Header code incorrect",
309 "Unknown command or argument", "Incorrect checksum",
310 "Malformed command", "Timed out", "Unknown error",
311 };
312
313 if (unlikely(i >= ARRAY_SIZE(error_text)))
314 i = ARRAY_SIZE(error_text) - 1;
315
316 return error_text[i];
317 }
318
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[tglx-devel:devicemsi 18/38] arch/x86/kernel/x86_init.c:80:28: error: use of undeclared identifier 'native_create_pci_msi_domain'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: c788f3e806861afdef54db59dc5be9afb5bc906f [18/38] x86/irq: Initialize PCI/MSI domain at PCI init time
config: x86_64-randconfig-a005-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
# 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: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/x86_init.c:80:28: error: use of undeclared identifier 'native_create_pci_msi_domain'
.create_pci_msi_domain = native_create_pci_msi_domain,
^
1 error generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
vim +/native_create_pci_msi_domain +80 arch/x86/kernel/x86_init.c
62
63 .resources = {
64 .probe_roms = probe_roms,
65 .reserve_resources = reserve_standard_io_resources,
66 .memory_setup = e820__memory_setup_default,
67 },
68
69 .mpparse = {
70 .setup_ioapic_ids = x86_init_noop,
71 .find_smp_config = default_find_smp_config,
72 .get_smp_config = default_get_smp_config,
73 },
74
75 .irqs = {
76 .pre_vector_init = init_ISA_irqs,
77 .intr_init = native_init_IRQ,
78 .intr_mode_select = apic_intr_mode_select,
79 .intr_mode_init = apic_intr_mode_init,
> 80 .create_pci_msi_domain = native_create_pci_msi_domain,
81 },
82
83 .oem = {
84 .arch_setup = x86_init_noop,
85 .banner = default_banner,
86 },
87
88 .paging = {
89 .pagetable_init = native_pagetable_init,
90 },
91
92 .timers = {
93 .setup_percpu_clockev = setup_boot_APIC_clock,
94 .timer_init = hpet_time_init,
95 .wallclock_init = x86_wallclock_init,
96 },
97
98 .iommu = {
99 .iommu_init = iommu_init_noop,
100 },
101
102 .pci = {
103 .init = x86_default_pci_init,
104 .init_irq = x86_default_pci_init_irq,
105 .fixup_irqs = x86_default_pci_fixup_irqs,
106 },
107
108 .hyper = {
109 .init_platform = x86_init_noop,
110 .guest_late_init = x86_init_noop,
111 .x2apic_available = bool_x86_init_noop,
112 .init_mem_mapping = x86_init_noop,
113 .init_after_bootmem = x86_init_noop,
114 },
115
116 .acpi = {
117 .set_root_pointer = x86_default_set_root_pointer,
118 .get_root_pointer = x86_default_get_root_pointer,
119 .reduced_hw_early_init = acpi_generic_reduced_hw_init,
120 },
121 };
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [RFC PATCH v2 3/9] ext4: add freespace tree allocator
by kernel test robot
Hi Harshad,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on ext4/dev]
[also build test ERROR on next-20200820]
[cannot apply to tip/perf/core v5.9-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Harshad-Shirwadkar/ext4-add-free...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: nds32-defconfig (attached as .config)
compiler: nds32le-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
nds32le-linux-ld: fs/ext4/mballoc.o: in function `ext4_mb_frsp_free_blocks':
>> mballoc.c:(.text+0x2b2e): undefined reference to `__umoddi3'
>> nds32le-linux-ld: mballoc.c:(.text+0x2b32): undefined reference to `__umoddi3'
nds32le-linux-ld: fs/ext4/mballoc.o: in function `ext4_mb_frsp_bb_to_tree':
mballoc.c:(.text+0x2c36): undefined reference to `__umoddi3'
nds32le-linux-ld: mballoc.c:(.text+0x2c3a): undefined reference to `__umoddi3'
nds32le-linux-ld: fs/ext4/mballoc.o: in function `mb_mark_used':
mballoc.c:(.text+0x54d4): undefined reference to `__umoddi3'
nds32le-linux-ld: fs/ext4/mballoc.o:mballoc.c:(.text+0x54d8): more undefined references to `__umoddi3' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [RFC PATCH net-next 1/2] net: Implement granular VF trust flags
by kernel test robot
Hi Carolyn,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Carolyn-Wyborny/Granular-VF-Trus...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1e76a2ff317d0dd9db60b5d9bb6e8215c1513fa8
config: arc-allyesconfig (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: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_get_vf_config':
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2930:5: error: 'struct ifla_vf_info' has no member named 'trusted'
2930 | ivf->trusted = vport->vf_info.trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ice/ice.h:12,
from drivers/net/ethernet/intel/ice/ice_main.c:9:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/ice/ice_main.c:6815:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
6815 | .ndo_set_vf_trust = ice_set_vf_trust,
| ^~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/ice_main.c:6815:22: note: (near initialization for 'ice_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ice/ice.h:12,
from drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c: In function 'ice_get_vf_cfg':
>> drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c:3789:5: error: 'struct ifla_vf_info' has no member named 'trusted'
3789 | ivi->trusted = vf->trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/trace/events/xdp.h:8,
from include/linux/bpf_trace.h:5,
from drivers/net/ethernet/netronome/nfp/nfp_net_common.c:16:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/netronome/nfp/nfp_net_common.c:3655:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
3655 | .ndo_set_vf_trust = nfp_app_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_common.c:3655:22: note: (near initialization for 'nfp_net_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:270:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
270 | .ndo_set_vf_trust = nfp_app_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:270:22: note: (near initialization for 'nfp_repr_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c:6:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c: In function 'nfp_app_get_vf_config':
>> drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c:240:5: error: 'struct ifla_vf_info' has no member named 'trusted'
240 | ivi->trusted = FIELD_GET(NFP_NET_VF_CFG_CTRL_TRUST, flags);
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/broadcom/bnxt/bnxt.c:22:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:11734:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
11734 | .ndo_set_vf_trust = bnxt_set_vf_trust,
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt.c:11734:22: note: (near initialization for 'bnxt_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c:13:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c: In function 'bnxt_get_vf_config':
>> drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c:196:5: error: 'struct ifla_vf_info' has no member named 'trusted'
196 | ivi->trusted = bnxt_is_trusted_vf(bp, vf);
| ^~
# https://github.com/0day-ci/linux/commit/4bb6e978a1d0ad9d75c7da88901c610af...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Carolyn-Wyborny/Granular-VF-Trust-Flags-for-SR-IOV/20200821-092637
git checkout 4bb6e978a1d0ad9d75c7da88901c610afa0ac3e4
vim +2930 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6430f744a45adb Yufeng Mo 2019-10-08 2916
6430f744a45adb Yufeng Mo 2019-10-08 2917 static int hclge_get_vf_config(struct hnae3_handle *handle, int vf,
6430f744a45adb Yufeng Mo 2019-10-08 2918 struct ifla_vf_info *ivf)
6430f744a45adb Yufeng Mo 2019-10-08 2919 {
6430f744a45adb Yufeng Mo 2019-10-08 2920 struct hclge_vport *vport = hclge_get_vport(handle);
6430f744a45adb Yufeng Mo 2019-10-08 2921 struct hclge_dev *hdev = vport->back;
6430f744a45adb Yufeng Mo 2019-10-08 2922
6430f744a45adb Yufeng Mo 2019-10-08 2923 vport = hclge_get_vf_vport(hdev, vf);
6430f744a45adb Yufeng Mo 2019-10-08 2924 if (!vport)
6430f744a45adb Yufeng Mo 2019-10-08 2925 return -EINVAL;
6430f744a45adb Yufeng Mo 2019-10-08 2926
6430f744a45adb Yufeng Mo 2019-10-08 2927 ivf->vf = vf;
6430f744a45adb Yufeng Mo 2019-10-08 2928 ivf->linkstate = vport->vf_info.link_state;
22044f95faa05c Jian Shen 2019-10-08 2929 ivf->spoofchk = vport->vf_info.spoofchk;
e196ec75958e16 Jian Shen 2019-10-08 @2930 ivf->trusted = vport->vf_info.trusted;
ee9e44248f52b6 Yonglong Liu 2019-10-08 2931 ivf->min_tx_rate = 0;
ee9e44248f52b6 Yonglong Liu 2019-10-08 2932 ivf->max_tx_rate = vport->vf_info.max_tx_rate;
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2933 ivf->vlan = vport->port_base_vlan_cfg.vlan_info.vlan_tag;
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2934 ivf->vlan_proto = htons(vport->port_base_vlan_cfg.vlan_info.vlan_proto);
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2935 ivf->qos = vport->port_base_vlan_cfg.vlan_info.qos;
6430f744a45adb Yufeng Mo 2019-10-08 2936 ether_addr_copy(ivf->mac, vport->vf_info.mac);
6430f744a45adb Yufeng Mo 2019-10-08 2937
6430f744a45adb Yufeng Mo 2019-10-08 2938 return 0;
6430f744a45adb Yufeng Mo 2019-10-08 2939 }
6430f744a45adb Yufeng Mo 2019-10-08 2940
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [RFC PATCH net-next 1/2] net: Implement granular VF trust flags
by kernel test robot
Hi Carolyn,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Carolyn-Wyborny/Granular-VF-Trus...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 1e76a2ff317d0dd9db60b5d9bb6e8215c1513fa8
config: alpha-randconfig-r015-20200821 (attached as .config)
compiler: alpha-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:7:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10240:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
10240 | .ndo_set_vf_trust = ixgbe_ndo_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10240:22: note: (near initialization for 'ixgbe_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:7:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c: In function 'ixgbe_ndo_get_vf_config':
>> drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:1717:5: error: 'struct ifla_vf_info' has no member named 'trusted'
1717 | ivi->trusted = adapter->vfinfo[vf].trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/intel/i40e/i40e_main.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/i40e/i40e_main.c:12959:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
12959 | .ndo_set_vf_trust = i40e_ndo_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_main.c:12959:22: note: (near initialization for 'i40e_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/net/sock.h:46,
from include/linux/tcp.h:19,
from include/net/tcp.h:20,
from drivers/net/ethernet/intel/i40e/i40e.h:7,
from drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c: In function 'i40e_ndo_get_vf_config':
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c:4387:5: error: 'struct ifla_vf_info' has no member named 'trusted'
4387 | ivi->trusted = vf->trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/qlogic/qede/qede_main.c:12:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
>> drivers/net/ethernet/qlogic/qede/qede_main.c:653:22: error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
653 | .ndo_set_vf_trust = qede_set_vf_trust,
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/qlogic/qede/qede_main.c:653:22: note: (near initialization for 'qede_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/4bb6e978a1d0ad9d75c7da88901c610af...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Carolyn-Wyborny/Granular-VF-Trust-Flags-for-SR-IOV/20200821-092637
git checkout 4bb6e978a1d0ad9d75c7da88901c610afa0ac3e4
vim +10240 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
6453073987ba392 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-07-17 10221
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10222 static const struct net_device_ops ixgbe_netdev_ops = {
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10223 .ndo_open = ixgbe_open,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10224 .ndo_stop = ixgbe_close,
008298231abbeb9 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-20 10225 .ndo_start_xmit = ixgbe_xmit_frame,
e90d400c2b65c7b drivers/net/ixgbe/ixgbe_main.c Chris Leech 2009-03-10 10226 .ndo_set_rx_mode = ixgbe_set_rx_mode,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10227 .ndo_validate_addr = eth_validate_addr,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10228 .ndo_set_mac_address = ixgbe_set_mac,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10229 .ndo_change_mtu = ixgbe_change_mtu,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10230 .ndo_tx_timeout = ixgbe_tx_timeout,
c04f90e59243148 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Rostislav Pehlivanov 2016-01-27 10231 .ndo_set_tx_maxrate = ixgbe_tx_maxrate,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10232 .ndo_vlan_rx_add_vid = ixgbe_vlan_rx_add_vid,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10233 .ndo_vlan_rx_kill_vid = ixgbe_vlan_rx_kill_vid,
6b73e10d2d89f9c drivers/net/ixgbe/ixgbe_main.c Ben Hutchings 2009-04-29 10234 .ndo_do_ioctl = ixgbe_ioctl,
7f01648aa32185b drivers/net/ixgbe/ixgbe_main.c Greg Rose 2010-05-04 10235 .ndo_set_vf_mac = ixgbe_ndo_set_vf_mac,
7f01648aa32185b drivers/net/ixgbe/ixgbe_main.c Greg Rose 2010-05-04 10236 .ndo_set_vf_vlan = ixgbe_ndo_set_vf_vlan,
ed616689a3d95eb drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Sucheta Chakraborty 2014-05-22 10237 .ndo_set_vf_rate = ixgbe_ndo_set_vf_bw,
de4c7f653b2ff24 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Greg Rose 2011-09-29 10238 .ndo_set_vf_spoofchk = ixgbe_ndo_set_vf_spoofchk,
e65ce0d395c2822 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Vlad Zolotarov 2015-03-30 10239 .ndo_set_vf_rss_query_en = ixgbe_ndo_set_vf_rss_query_en,
54011e4db839504 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Hiroshi Shimamoto 2015-08-28 @10240 .ndo_set_vf_trust = ixgbe_ndo_set_vf_trust,
7f01648aa32185b drivers/net/ixgbe/ixgbe_main.c Greg Rose 2010-05-04 10241 .ndo_get_vf_config = ixgbe_ndo_get_vf_config,
de1036b1cea147c drivers/net/ixgbe/ixgbe_main.c Eric Dumazet 2010-10-20 10242 .ndo_get_stats64 = ixgbe_get_stats64,
e4c6734eaab9069 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2016-02-16 10243 .ndo_setup_tc = __ixgbe_setup_tc,
332d4a7d981e25d drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-05-13 10244 #ifdef IXGBE_FCOE
eadec877ce9ca46 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2018-07-09 10245 .ndo_select_queue = ixgbe_select_queue,
332d4a7d981e25d drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-05-13 10246 .ndo_fcoe_ddp_setup = ixgbe_fcoe_ddp_get,
68a683cf6a5ff09 drivers/net/ixgbe/ixgbe_main.c Yi Zou 2011-02-01 10247 .ndo_fcoe_ddp_target = ixgbe_fcoe_ddp_target,
332d4a7d981e25d drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-05-13 10248 .ndo_fcoe_ddp_done = ixgbe_fcoe_ddp_put,
8450ff8cd7fba6e drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-08-31 10249 .ndo_fcoe_enable = ixgbe_fcoe_enable,
8450ff8cd7fba6e drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-08-31 10250 .ndo_fcoe_disable = ixgbe_fcoe_disable,
61a1fa102ada6d8 drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-10-28 10251 .ndo_fcoe_get_wwn = ixgbe_fcoe_get_wwn,
ea81875ae07aeac drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Neerav Parikh 2012-01-04 10252 .ndo_fcoe_get_hbainfo = ixgbe_fcoe_get_hbainfo,
332d4a7d981e25d drivers/net/ixgbe/ixgbe_main.c Yi Zou 2009-05-13 10253 #endif /* IXGBE_FCOE */
082757afcf7d6e4 drivers/net/ixgbe/ixgbe_main.c Don Skidmore 2011-07-21 10254 .ndo_set_features = ixgbe_set_features,
082757afcf7d6e4 drivers/net/ixgbe/ixgbe_main.c Don Skidmore 2011-07-21 10255 .ndo_fix_features = ixgbe_fix_features,
0f4b0add851a741 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2012-04-15 10256 .ndo_fdb_add = ixgbe_ndo_fdb_add,
815cccbf10b2711 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2012-10-24 10257 .ndo_bridge_setlink = ixgbe_ndo_bridge_setlink,
815cccbf10b2711 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2012-10-24 10258 .ndo_bridge_getlink = ixgbe_ndo_bridge_getlink,
2a47fa45d4dfbc5 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2013-11-06 10259 .ndo_dfwd_add_station = ixgbe_fwd_add,
2a47fa45d4dfbc5 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2013-11-06 10260 .ndo_dfwd_del_station = ixgbe_fwd_del,
dc221851ffd1e6e drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jakub Kicinski 2020-07-09 10261 .ndo_udp_tunnel_add = udp_tunnel_nic_add_port,
dc221851ffd1e6e drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jakub Kicinski 2020-07-09 10262 .ndo_udp_tunnel_del = udp_tunnel_nic_del_port,
f467bc06022d4d3 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Mark Rustad 2015-06-15 10263 .ndo_features_check = ixgbe_features_check,
f4e63525ee35f9c drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jakub Kicinski 2017-11-03 10264 .ndo_bpf = ixgbe_xdp,
6453073987ba392 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c John Fastabend 2017-07-17 10265 .ndo_xdp_xmit = ixgbe_xdp_xmit,
9116e5e2b1fff71 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Magnus Karlsson 2019-08-14 10266 .ndo_xsk_wakeup = ixgbe_xsk_wakeup,
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10267 };
0edc352743156a3 drivers/net/ixgbe/ixgbe_main.c Stephen Hemminger 2008-11-19 10268
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[tglx-devel:devicemsi 10/38] arch/x86/kernel/devicetree.c:232:6: error: 'struct irq_alloc_info' has no member named 'ioapic_id'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: 92a04d4c74918f3dd5870d946b73b61161e1b161 [10/38] x86/ioapic: Consolidate IOAPIC allocation
config: i386-randconfig-s002-20200820 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/devicetree.c: In function 'dt_irqdomain_alloc':
>> arch/x86/kernel/devicetree.c:232:6: error: 'struct irq_alloc_info' has no member named 'ioapic_id'; did you mean 'ioapic'?
232 | tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
| ^~~~~~~~~
| ioapic
>> arch/x86/kernel/devicetree.c:233:6: error: 'struct irq_alloc_info' has no member named 'ioapic_pin'; did you mean 'ioapic'?
233 | tmp.ioapic_pin = fwspec->param[0];
| ^~~~~~~~~~
| ioapic
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
vim +232 arch/x86/kernel/devicetree.c
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 214
d32932d02e1869b Jiang Liu 2015-04-13 215 static int dt_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
d32932d02e1869b Jiang Liu 2015-04-13 216 unsigned int nr_irqs, void *arg)
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 217 {
0a5169add90e43a Ivan Gorinov 2018-03-07 218 struct irq_fwspec *fwspec = (struct irq_fwspec *)arg;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 219 struct of_ioapic_type *it;
d32932d02e1869b Jiang Liu 2015-04-13 220 struct irq_alloc_info tmp;
0a5169add90e43a Ivan Gorinov 2018-03-07 221 int type_index;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 222
0a5169add90e43a Ivan Gorinov 2018-03-07 223 if (WARN_ON(fwspec->param_count < 2))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 224 return -EINVAL;
0a5169add90e43a Ivan Gorinov 2018-03-07 225
0a5169add90e43a Ivan Gorinov 2018-03-07 226 type_index = fwspec->param[1];
0a5169add90e43a Ivan Gorinov 2018-03-07 227 if (type_index >= ARRAY_SIZE(of_ioapic_type))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 228 return -EINVAL;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 229
0a5169add90e43a Ivan Gorinov 2018-03-07 230 it = &of_ioapic_type[type_index];
d32932d02e1869b Jiang Liu 2015-04-13 231 ioapic_set_alloc_attr(&tmp, NUMA_NO_NODE, it->trigger, it->polarity);
d32932d02e1869b Jiang Liu 2015-04-13 @232 tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
0a5169add90e43a Ivan Gorinov 2018-03-07 @233 tmp.ioapic_pin = fwspec->param[0];
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 234
d32932d02e1869b Jiang Liu 2015-04-13 235 return mp_irqdomain_alloc(domain, virq, nr_irqs, &tmp);
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 236 }
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 237
:::::: The code at line 232 was first introduced by commit
:::::: d32932d02e1869be838cea3ace42467c360db377 x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces
:::::: TO: Jiang Liu <jiang.liu(a)linux.intel.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH net-next v2 4/5] net: mdio: Move MDIO drivers into a new subdirectory
by kernel test robot
Hi Andrew,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Andrew-Lunn/Move-MDIO-drivers-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git bfdd5aaa54b0a44d9df550fe4c9db7e1470a11b8
config: arm64-randconfig-r006-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4deda57106f7c9b982a49cb907c33e3966c8de7f)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/mdio/mdio-xgene.c:337:13: warning: cast to smaller integer type 'enum xgene_mdio_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
mdio_id = (enum xgene_mdio_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
# https://github.com/0day-ci/linux/commit/a12bbcda4a7665752296bc6368dc9168d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andrew-Lunn/Move-MDIO-drivers-into-there-own-directory/20200817-025908
git checkout a12bbcda4a7665752296bc6368dc9168d9f0cdc0
vim +337 drivers/net/mdio/mdio-xgene.c
1f3d62090d3ba4 drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 324
1f3d62090d3ba4 drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 325
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 326 static int xgene_mdio_probe(struct platform_device *pdev)
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 327 {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 328 struct device *dev = &pdev->dev;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 329 struct mii_bus *mdio_bus;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 330 const struct of_device_id *of_id;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 331 struct xgene_mdio_pdata *pdata;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 332 void __iomem *csr_base;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 333 int mdio_id = 0, ret = 0;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 334
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 335 of_id = of_match_device(xgene_mdio_of_match, &pdev->dev);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 336 if (of_id) {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 @337 mdio_id = (enum xgene_mdio_id)of_id->data;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 338 } else {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 339 #ifdef CONFIG_ACPI
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 340 const struct acpi_device_id *acpi_id;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 341
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 342 acpi_id = acpi_match_device(xgene_mdio_acpi_match, &pdev->dev);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 343 if (acpi_id)
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 344 mdio_id = (enum xgene_mdio_id)acpi_id->driver_data;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 345 #endif
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 346 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 347
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 348 if (!mdio_id)
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 349 return -ENODEV;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 350
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 351 pdata = devm_kzalloc(dev, sizeof(struct xgene_mdio_pdata), GFP_KERNEL);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 352 if (!pdata)
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 353 return -ENOMEM;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 354 pdata->mdio_id = mdio_id;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 355 pdata->dev = dev;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 356
0ae9fce32c5e5d drivers/net/phy/mdio-xgene.c YueHaibing 2019-08-01 357 csr_base = devm_platform_ioremap_resource(pdev, 0);
b2df430b52cf9e drivers/net/phy/mdio-xgene.c Wei Yongjun 2016-07-28 358 if (IS_ERR(csr_base))
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 359 return PTR_ERR(csr_base);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 360 pdata->mac_csr_addr = csr_base;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 361 pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 362 pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 363
8ec7074a6bf74e drivers/net/phy/mdio-xgene.c Quan Nguyen 2017-05-10 364 if (mdio_id == XGENE_MDIO_RGMII)
8ec7074a6bf74e drivers/net/phy/mdio-xgene.c Quan Nguyen 2017-05-10 365 spin_lock_init(&pdata->mac_lock);
8ec7074a6bf74e drivers/net/phy/mdio-xgene.c Quan Nguyen 2017-05-10 366
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 367 if (dev->of_node) {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 368 pdata->clk = devm_clk_get(dev, NULL);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 369 if (IS_ERR(pdata->clk)) {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 370 dev_err(dev, "Unable to retrieve clk\n");
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 371 return PTR_ERR(pdata->clk);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 372 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 373 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 374
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 375 ret = xgene_mdio_reset(pdata);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 376 if (ret)
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 377 return ret;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 378
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 379 mdio_bus = mdiobus_alloc();
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 380 if (!mdio_bus) {
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 381 ret = -ENOMEM;
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 382 goto out_clk;
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 383 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 384
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 385 mdio_bus->name = "APM X-Gene MDIO bus";
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 386
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 387 if (mdio_id == XGENE_MDIO_RGMII) {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 388 mdio_bus->read = xgene_mdio_rgmii_read;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 389 mdio_bus->write = xgene_mdio_rgmii_write;
8ec7074a6bf74e drivers/net/phy/mdio-xgene.c Quan Nguyen 2017-05-10 390 mdio_bus->priv = (void __force *)pdata;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 391 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s",
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 392 "xgene-mii-rgmii");
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 393 } else {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 394 mdio_bus->read = xgene_xfi_mdio_read;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 395 mdio_bus->write = xgene_xfi_mdio_write;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 396 mdio_bus->priv = (void __force *)pdata->mdio_csr_addr;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 397 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s",
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 398 "xgene-mii-xfi");
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 399 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 400
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 401 mdio_bus->parent = dev;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 402 platform_set_drvdata(pdev, pdata);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 403
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 404 if (dev->of_node) {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 405 ret = of_mdiobus_register(mdio_bus, dev->of_node);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 406 } else {
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 407 #ifdef CONFIG_ACPI
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 408 /* Mask out all PHYs from auto probing. */
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 409 mdio_bus->phy_mask = ~0;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 410 ret = mdiobus_register(mdio_bus);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 411 if (ret)
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 412 goto out_mdiobus;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 413
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 414 acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_HANDLE(dev), 1,
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 415 acpi_register_phy, NULL, mdio_bus, NULL);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 416 #endif
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 417 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 418
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 419 if (ret)
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 420 goto out_mdiobus;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 421
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 422 pdata->mdio_bus = mdio_bus;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 423 xgene_mdio_status = true;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 424
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 425 return 0;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 426
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 427 out_mdiobus:
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 428 mdiobus_free(mdio_bus);
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 429
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 430 out_clk:
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 431 if (dev->of_node)
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 432 clk_disable_unprepare(pdata->clk);
ab14436065c806 drivers/net/phy/mdio-xgene.c Alexey Khoroshilov 2017-12-16 433
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 434 return ret;
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 435 }
43b3cf6634a4ae drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 436
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[rppt:memfd-secret/v4 4/6] <stdin>:1526:2: warning: syscall memfd_secret not implemented
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git memfd-secret/v4
head: e8724fa7ea4d361c355f966e96f2f445131e8fbc
commit: 65267e6651e350b609c5c49d9636b40f031986b9 [4/6] arch, mm: wire up memfd_secret system call were relevant
config: powerpc64-randconfig-r003-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4deda57106f7c9b982a49cb907c33e3966c8de7f)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
git checkout 65267e6651e350b609c5c49d9636b40f031986b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented [-W#warnings]
#warning syscall memfd_secret not implemented
^
1 warning generated.
--
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented [-W#warnings]
#warning syscall memfd_secret not implemented
^
1 warning generated.
--
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
>> <stdin>:1526:2: warning: syscall memfd_secret not implemented
#warning syscall memfd_secret not implemented
^
1 warning generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month