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:android14-6.1 94/120] arch/arm64/kernel/hibernate.c:123:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr'
Date: Sat, 10 Jun 2023 07:05:39 +0800	[thread overview]
Message-ID: <202306100626.RIDypqsK-lkp@intel.com> (raw)

tree:   https://android.googlesource.com/kernel/common android14-6.1
head:   9b16d612bf4f096520aca2a89654edcf39f4cf2e
commit: d7e1f4f02153646cd5514cc134fbe9c1e1178869 [94/120] ANDROID: vendor hooks: Add hooks to support bootloader based hibernation
config: arm64-buildonly-randconfig-r004-20230610 (https://download.01.org/0day-ci/archive/20230610/202306100626.RIDypqsK-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android14-6.1
        git checkout d7e1f4f02153646cd5514cc134fbe9c1e1178869
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/

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/202306100626.RIDypqsK-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/arm64/kernel/hibernate.c:123:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr'
     123 |         trace_android_vh_save_cpu_resume(&hdr->android_vendor_data1,
         |                                           ~~~  ^
   1 error generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for WIRELESS_EXT
   Depends on [n]: NET [=y] && WIRELESS [=n]
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]
   WARNING: unmet direct dependencies detected for WEXT_CORE
   Depends on [n]: NET [=y] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y])
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]
   WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
   Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
   Selected by [y]:
   - GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for WEXT_PROC
   Depends on [n]: NET [=y] && WIRELESS [=n] && PROC_FS [=y] && WEXT_CORE [=y]
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]
   WARNING: unmet direct dependencies detected for WEXT_PRIV
   Depends on [n]: NET [=y] && WIRELESS [=n]
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]
   WARNING: unmet direct dependencies detected for WEXT_SPY
   Depends on [n]: NET [=y] && WIRELESS [=n]
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]


vim +123 arch/arm64/kernel/hibernate.c

   111	
   112	int arch_hibernation_header_save(void *addr, unsigned int max_size)
   113	{
   114		struct arch_hibernate_hdr *hdr = addr;
   115	
   116		if (max_size < sizeof(*hdr))
   117			return -EOVERFLOW;
   118	
   119		arch_hdr_invariants(&hdr->invariants);
   120		hdr->ttbr1_el1		= __pa_symbol(swapper_pg_dir);
   121		hdr->reenter_kernel	= _cpu_resume;
   122	
 > 123		trace_android_vh_save_cpu_resume(&hdr->android_vendor_data1,
   124							__pa(cpu_resume));
   125	
   126		/* We can't use __hyp_get_vectors() because kvm may still be loaded */
   127		if (el2_reset_needed())
   128			hdr->__hyp_stub_vectors = __pa_symbol(__hyp_stub_vectors);
   129		else
   130			hdr->__hyp_stub_vectors = 0;
   131	
   132		/* Save the mpidr of the cpu we called cpu_suspend() on... */
   133		if (sleep_cpu < 0) {
   134			pr_err("Failing to hibernate on an unknown CPU.\n");
   135			return -ENODEV;
   136		}
   137		hdr->sleep_cpu_mpidr = cpu_logical_map(sleep_cpu);
   138		pr_info("Hibernating on CPU %d [mpidr:0x%llx]\n", sleep_cpu,
   139			hdr->sleep_cpu_mpidr);
   140	
   141		return 0;
   142	}
   143	EXPORT_SYMBOL(arch_hibernation_header_save);
   144	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2023-06-09 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-09 23:05 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-07 19:34 [android-common:android14-6.1 94/120] arch/arm64/kernel/hibernate.c:123:41: error: no member named 'android_vendor_data1' in 'struct arch_hibernate_hdr' kernel test robot

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=202306100626.RIDypqsK-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.