public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jason A. Donenfeld" <zx2c4@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, zx2c4@kernel.org,
	linux-kernel@vger.kernel.org
Subject: [crng-random:tip 1/2] arch/x86/kernel/kexec-bzimage64.c:219:14: error: no member named 'ima_buffer_size' in 'struct kimage'
Date: Sun, 10 Jul 2022 07:20:54 +0800	[thread overview]
Message-ID: <202207100728.6J1p2SEd-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tip
head:   532de96923f9c8e0ec456c1b91499327579c2aba
commit: acc53fc31a5e3d990d8241a09438d98b1a6aee1f [1/2] x86/setup: Use rng seeds from setup_data
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220710/202207100728.6J1p2SEd-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 77a38f6839980bfac61babb40d83772c51427011)
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/crng/random.git/commit/?id=acc53fc31a5e3d990d8241a09438d98b1a6aee1f
        git remote add crng-random git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
        git fetch --no-tags crng-random tip
        git checkout acc53fc31a5e3d990d8241a09438d98b1a6aee1f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/x86/kernel/kexec-bzimage64.c:219:14: error: no member named 'ima_buffer_size' in 'struct kimage'
           if (!image->ima_buffer_size)
                ~~~~~  ^
>> arch/x86/kernel/kexec-bzimage64.c:226:21: error: no member named 'ima_buffer_addr' in 'struct kimage'
           ima->addr = image->ima_buffer_addr;
                       ~~~~~  ^
   arch/x86/kernel/kexec-bzimage64.c:227:21: error: no member named 'ima_buffer_size' in 'struct kimage'
           ima->size = image->ima_buffer_size;
                       ~~~~~  ^
   3 errors generated.


vim +219 arch/x86/kernel/kexec-bzimage64.c

6a2c20e7d8900ed Vivek Goyal       2014-08-08  209  
b69a2afd5afce9b Jonathan McDowell 2022-06-30  210  static void
b69a2afd5afce9b Jonathan McDowell 2022-06-30  211  setup_ima_state(const struct kimage *image, struct boot_params *params,
b69a2afd5afce9b Jonathan McDowell 2022-06-30  212  		unsigned long params_load_addr,
b69a2afd5afce9b Jonathan McDowell 2022-06-30  213  		unsigned int ima_setup_data_offset)
b69a2afd5afce9b Jonathan McDowell 2022-06-30  214  {
b69a2afd5afce9b Jonathan McDowell 2022-06-30  215  	struct setup_data *sd = (void *)params + ima_setup_data_offset;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  216  	unsigned long setup_data_phys;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  217  	struct ima_setup_data *ima;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  218  
b69a2afd5afce9b Jonathan McDowell 2022-06-30 @219  	if (!image->ima_buffer_size)
b69a2afd5afce9b Jonathan McDowell 2022-06-30  220  		return;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  221  
b69a2afd5afce9b Jonathan McDowell 2022-06-30  222  	sd->type = SETUP_IMA;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  223  	sd->len = sizeof(*ima);
b69a2afd5afce9b Jonathan McDowell 2022-06-30  224  
b69a2afd5afce9b Jonathan McDowell 2022-06-30  225  	ima = (void *)sd + sizeof(struct setup_data);
b69a2afd5afce9b Jonathan McDowell 2022-06-30 @226  	ima->addr = image->ima_buffer_addr;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  227  	ima->size = image->ima_buffer_size;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  228  
b69a2afd5afce9b Jonathan McDowell 2022-06-30  229  	/* Add setup data */
b69a2afd5afce9b Jonathan McDowell 2022-06-30  230  	setup_data_phys = params_load_addr + ima_setup_data_offset;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  231  	sd->next = params->hdr.setup_data;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  232  	params->hdr.setup_data = setup_data_phys;
b69a2afd5afce9b Jonathan McDowell 2022-06-30  233  }
b69a2afd5afce9b Jonathan McDowell 2022-06-30  234  

:::::: The code at line 219 was first introduced by commit
:::::: b69a2afd5afce9bf6d56e349d6ab592c916e20f2 x86/kexec: Carry forward IMA measurement log on kexec

:::::: TO: Jonathan McDowell <noodles@fb.com>
:::::: CC: Borislav Petkov <bp@suse.de>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-09 23:21 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=202207100728.6J1p2SEd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=zx2c4@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox