From: kernel test robot <lkp@intel.com>
To: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Ard Biesheuvel <ardb@kernel.org>
Subject: [linux-next:master 6799/11234] drivers/firmware/efi/libstub/efi-stub-helper.c:649:6: warning: no previous prototype for 'efi_measure_initrd'
Date: Fri, 7 Jan 2022 04:09:52 +0800 [thread overview]
Message-ID: <202201070448.597t6fi7-lkp@intel.com> (raw)
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
reply other threads:[~2022-01-06 20:10 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=202201070448.597t6fi7-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=ilias.apalodimas@linaro.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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