From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7339C433EF for ; Thu, 6 Jan 2022 20:10:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 49D256B0072; Thu, 6 Jan 2022 15:10:33 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 44D556B0073; Thu, 6 Jan 2022 15:10:33 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2ED546B0074; Thu, 6 Jan 2022 15:10:33 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0137.hostedemail.com [216.40.44.137]) by kanga.kvack.org (Postfix) with ESMTP id 1B5916B0072 for ; Thu, 6 Jan 2022 15:10:33 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id CC99A8248D52 for ; Thu, 6 Jan 2022 20:10:32 +0000 (UTC) X-FDA: 79000954704.23.5D30377 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf02.hostedemail.com (Postfix) with ESMTP id B3D808001A for ; Thu, 6 Jan 2022 20:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641499831; x=1673035831; h=date:from:to:cc:subject:message-id:mime-version; bh=obxJ6MwkEX/3hwSid3NVCHQnnRUtH3h1Hq98Ryu5oSs=; b=aVR9HTJ6R4Jbo8VQFQUCnEDWWQThWuINAE8MiWkrI6PmnFgc1479hGkN P8El18KQpjghSBoWQ+2R9uv3TstVeKfRpDD5wHXZGOGYp9hGH1MMXduNK Je7W/K2Er/srehaxe6WJFPHu2YLY5BhEvQbj6/7+wMr2W0Qno3g2XKEvY XA4ItfpygA1kO305KwrTB1n5teCHL59g9BL0NQheueQq5ld8OMzLhZAQs u5XY9XWi/19G4k02OhgvkbhviCT2P/D/y0RVXWLqmy5jEWKfXx001yor3 37UhZgnaXzaOoTgc0BQLNjdJrMIAAooKSM7QIx60OkkCjmvoGqOBqqBL0 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="329072884" X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="329072884" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2022 12:10:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="513524944" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 06 Jan 2022 12:10:28 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n5Z5g-000HvB-4z; Thu, 06 Jan 2022 20:10:28 +0000 Date: Fri, 7 Jan 2022 04:09:52 +0800 From: kernel test robot To: Ilias Apalodimas Cc: kbuild-all@lists.01.org, Linux Memory Management List , Ard Biesheuvel Subject: [linux-next:master 6799/11234] drivers/firmware/efi/libstub/efi-stub-helper.c:649:6: warning: no previous prototype for 'efi_measure_initrd' Message-ID: <202201070448.597t6fi7-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: B3D808001A X-Stat-Signature: nbmiqgx6nrhhpudbhzi37of88sonbqo7 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=aVR9HTJ6; spf=none (imf02.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam10 X-HE-Tag: 1641499824-72925 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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