Re: [linux-next:master] BUILD REGRESSION c503e3eec382ac708ee7adf874add37b77c5d312
Dan Williams wrote: > Bjorn Helgaas wrote: > > On Tue, Oct 31, 2023 at 04:35:23AM +0800, kernel test robot wrote: > > > tree/branch: > > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > > branch HEAD: c503e3eec382ac708ee7adf874add37b77c5d312 Add linux-next > > > specific files for 20231030 > > > > > > Error/Warning reports: > > > ... > > > https://lore.kernel.org/oe-kbuild-all/202310302206.pkr5ebdi-...@intel.com > > > > > Error/Warning: (recently discovered and may have been fixed) > > > > > > Warning: MAINTAINERS references a file that doesn't exist: > > > Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml > > > aarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xbbc): undefined > > > reference to `pci_print_aer' > > > ... > > > arch/riscv/include/asm/mmio.h:67:(.text+0xd66): undefined reference to > > > `pci_print_aer' > > > csky-linux-ld: pci.c:(.text+0x6e8): undefined reference to `pci_print_aer' > > > drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > > > drivers/cxl/core/pci.c:921:(.text+0xbc0): undefined reference to > > > `pci_print_aer' > > > ... > > > ld: drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > > > loongarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xa38): undefined > > > reference to `pci_print_aer' > > > pci.c:(.text+0x662): undefined reference to `pci_print_aer' > > > powerpc-linux-ld: pci.c:(.text+0xf10): undefined reference to > > > `pci_print_aer' > > > riscv64-linux-ld: pci.c:(.text+0x11ec): undefined reference to > > > `pci_print_aer' > > > > I have no idea about the above (and all the similar ones below); I > > assume they all have to do with > > https://lore.kernel.org/r/20231018171713.1883517-13-rrich...@amd.com > > Yes, I will get this fix folded into cxl/next: > > diff --git a/include/linux/aer.h b/include/linux/aer.h > index f6ea2f57d808..3db310c19ab7 100644 > --- a/include/linux/aer.h > +++ b/include/linux/aer.h > @@ -43,16 +43,20 @@ struct aer_capability_regs { > #if defined(CONFIG_PCIEAER) > int pci_aer_clear_nonfatal_status(struct pci_dev *dev); > int pcie_aer_is_native(struct pci_dev *dev); > +void pci_print_aer(struct pci_dev *dev, int aer_severity, > + struct aer_capability_regs *aer); > #else > static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev) > { > return -EINVAL; > } > static inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; } > +static inline void pci_print_aer(struct pci_dev *dev, int aer_severity, > +struct aer_capability_regs *aer) > +{ > +} > #endif > > -void pci_print_aer(struct pci_dev *dev, int aer_severity, > - struct aer_capability_regs *aer); > int cper_severity_to_aer(int cper_severity); > void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, >int severity, struct aer_capability_regs *aer_regs); Actually, no this was my fault for inadvertantly including this patch in the branch: http://lore.kernel.org/r/653c7eb29265c_244c8f29...@dwillia2-xfh.jf.intel.com.notmuch ...which had the desired effect, but at the cost of thrashing linux-next. Apologies for that.
Re: [linux-next:master] BUILD REGRESSION c503e3eec382ac708ee7adf874add37b77c5d312
Bjorn Helgaas wrote: > On Tue, Oct 31, 2023 at 04:35:23AM +0800, kernel test robot wrote: > > tree/branch: > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > branch HEAD: c503e3eec382ac708ee7adf874add37b77c5d312 Add linux-next > > specific files for 20231030 > > > > Error/Warning reports: > > ... > > https://lore.kernel.org/oe-kbuild-all/202310302206.pkr5ebdi-...@intel.com > > > Error/Warning: (recently discovered and may have been fixed) > > > > Warning: MAINTAINERS references a file that doesn't exist: > > Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml > > aarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xbbc): undefined > > reference to `pci_print_aer' > > ... > > arch/riscv/include/asm/mmio.h:67:(.text+0xd66): undefined reference to > > `pci_print_aer' > > csky-linux-ld: pci.c:(.text+0x6e8): undefined reference to `pci_print_aer' > > drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > > drivers/cxl/core/pci.c:921:(.text+0xbc0): undefined reference to > > `pci_print_aer' > > ... > > ld: drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > > loongarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xa38): undefined > > reference to `pci_print_aer' > > pci.c:(.text+0x662): undefined reference to `pci_print_aer' > > powerpc-linux-ld: pci.c:(.text+0xf10): undefined reference to > > `pci_print_aer' > > riscv64-linux-ld: pci.c:(.text+0x11ec): undefined reference to > > `pci_print_aer' > > I have no idea about the above (and all the similar ones below); I > assume they all have to do with > https://lore.kernel.org/r/20231018171713.1883517-13-rrich...@amd.com Yes, I will get this fix folded into cxl/next: diff --git a/include/linux/aer.h b/include/linux/aer.h index f6ea2f57d808..3db310c19ab7 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -43,16 +43,20 @@ struct aer_capability_regs { #if defined(CONFIG_PCIEAER) int pci_aer_clear_nonfatal_status(struct pci_dev *dev); int pcie_aer_is_native(struct pci_dev *dev); +void pci_print_aer(struct pci_dev *dev, int aer_severity, + struct aer_capability_regs *aer); #else static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev) { return -EINVAL; } static inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; } +static inline void pci_print_aer(struct pci_dev *dev, int aer_severity, +struct aer_capability_regs *aer) +{ +} #endif -void pci_print_aer(struct pci_dev *dev, int aer_severity, - struct aer_capability_regs *aer); int cper_severity_to_aer(int cper_severity); void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, int severity, struct aer_capability_regs *aer_regs);
Re: [linux-next:master] BUILD REGRESSION c503e3eec382ac708ee7adf874add37b77c5d312
On Tue, Oct 31, 2023 at 04:35:23AM +0800, kernel test robot wrote: > tree/branch: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > branch HEAD: c503e3eec382ac708ee7adf874add37b77c5d312 Add linux-next > specific files for 20231030 > > Error/Warning reports: > ... > https://lore.kernel.org/oe-kbuild-all/202310302206.pkr5ebdi-...@intel.com > Error/Warning: (recently discovered and may have been fixed) > > Warning: MAINTAINERS references a file that doesn't exist: > Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml > aarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xbbc): undefined > reference to `pci_print_aer' > ... > arch/riscv/include/asm/mmio.h:67:(.text+0xd66): undefined reference to > `pci_print_aer' > csky-linux-ld: pci.c:(.text+0x6e8): undefined reference to `pci_print_aer' > drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > drivers/cxl/core/pci.c:921:(.text+0xbc0): undefined reference to > `pci_print_aer' > ... > ld: drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' > loongarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xa38): undefined > reference to `pci_print_aer' > pci.c:(.text+0x662): undefined reference to `pci_print_aer' > powerpc-linux-ld: pci.c:(.text+0xf10): undefined reference to `pci_print_aer' > riscv64-linux-ld: pci.c:(.text+0x11ec): undefined reference to `pci_print_aer' I have no idea about the above (and all the similar ones below); I assume they all have to do with https://lore.kernel.org/r/20231018171713.1883517-13-rrich...@amd.com > Unverified Error/Warning (likely false positive, please contact us if > interested): > > drivers/pci/controller/dwc/pcie-rcar-gen4.c:439:15: warning: cast to smaller > integer type 'enum dw_pcie_device_mode' from 'const void *' > [-Wvoid-pointer-to-enum-cast] Safe but annoying. Yoshihiro, can you fix this by adding structs for the of_device_id.data member instead of casting DW_PCIE_RC_TYPE and DW_PCIE_EP_TYPE? Examples here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pci-dra7xx.c?id=v6.6#n557 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pci-keystone.c?id=v6.6#n1069 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pcie-artpec6.c?id=v6.6#n452 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pcie-designware-plat.c?id=v6.6#n159 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pcie-keembay.c?id=v6.6#n437 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pcie-tegra194.c?id=v6.6#n2431 Siddharth, since you're looking at keystone v3.65, it looks to me like DW_PCIE_VER_365A is currently broken because ks_pcie_rc_of_data doesn't set .mode, so it defaults to zero, and it looks like we should end up at the INVALID device type case here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/dwc/pci-keystone.c?id=v6.6#n1285 > |-- arm64-buildonly-randconfig-r003-20220511 > | `-- > aarch64-linux-ld:drivers-cxl-core-pci.c:(.text):undefined-reference-to-pci_print_aer > |-- csky-randconfig-001-20231030 > | |-- csky-linux-ld:pci.c:(.text):undefined-reference-to-pci_print_aer > | `-- pci.c:(.text):undefined-reference-to-pci_print_aer > |-- i386-randconfig-141-20231030 > | |-- ld:drivers-cxl-core-pci.c:undefined-reference-to-pci_print_aer > |-- loongarch-randconfig-r014-20230225 > | `-- drivers-cxl-core-pci.c:(.text):undefined-reference-to-pci_print_aer > |-- loongarch-randconfig-r032-20220926 > | `-- > loongarch64-linux-ld:drivers-cxl-core-pci.c:(.text):undefined-reference-to-pci_print_aer > |-- powerpc-randconfig-003-20231016 > | `-- powerpc-linux-ld:pci.c:(.text):undefined-reference-to-pci_print_aer > |-- riscv-randconfig-r002-20220124 > | `-- > arch-riscv-include-asm-mmio.h:(.text):undefined-reference-to-pci_print_aer > |-- riscv-randconfig-r011-20220606 > | `-- riscv64-linux-ld:pci.c:(.text):undefined-reference-to-pci_print_aer > |-- x86_64-randconfig-x052-20230810 > | `-- drivers-cxl-core-pci.c:undefined-reference-to-pci_print_aer
[linux-next:master] BUILD REGRESSION c503e3eec382ac708ee7adf874add37b77c5d312
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: c503e3eec382ac708ee7adf874add37b77c5d312 Add linux-next specific files for 20231030 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202310052201.anvbpgpr-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310121157.arky475m-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310171905.azfrkoid-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310261059.usl6vstf-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310302025.pokm9ves-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310302043.as36ufed-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310302206.pkr5ebdi-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310302338.mppqar10-...@intel.com https://lore.kernel.org/oe-kbuild-all/202310310055.rdwlonpr-...@intel.com Error/Warning: (recently discovered and may have been fixed) Warning: MAINTAINERS references a file that doesn't exist: Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml aarch64-linux-ld: drivers/cxl/core/pci.c:921:(.text+0xbbc): undefined reference to `pci_print_aer' arch/loongarch/kvm/mmu.c:411:6: warning: no previous prototype for 'kvm_unmap_gfn_range' [-Wmissing-prototypes] arch/loongarch/kvm/mmu.c:420:48: error: invalid use of undefined type 'struct kvm_gfn_range' arch/loongarch/kvm/mmu.c:422:1: error: control reaches end of non-void function [-Werror=return-type] arch/loongarch/kvm/mmu.c:424:6: warning: no previous prototype for 'kvm_set_spte_gfn' [-Wmissing-prototypes] arch/loongarch/kvm/mmu.c:456:6: warning: no previous prototype for 'kvm_age_gfn' [-Wmissing-prototypes] arch/loongarch/kvm/mmu.c:468:6: warning: no previous prototype for 'kvm_test_age_gfn' [-Wmissing-prototypes] arch/loongarch/kvm/mmu.c:787:24: error: 'struct kvm' has no member named 'mmu_invalidate_seq'; did you mean 'mn_invalidate_lock'? arch/loongarch/kvm/mmu.c:810:13: error: implicit declaration of function 'mmu_invalidate_retry_hva' [-Werror=implicit-function-declaration] arch/riscv/include/asm/mmio.h:67:(.text+0xd66): undefined reference to `pci_print_aer' csky-linux-ld: pci.c:(.text+0x6e8): undefined reference to `pci_print_aer' drivers/cxl/core/pci.c:921: undefined reference to `pci_print_aer' drivers/cxl/core/pci.c:921:(.text+0xbc0): undefined reference to `pci_print_aer' drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1105 dcn35_clk_mgr_construct() warn: variable dereferenced before check 'ctx->dc_bios' (see line 1032) drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1105 dcn35_clk_mgr_construct() warn: variable dereferenced before check 'ctx->dc_bios->integrated_info' (see line 1032) drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c:286:45: warning: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c:286:52: warning: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu14/smu_v14_0.c:72:45: warning: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu14/smu_v14_0.c:72:52: warning: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Wformat-truncation=] drivers/hwtracing/coresight/coresight-etm4x-core.c:1183:24: warning: result of comparison of constant 256 with expression of type 'u8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare] include/linux/atomic/atomic-arch-fallback.h:384:27: error: implicit declaration of function 'arch_cmpxchg_local'; did you mean 'raw_cmpxchg_local'? [-Werror=implicit-function-declaration] include/linux/compiler.h:212:29: error: pasting "__addressable_" and "(" does not give a valid preprocessing token include/linux/export.h:47:9: error: pasting "__export_symbol_" and "(" does not give a valid preprocessing token include/linux/stddef.h:8:15: error: expected declaration specifiers or '...' before '(' token include/linux/stddef.h:8:16: error: expected identifier or '(' before 'void' include/linux/stddef.h:8:23: error: expected ')' before numeric constant include/linux/stddef.h:8:24: error: pasting ")" and "218" does not give a valid preprocessing token kernel/bpf/task_iter.c:917:29: error: use of undeclared identifier 'CSS_TASK_ITER_THREADED' kernel/bpf/task_iter.c:917:7: error: use of undeclared identifier 'CSS_TASK_ITER_PROCS' kernel/bpf/task_iter.c:919:14: error: 'CSS_TASK_ITER_PROCS' undeclared (first use in this function) kernel/bpf/task_iter.c:919:36: error: 'CSS_TASK_ITER_THREADED' undeclared (first use in this function) kernel/bpf/task_iter.c:925:46: error: invalid application of 'sizeof' to an incomplete type 'struct css_task_iter'