All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Sat, 23 Nov 2024 07:31:50 +0800	[thread overview]
Message-ID: <202411230753.tsdnkWCy-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-11-22 23:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202411230753.tsdnkWCy-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.