Re: [PATCH v8 14/15] x86: Secure Launch late initcall platform module

From: kernel test robot
Date: Sat Feb 17 2024 - 02:54:55 EST


Hi Ross,

kernel test robot noticed the following build errors:

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus herbert-cryptodev-2.6/master herbert-crypto-2.6/master linus/master v6.8-rc4 next-20240216]
[cannot apply to tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Ross-Philipson/x86-boot-Place-kernel_info-at-a-fixed-offset/20240215-064712
base: char-misc/char-misc-testing
patch link: https://lore.kernel.org/r/20240214221847.2066632-15-ross.philipson%40oracle.com
patch subject: [PATCH v8 14/15] x86: Secure Launch late initcall platform module
config: x86_64-randconfig-r061-20240216 (https://download.01.org/0day-ci/archive/20240217/202402171536.dNnLrhB1-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240217/202402171536.dNnLrhB1-lkp@xxxxxxxxx/reproduce)

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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402171536.dNnLrhB1-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

arch/x86/kernel/slmodule.c: In function 'slaunch_pcr_extend':
>> arch/x86/kernel/slmodule.c:471:14: error: implicit declaration of function 'tpm_preferred_locality' [-Werror=implicit-function-declaration]
471 | if (!tpm_preferred_locality(tpm, 2))
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +/tpm_preferred_locality +471 arch/x86/kernel/slmodule.c

461
462 static void slaunch_pcr_extend(void __iomem *txt)
463 {
464 struct tpm_chip *tpm;
465
466 tpm = tpm_default_chip();
467 if (!tpm)
468 slaunch_txt_reset(txt, "Could not get default TPM chip\n",
469 SL_ERROR_TPM_INIT);
470
> 471 if (!tpm_preferred_locality(tpm, 2))
472 slaunch_txt_reset(txt, "Could not set TPM chip locality 2\n",
473 SL_ERROR_TPM_INIT);
474
475 if (evtlog20)
476 slaunch_tpm20_extend(tpm, txt);
477 else
478 slaunch_tpm12_extend(tpm, txt);
479
480 tpm_preferred_locality(tpm, 0);
481 }
482

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