* [linux-next:master 6799/11234] drivers/firmware/efi/libstub/efi-stub-helper.c:649:6: warning: no previous prototype for 'efi_measure_initrd'
@ 2022-01-06 20:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-06 20:09 UTC (permalink / raw)
To: Ilias Apalodimas; +Cc: kbuild-all, Linux Memory Management List, Ard Biesheuvel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 3770333b3f8cb7c9110889853afaa49777c26ea7
commit: 21e42b00f779ceeac0eb022c747d8f0953805897 [6799/11234] efi/libstub: measure loaded initrd info into the TPM
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220107/202201070448.597t6fi7-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/next/linux-next.git/commit/?id=21e42b00f779ceeac0eb022c747d8f0953805897
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 21e42b00f779ceeac0eb022c747d8f0953805897
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/firmware/efi/libstub/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/firmware/efi/libstub/efi-stub-helper.c:649:6: warning: no previous prototype for 'efi_measure_initrd' [-Wmissing-prototypes]
649 | void efi_measure_initrd(unsigned long load_addr, unsigned long load_size)
| ^~~~~~~~~~~~~~~~~~
vim +/efi_measure_initrd +649 drivers/firmware/efi/libstub/efi-stub-helper.c
648
> 649 void efi_measure_initrd(unsigned long load_addr, unsigned long load_size)
650 {
651 efi_guid_t tcg2_guid = EFI_TCG2_PROTOCOL_GUID;
652 efi_tcg2_protocol_t *tcg2 = NULL;
653 efi_status_t status;
654
655 efi_bs_call(locate_protocol, &tcg2_guid, NULL, (void **)&tcg2);
656 if (tcg2) {
657 status = efi_call_proto(tcg2, hash_log_extend_event,
658 0, load_addr, load_size,
659 &initrd_tcg2_event.event_data);
660 if (status != EFI_SUCCESS)
661 efi_warn("Failed to measure initrd data: 0x%lx\n",
662 status);
663 else
664 efi_info("Measured initrd data into PCR %d\n",
665 initrd_tcg2_event.event_data.event_header.pcr_index);
666 }
667 }
668
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-06 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 20:09 [linux-next:master 6799/11234] drivers/firmware/efi/libstub/efi-stub-helper.c:649:6: warning: no previous prototype for 'efi_measure_initrd' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox