* [android-common:android16-6.12 1/4] arch/arm64/kernel/hibernate.c:122:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr'
@ 2024-11-22 23:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-22 23:31 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 3a7ac7a6bbe12c8167c3f06898da00cf72a00c3d
commit: 4f8ffa0f055581b1f71a2abb6abd409022f47658 [1/4] ANDROID: vendor hooks: Add hooks to support bootloader based hibernation
config: arm64-randconfig-001-20241123 (https://download.01.org/0day-ci/archive/20241123/202411230753.tsdnkWCy-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241123/202411230753.tsdnkWCy-lkp@intel.com/reproduce)
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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411230753.tsdnkWCy-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm64/kernel/hibernate.c:14:
In file included from include/linux/kvm_host.h:16:
In file included from include/linux/mm.h:2213:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kernel/hibernate.c:122:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr'
122 | trace_android_vh_save_cpu_resume(&hdr->android_vendor_data1,
| ~~~ ^
4 warnings and 1 error generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_SOC_CONFIGS [=y]
WARNING: unmet direct dependencies detected for IOMMU_IO_PGTABLE_LPAE
Depends on [n]: IOMMU_SUPPORT [=n] && (ARM || ARM64 [=y] || COMPILE_TEST [=y]) && !GENERIC_ATOMIC64 [=n]
Selected by [y]:
- GKI_HIDDEN_QCOM_CONFIGS [=y] && ARCH_QCOM [=y]
WARNING: unmet direct dependencies detected for SND_JACK
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_VMASTER
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV
Depends on [n]: SOUND [=n] && SND [=n] && SND_JACK [=y]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
WARNING: unmet direct dependencies detected for SND_PCM_ELD
Depends on [n]: SOUND [=n] && SND [=n]
Selected by [y]:
- GKI_HIDDEN_SND_CONFIGS [=y]
vim +122 arch/arm64/kernel/hibernate.c
110
111 int arch_hibernation_header_save(void *addr, unsigned int max_size)
112 {
113 struct arch_hibernate_hdr *hdr = addr;
114
115 if (max_size < sizeof(*hdr))
116 return -EOVERFLOW;
117
118 arch_hdr_invariants(&hdr->invariants);
119 hdr->ttbr1_el1 = __pa_symbol(swapper_pg_dir);
120 hdr->reenter_kernel = _cpu_resume;
121
> 122 trace_android_vh_save_cpu_resume(&hdr->android_vendor_data1,
123 __pa(cpu_resume));
124
125 /* We can't use __hyp_get_vectors() because kvm may still be loaded */
126 if (el2_reset_needed())
127 hdr->__hyp_stub_vectors = __pa_symbol(__hyp_stub_vectors);
128 else
129 hdr->__hyp_stub_vectors = 0;
130
131 /* Save the mpidr of the cpu we called cpu_suspend() on... */
132 if (sleep_cpu < 0) {
133 pr_err("Failing to hibernate on an unknown CPU.\n");
134 return -ENODEV;
135 }
136 hdr->sleep_cpu_mpidr = cpu_logical_map(sleep_cpu);
137 pr_info("Hibernating on CPU %d [mpidr:0x%llx]\n", sleep_cpu,
138 hdr->sleep_cpu_mpidr);
139
140 return 0;
141 }
142 EXPORT_SYMBOL(arch_hibernation_header_save);
143
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-22 23:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 23:31 [android-common:android16-6.12 1/4] arch/arm64/kernel/hibernate.c:122:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.