Hi Nick,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 0d426553bb97ebfcb4ea34e8fd63477a44316644
commit: f25433cb156a967d9b426ebaadf197c2369398e7 [9263/23983] drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines
config: x86_64-randconfig-071-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050901.GVulQ30e-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050901.GVulQ30e-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050901.GVulQ30e-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dml1_display_rq_dlg_calc.c:26:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dml1_display_rq_dlg_calc.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dml_common_defs.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:35:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:29:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:31:
In file included from include/drm/drmP.h:62:
In file included from arch/x86/include/asm/pgalloc.h:7:
include/linux/pagemap.h:401:21: warning: cast from 'int (*)(struct file *, struct page *)' to 'filler_t *' (aka 'int (*)(void *, struct page *)') converts to incompatible function type [-Wcast-function-type-strict]
401 | filler_t *filler = (filler_t *)mapping->a_ops->readpage;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dml1_display_rq_dlg_calc.o: warning: objtool: dml1_rq_dlg_get_dlg_params()+0x2efb: unreachable instruction
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 11557c1ae4529f133483879b7ee00b7d8c653be7 [9864/16090] x86/cpu/zhaoxin: Encapsulate access to kh40000_dma_direct_ops within function
config: x86_64-buildonly-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050505.GKcOQBxL-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050505.GKcOQBxL-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050505.GKcOQBxL-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/early-quirks.c:13:
In file included from include/linux/pci.h:1666:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for function 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^
arch/x86/kernel/early-quirks.c:722:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
722 | bool is_zhaoxin_kh40000(void)
| ^
| static
>> arch/x86/kernel/early-quirks.c:727:34: warning: no previous prototype for function 'kh40000_get_direct_dma_ops' [-Wmissing-prototypes]
727 | __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
| ^
arch/x86/kernel/early-quirks.c:727:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
727 | __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
| ^
| static
3 warnings generated.
vim +/kh40000_get_direct_dma_ops +727 arch/x86/kernel/early-quirks.c
721
> 722 bool is_zhaoxin_kh40000(void)
723 {
724 return zhaoxin_kh40000;
725 }
726
> 727 __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
728 {
729 return dma_ops;
730 }
731
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head: 0d426553bb97ebfcb4ea34e8fd63477a44316644
commit: 857e8d34273e190118d5cb5002e1ed45d1b5185d [1231/1231] arm64/mpam: Using software-defined id for rdtgroup instead of 32-bit integer
config: arm64-randconfig-001-20241029 (https://download.01.org/0day-ci/archive/20241105/202411050407.BuL0Qgyb-lkp@…)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050407.BuL0Qgyb-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050407.BuL0Qgyb-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kernel/mpam/mpam_resctrl.c:163:1: warning: conflicting types for 'mpam_get_raw_resctrl_resource' due to enum/integer mismatch; have 'struct raw_resctrl_resource *(enum resctrl_resource_level)' [-Wenum-int-mismatch]
163 | mpam_get_raw_resctrl_resource(enum resctrl_resource_level level)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/arm64/kernel/mpam/mpam_resctrl.c:47:
arch/arm64/kernel/mpam/mpam_internal.h:184:1: note: previous declaration of 'mpam_get_raw_resctrl_resource' with type 'struct raw_resctrl_resource *(u32)' {aka 'struct raw_resctrl_resource *(unsigned int)'}
184 | mpam_get_raw_resctrl_resource(u32 level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kernel/mpam/mpam_resctrl.c:520:5: warning: no previous prototype for 'closid_bitmap_init' [-Wmissing-prototypes]
520 | int closid_bitmap_init(void)
| ^~~~~~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c:875:5: warning: no previous prototype for 'cpus_ctrl_write' [-Wmissing-prototypes]
875 | int cpus_ctrl_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask,
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c:972:5: warning: no previous prototype for 'cpus_mon_write' [-Wmissing-prototypes]
972 | int cpus_mon_write(struct rdtgroup *rdtgrp, cpumask_var_t newmask,
| ^~~~~~~~~~~~~~
arch/arm64/kernel/mpam/mpam_resctrl.c: In function 'rdt_last_cmd_printf':
arch/arm64/kernel/mpam/mpam_resctrl.c:1116:9: warning: function 'rdt_last_cmd_printf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1116 | seq_buf_vprintf(&last_cmd_status, fmt, ap);
| ^~~~~~~~~~~~~~~
--
arch/arm64/kernel/mpam/mpam_ctrlmon.c: In function 'resctrl_mkdir_mondata_all_subdir':
arch/arm64/kernel/mpam/mpam_ctrlmon.c:561:54: warning: variable 'rr' set but not used [-Wunused-but-set-variable]
561 | struct raw_resctrl_resource *rr;
| ^~
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 's' not described in 'show_doms'
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'r' not described in 'show_doms'
arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'schema_name' not described in 'show_doms'
>> arch/arm64/kernel/mpam/mpam_ctrlmon.c:320: warning: Function parameter or member 'closid' not described in 'show_doms'
vim +/closid_bitmap_init +520 arch/arm64/kernel/mpam/mpam_resctrl.c
519
> 520 int closid_bitmap_init(void)
521 {
522 int ret;
523
524 mpam_resctrl_closid_collect();
525 if (!num_intpartid || !num_reqpartid)
526 return -EINVAL;
527
528 if (intpartid_free_map)
529 kfree(intpartid_free_map);
530 if (reqpartid_free_map)
531 kfree(reqpartid_free_map);
532
533 ret = local_closid_bitmap_init(num_intpartid, &intpartid_free_map);
534 if (ret)
535 goto out;
536
537 ret = local_closid_bitmap_init(num_reqpartid, &reqpartid_free_map);
538 if (ret)
539 goto out;
540
541 return 0;
542 out:
543 return ret;
544 }
545
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 11557c1ae4529f133483879b7ee00b7d8c653be7 [9864/16090] x86/cpu/zhaoxin: Encapsulate access to kh40000_dma_direct_ops within function
config: x86_64-buildonly-randconfig-003-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050406.Ec1bzJ2a-lkp@…)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050406.Ec1bzJ2a-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050406.Ec1bzJ2a-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/early-quirks.c:727:34: warning: no previous prototype for 'kh40000_get_direct_dma_ops' [-Wmissing-prototypes]
727 | __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kh40000_get_direct_dma_ops +727 arch/x86/kernel/early-quirks.c
726
> 727 __weak const struct dma_map_ops *kh40000_get_direct_dma_ops(void)
728 {
729 return dma_ops;
730 }
731
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 69181c3c9413ccaa4dab458057d13efda520cb60 [16076/16090] Net: nebula_matrix: fix ci build warning
config: x86_64-randconfig-011-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050357.1eY1gMA4-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050357.1eY1gMA4-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050357.1eY1gMA4-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:7:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_core.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_product_base.h:10:
In file included from drivers/net/ethernet/nebula-matrix/nbl/nbl_include/nbl_include.h:12:
In file included from include/linux/pci.h:1669:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2247:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:6: warning: no previous prototype for function 'nbl_dev_free_abnormal_irq' [-Wmissing-prototypes]
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:6: warning: no previous prototype for function 'nbl_dev_set_eth_mac_addr' [-Wmissing-prototypes]
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^
| static
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:25: error: use of undeclared identifier 'PCI_IOV_RESOURCES'
1806 | res = &pdev->resource[PCI_IOV_RESOURCES];
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:6: warning: no previous prototype for function 'nbl_dev_unregister_net' [-Wmissing-prototypes]
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2409:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
2409 | struct net_device *netdev;
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2746:26: warning: variable 'net_priv' set but not used [-Wunused-but-set-variable]
2746 | struct nbl_netdev_priv *net_priv;
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:6: warning: no previous prototype for function 'nbl_dev_stop_common_dev' [-Wmissing-prototypes]
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^
| static
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:6: warning: no previous prototype for function 'nbl_dev_suspend_common_dev' [-Wmissing-prototypes]
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^
| static
8 warnings and 1 error generated.
vim +/PCI_IOV_RESOURCES +1806 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c
bad535d287c9c1 Bennie Yan 2024-09-24 1770
bad535d287c9c1 Bennie Yan 2024-09-24 1771 static int nbl_dev_register_net(struct nbl_dev_mgt *dev_mgt,
bad535d287c9c1 Bennie Yan 2024-09-24 1772 struct nbl_register_net_result *register_result)
bad535d287c9c1 Bennie Yan 2024-09-24 1773 {
bad535d287c9c1 Bennie Yan 2024-09-24 1774 struct nbl_service_ops *serv_ops = NBL_DEV_MGT_TO_SERV_OPS(dev_mgt);
bad535d287c9c1 Bennie Yan 2024-09-24 1775 struct pci_dev *pdev = NBL_COMMON_TO_PDEV(NBL_DEV_MGT_TO_COMMON(dev_mgt));
bad535d287c9c1 Bennie Yan 2024-09-24 1776 struct resource *res;
bad535d287c9c1 Bennie Yan 2024-09-24 1777 u16 pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1778 u64 pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1779 u64 vf_bar_start, vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1780 u16 total_vfs, offset, stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1781 int pos;
bad535d287c9c1 Bennie Yan 2024-09-24 1782 u32 val;
bad535d287c9c1 Bennie Yan 2024-09-24 1783 struct nbl_register_net_param register_param = {0};
bad535d287c9c1 Bennie Yan 2024-09-24 1784 int ret = 0;
bad535d287c9c1 Bennie Yan 2024-09-24 1785
bad535d287c9c1 Bennie Yan 2024-09-24 1786 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1787 pf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1788 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0 + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1789 pf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1790
bad535d287c9c1 Bennie Yan 2024-09-24 1791 register_param.pf_bar_start = pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1792
bad535d287c9c1 Bennie Yan 2024-09-24 1793 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
bad535d287c9c1 Bennie Yan 2024-09-24 1794 if (pos) {
bad535d287c9c1 Bennie Yan 2024-09-24 1795 pf_bdf = PCI_DEVID(pdev->bus->number, pdev->devfn);
bad535d287c9c1 Bennie Yan 2024-09-24 1796
bad535d287c9c1 Bennie Yan 2024-09-24 1797 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_OFFSET, &offset);
bad535d287c9c1 Bennie Yan 2024-09-24 1798 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_STRIDE, &stride);
bad535d287c9c1 Bennie Yan 2024-09-24 1799 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &total_vfs);
bad535d287c9c1 Bennie Yan 2024-09-24 1800
bad535d287c9c1 Bennie Yan 2024-09-24 1801 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1802 vf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1803 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1804 vf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1805
bad535d287c9c1 Bennie Yan 2024-09-24 @1806 res = &pdev->resource[PCI_IOV_RESOURCES];
bad535d287c9c1 Bennie Yan 2024-09-24 1807 vf_bar_size = resource_size(res);
bad535d287c9c1 Bennie Yan 2024-09-24 1808
bad535d287c9c1 Bennie Yan 2024-09-24 1809 if (total_vfs) {
bad535d287c9c1 Bennie Yan 2024-09-24 1810 register_param.pf_bdf = pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1811 register_param.vf_bar_start = vf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1812 register_param.vf_bar_size = vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1813 register_param.total_vfs = total_vfs;
bad535d287c9c1 Bennie Yan 2024-09-24 1814 register_param.offset = offset;
bad535d287c9c1 Bennie Yan 2024-09-24 1815 register_param.stride = stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1816 }
bad535d287c9c1 Bennie Yan 2024-09-24 1817 }
bad535d287c9c1 Bennie Yan 2024-09-24 1818
bad535d287c9c1 Bennie Yan 2024-09-24 1819 ret = serv_ops->register_net(NBL_DEV_MGT_TO_SERV_PRIV(dev_mgt),
bad535d287c9c1 Bennie Yan 2024-09-24 1820 ®ister_param, register_result);
bad535d287c9c1 Bennie Yan 2024-09-24 1821
bad535d287c9c1 Bennie Yan 2024-09-24 1822 if (!register_result->tx_queue_num || !register_result->rx_queue_num)
bad535d287c9c1 Bennie Yan 2024-09-24 1823 return -EIO;
bad535d287c9c1 Bennie Yan 2024-09-24 1824
bad535d287c9c1 Bennie Yan 2024-09-24 1825 return ret;
bad535d287c9c1 Bennie Yan 2024-09-24 1826 }
bad535d287c9c1 Bennie Yan 2024-09-24 1827
:::::: The code at line 1806 was first introduced by commit
:::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC.
:::::: TO: Bennie Yan <bennie.yan(a)nebula-matrix.com>
:::::: CC: Bennie Yan <bennie.yan(a)nebula-matrix.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 8eaba08b2d72718a40cafe3402ab4f26b0dc62eb [9863/16090] x86/cpu/zhaoxin: Encapsulate access to global variables within functions
config: x86_64-buildonly-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050336.auofJ1jN-lkp@…)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050336.auofJ1jN-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050336.auofJ1jN-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/early-quirks.c:13:
In file included from include/linux/pci.h:1666:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for function 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void)
| ^
arch/x86/kernel/early-quirks.c:722:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
722 | bool is_zhaoxin_kh40000(void)
| ^
| static
arch/x86/kernel/early-quirks.c:737:14: error: use of undeclared identifier 'kh40000_dma_direct_ops'
737 | dma_ops = &kh40000_dma_direct_ops;
| ^
2 warnings and 1 error generated.
--
In file included from kernel/dma/contiguous.c:48:
In file included from include/linux/memblock.h:12:
In file included from include/linux/mm.h:2235:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> kernel/dma/contiguous.c:209:13: warning: no previous prototype for function 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
209 | bool __weak is_zhaoxin_kh40000(void)
| ^
kernel/dma/contiguous.c:209:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
209 | bool __weak is_zhaoxin_kh40000(void)
| ^
| static
kernel/dma/contiguous.c:73:26: warning: unused variable 'size_bytes' [-Wunused-const-variable]
73 | static const phys_addr_t size_bytes __initconst =
| ^~~~~~~~~~
3 warnings generated.
vim +/is_zhaoxin_kh40000 +722 arch/x86/kernel/early-quirks.c
721
> 722 bool is_zhaoxin_kh40000(void)
723 {
724 return zhaoxin_kh40000;
725 }
726
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41
commit: 69181c3c9413ccaa4dab458057d13efda520cb60 [16076/16090] Net: nebula_matrix: fix ci build warning
config: x86_64-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050228.sfGyzHzs-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050228.sfGyzHzs-lkp@…)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050228.sfGyzHzs-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:404:6: warning: no previous prototype for 'nbl_dev_free_abnormal_irq' [-Wmissing-prototypes]
404 | void nbl_dev_free_abnormal_irq(struct nbl_dev_mgt *dev_mgt)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1706:6: warning: no previous prototype for 'nbl_dev_set_eth_mac_addr' [-Wmissing-prototypes]
1706 | void nbl_dev_set_eth_mac_addr(struct nbl_dev_mgt *dev_mgt, struct net_device *netdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_register_net':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:39: error: 'PCI_IOV_RESOURCES' undeclared (first use in this function); did you mean 'PCI_NUM_RESOURCES'?
1806 | res = &pdev->resource[PCI_IOV_RESOURCES];
| ^~~~~~~~~~~~~~~~~
| PCI_NUM_RESOURCES
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1806:39: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: At top level:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:1828:6: warning: no previous prototype for 'nbl_dev_unregister_net' [-Wmissing-prototypes]
1828 | void nbl_dev_unregister_net(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_remove_net_dev':
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2409:28: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]
2409 | struct net_device *netdev;
| ^~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: In function 'nbl_dev_stop_net_dev':
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2746:33: warning: variable 'net_priv' set but not used [-Wunused-but-set-variable]
2746 | struct nbl_netdev_priv *net_priv;
| ^~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c: At top level:
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2926:6: warning: no previous prototype for 'nbl_dev_stop_common_dev' [-Wmissing-prototypes]
2926 | void nbl_dev_stop_common_dev(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c:2956:6: warning: no previous prototype for 'nbl_dev_suspend_common_dev' [-Wmissing-prototypes]
2956 | void nbl_dev_suspend_common_dev(struct nbl_adapter *adapter)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c: In function 'nbl_phy_disable_rx_err_report':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2850:20: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2850 | if (!pdev->aer_cap)
| ^~~~~~~
| ats_cap
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2853:42: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2853 | pci_read_config_byte(pdev, pdev->aer_cap + PCI_ERR_COR_MASK, &mask);
| ^~~~~~~
| ats_cap
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_hw_leonis/nbl_phy_leonis.c:2855:43: error: 'struct pci_dev' has no member named 'aer_cap'; did you mean 'ats_cap'?
2855 | pci_write_config_byte(pdev, pdev->aer_cap + PCI_ERR_COR_MASK, mask);
| ^~~~~~~
| ats_cap
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c: In function 'nbl_res_adminq_add_cmd_filter_res_write':
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
75 | struct nbl_res_fw_cmd_filter filter = {0};
| ^
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: note: (near initialization for 'filter')
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: error: invalid initializer
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:75:48: note: (near initialization for 'filter.<anonymous>')
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c: In function 'nbl_res_adminq_pt_filter_out':
drivers/net/ethernet/nebula-matrix/nbl/nbl_hw/nbl_adminq.c:1568:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1568 | int ret = 0;
| ^~~
cc1: some warnings being treated as errors
--
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:37:6: warning: no previous prototype for 'nbl_core_setup_product_ops' [-Wmissing-prototypes]
37 | void nbl_core_setup_product_ops(struct nbl_adapter *adapter, struct nbl_init_param *param,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c: In function 'nbl_core_remove':
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:123:33: warning: variable 'common' set but not used [-Wunused-but-set-variable]
123 | struct nbl_common_info *common;
| ^~~~~~
drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c: At top level:
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:429:12: warning: 'nbl_resume' defined but not used [-Wunused-function]
429 | static int nbl_resume(struct device *dev)
| ^~~~~~~~~~
>> drivers/net/ethernet/nebula-matrix/nbl/nbl_main.c:421:12: warning: 'nbl_suspend' defined but not used [-Wunused-function]
421 | static int nbl_suspend(struct device *dev)
| ^~~~~~~~~~~
vim +1806 drivers/net/ethernet/nebula-matrix/nbl/nbl_core/nbl_dev.c
bad535d287c9c1 Bennie Yan 2024-09-24 1770
bad535d287c9c1 Bennie Yan 2024-09-24 1771 static int nbl_dev_register_net(struct nbl_dev_mgt *dev_mgt,
bad535d287c9c1 Bennie Yan 2024-09-24 1772 struct nbl_register_net_result *register_result)
bad535d287c9c1 Bennie Yan 2024-09-24 1773 {
bad535d287c9c1 Bennie Yan 2024-09-24 1774 struct nbl_service_ops *serv_ops = NBL_DEV_MGT_TO_SERV_OPS(dev_mgt);
bad535d287c9c1 Bennie Yan 2024-09-24 1775 struct pci_dev *pdev = NBL_COMMON_TO_PDEV(NBL_DEV_MGT_TO_COMMON(dev_mgt));
bad535d287c9c1 Bennie Yan 2024-09-24 1776 struct resource *res;
bad535d287c9c1 Bennie Yan 2024-09-24 1777 u16 pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1778 u64 pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1779 u64 vf_bar_start, vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1780 u16 total_vfs, offset, stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1781 int pos;
bad535d287c9c1 Bennie Yan 2024-09-24 1782 u32 val;
bad535d287c9c1 Bennie Yan 2024-09-24 1783 struct nbl_register_net_param register_param = {0};
bad535d287c9c1 Bennie Yan 2024-09-24 1784 int ret = 0;
bad535d287c9c1 Bennie Yan 2024-09-24 1785
bad535d287c9c1 Bennie Yan 2024-09-24 1786 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1787 pf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1788 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0 + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1789 pf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1790
bad535d287c9c1 Bennie Yan 2024-09-24 1791 register_param.pf_bar_start = pf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1792
bad535d287c9c1 Bennie Yan 2024-09-24 1793 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
bad535d287c9c1 Bennie Yan 2024-09-24 1794 if (pos) {
bad535d287c9c1 Bennie Yan 2024-09-24 1795 pf_bdf = PCI_DEVID(pdev->bus->number, pdev->devfn);
bad535d287c9c1 Bennie Yan 2024-09-24 1796
bad535d287c9c1 Bennie Yan 2024-09-24 1797 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_OFFSET, &offset);
bad535d287c9c1 Bennie Yan 2024-09-24 1798 pci_read_config_word(pdev, pos + PCI_SRIOV_VF_STRIDE, &stride);
bad535d287c9c1 Bennie Yan 2024-09-24 1799 pci_read_config_word(pdev, pos + PCI_SRIOV_TOTAL_VF, &total_vfs);
bad535d287c9c1 Bennie Yan 2024-09-24 1800
bad535d287c9c1 Bennie Yan 2024-09-24 1801 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1802 vf_bar_start = (u64)(val & PCI_BASE_ADDRESS_MEM_MASK);
bad535d287c9c1 Bennie Yan 2024-09-24 1803 pci_read_config_dword(pdev, pos + PCI_SRIOV_BAR + 4, &val);
bad535d287c9c1 Bennie Yan 2024-09-24 1804 vf_bar_start |= ((u64)val << 32);
bad535d287c9c1 Bennie Yan 2024-09-24 1805
bad535d287c9c1 Bennie Yan 2024-09-24 @1806 res = &pdev->resource[PCI_IOV_RESOURCES];
bad535d287c9c1 Bennie Yan 2024-09-24 1807 vf_bar_size = resource_size(res);
bad535d287c9c1 Bennie Yan 2024-09-24 1808
bad535d287c9c1 Bennie Yan 2024-09-24 1809 if (total_vfs) {
bad535d287c9c1 Bennie Yan 2024-09-24 1810 register_param.pf_bdf = pf_bdf;
bad535d287c9c1 Bennie Yan 2024-09-24 1811 register_param.vf_bar_start = vf_bar_start;
bad535d287c9c1 Bennie Yan 2024-09-24 1812 register_param.vf_bar_size = vf_bar_size;
bad535d287c9c1 Bennie Yan 2024-09-24 1813 register_param.total_vfs = total_vfs;
bad535d287c9c1 Bennie Yan 2024-09-24 1814 register_param.offset = offset;
bad535d287c9c1 Bennie Yan 2024-09-24 1815 register_param.stride = stride;
bad535d287c9c1 Bennie Yan 2024-09-24 1816 }
bad535d287c9c1 Bennie Yan 2024-09-24 1817 }
bad535d287c9c1 Bennie Yan 2024-09-24 1818
bad535d287c9c1 Bennie Yan 2024-09-24 1819 ret = serv_ops->register_net(NBL_DEV_MGT_TO_SERV_PRIV(dev_mgt),
bad535d287c9c1 Bennie Yan 2024-09-24 1820 ®ister_param, register_result);
bad535d287c9c1 Bennie Yan 2024-09-24 1821
bad535d287c9c1 Bennie Yan 2024-09-24 1822 if (!register_result->tx_queue_num || !register_result->rx_queue_num)
bad535d287c9c1 Bennie Yan 2024-09-24 1823 return -EIO;
bad535d287c9c1 Bennie Yan 2024-09-24 1824
bad535d287c9c1 Bennie Yan 2024-09-24 1825 return ret;
bad535d287c9c1 Bennie Yan 2024-09-24 1826 }
bad535d287c9c1 Bennie Yan 2024-09-24 1827
:::::: The code at line 1806 was first introduced by commit
:::::: bad535d287c9c1056d99de3666be7da84de4a8fc Net:nbl_core: Add nbl_core-driver for nebula-matrix S1055AS series smart NIC.
:::::: TO: Bennie Yan <bennie.yan(a)nebula-matrix.com>
:::::: CC: Bennie Yan <bennie.yan(a)nebula-matrix.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki