tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: 19c67c2579a54d65fea2ce802328ac3d0547b95c commit: c097c05812636fef5d73b8a68444e4d885559929 [12/27] ACPI: Drop parent field from struct acpi_device config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220824/202208242233.FPqG2d3S-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=c097c05812636fef5d73b8a68444e4d885559929 git remote add rafael-pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git git fetch --no-tags rafael-pm bleeding-edge git checkout c097c05812636fef5d73b8a68444e4d885559929 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/acpi/acpi_amba.c: In function 'amba_handler_attach': >> drivers/acpi/acpi_amba.c:100:17: error: 'struct acpi_device' has no member named 'parent' 100 | if (adev->parent) | ^~ drivers/acpi/acpi_amba.c:101:68: error: 'struct acpi_device' has no member named 'parent' 101 | dev->dev.parent = acpi_get_first_physical_node(adev->parent); | ^~ -- drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_acpi_get_cpus': >> drivers/perf/arm_dsu_pmu.c:657:33: error: 'struct acpi_device' has no member named 'parent' 657 | acpi_dev->parent == ACPI_COMPANION(dev)->parent) | ^~ drivers/perf/arm_dsu_pmu.c:657:64: error: 'struct acpi_device' has no member named 'parent' 657 | acpi_dev->parent == ACPI_COMPANION(dev)->parent) | ^~ -- drivers/perf/qcom_l3_pmu.c: In function 'qcom_l3_cache_pmu_probe': >> drivers/perf/qcom_l3_pmu.c:745:31: error: 'struct acpi_device' has no member named 'parent' 745 | acpi_dev->parent->pnp.unique_id, acpi_dev->pnp.unique_id); | ^~ vim +100 drivers/acpi/acpi_amba.c 6ce2e188a6ae33 Graeme Gregory 2016-01-20 47 6ce2e188a6ae33 Graeme Gregory 2016-01-20 48 static int amba_handler_attach(struct acpi_device *adev, 6ce2e188a6ae33 Graeme Gregory 2016-01-20 49 const struct acpi_device_id *id) 6ce2e188a6ae33 Graeme Gregory 2016-01-20 50 { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 51 struct amba_device *dev; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 52 struct resource_entry *rentry; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 53 struct list_head resource_list; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 54 bool address_found = false; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 55 int irq_no = 0; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 56 int ret; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 57 6ce2e188a6ae33 Graeme Gregory 2016-01-20 58 /* If the ACPI node already has a physical device attached, skip it. */ 6ce2e188a6ae33 Graeme Gregory 2016-01-20 59 if (adev->physical_node_count) 6ce2e188a6ae33 Graeme Gregory 2016-01-20 60 return 0; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 61 6ce2e188a6ae33 Graeme Gregory 2016-01-20 62 dev = amba_device_alloc(dev_name(&adev->dev), 0, 0); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 63 if (!dev) { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 64 dev_err(&adev->dev, "%s(): amba_device_alloc() failed\n", 6ce2e188a6ae33 Graeme Gregory 2016-01-20 65 __func__); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 66 return -ENOMEM; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 67 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 68 6ce2e188a6ae33 Graeme Gregory 2016-01-20 69 INIT_LIST_HEAD(&resource_list); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 70 ret = acpi_dev_get_resources(adev, &resource_list, NULL, NULL); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 71 if (ret < 0) 6ce2e188a6ae33 Graeme Gregory 2016-01-20 72 goto err_free; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 73 6ce2e188a6ae33 Graeme Gregory 2016-01-20 74 list_for_each_entry(rentry, &resource_list, node) { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 75 switch (resource_type(rentry->res)) { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 76 case IORESOURCE_MEM: 6ce2e188a6ae33 Graeme Gregory 2016-01-20 77 if (!address_found) { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 78 dev->res = *rentry->res; 7718629432676b Liguang Zhang 2021-06-29 79 dev->res.name = dev_name(&dev->dev); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 80 address_found = true; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 81 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 82 break; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 83 case IORESOURCE_IRQ: 6ce2e188a6ae33 Graeme Gregory 2016-01-20 84 if (irq_no < AMBA_NR_IRQS) 6ce2e188a6ae33 Graeme Gregory 2016-01-20 85 dev->irq[irq_no++] = rentry->res->start; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 86 break; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 87 default: 6ce2e188a6ae33 Graeme Gregory 2016-01-20 88 dev_warn(&adev->dev, "Invalid resource\n"); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 89 break; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 90 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 91 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 92 6ce2e188a6ae33 Graeme Gregory 2016-01-20 93 acpi_dev_free_resource_list(&resource_list); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 94 6ce2e188a6ae33 Graeme Gregory 2016-01-20 95 /* 6ce2e188a6ae33 Graeme Gregory 2016-01-20 96 * If the ACPI node has a parent and that parent has a physical device 6ce2e188a6ae33 Graeme Gregory 2016-01-20 97 * attached to it, that physical device should be the parent of 6ce2e188a6ae33 Graeme Gregory 2016-01-20 98 * the amba device we are about to create. 6ce2e188a6ae33 Graeme Gregory 2016-01-20 99 */ 6ce2e188a6ae33 Graeme Gregory 2016-01-20 @100 if (adev->parent) 6ce2e188a6ae33 Graeme Gregory 2016-01-20 101 dev->dev.parent = acpi_get_first_physical_node(adev->parent); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 102 6ce2e188a6ae33 Graeme Gregory 2016-01-20 103 ACPI_COMPANION_SET(&dev->dev, adev); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 104 6ce2e188a6ae33 Graeme Gregory 2016-01-20 105 ret = amba_device_add(dev, &iomem_resource); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 106 if (ret) { 6ce2e188a6ae33 Graeme Gregory 2016-01-20 107 dev_err(&adev->dev, "%s(): amba_device_add() failed (%d)\n", 6ce2e188a6ae33 Graeme Gregory 2016-01-20 108 __func__, ret); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 109 goto err_free; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 110 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 111 6ce2e188a6ae33 Graeme Gregory 2016-01-20 112 return 1; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 113 6ce2e188a6ae33 Graeme Gregory 2016-01-20 114 err_free: 6ce2e188a6ae33 Graeme Gregory 2016-01-20 115 amba_device_put(dev); 6ce2e188a6ae33 Graeme Gregory 2016-01-20 116 return ret; 6ce2e188a6ae33 Graeme Gregory 2016-01-20 117 } 6ce2e188a6ae33 Graeme Gregory 2016-01-20 118 :::::: The code at line 100 was first introduced by commit :::::: 6ce2e188a6ae339340d9bbf5bb0b81db20454353 ACPI / scan: AMBA bus probing support :::::: TO: Graeme Gregory <graeme.gregory@xxxxxxxxxx> :::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx> -- 0-DAY CI Kernel Test Service https://01.org/lkp