* [jarkko-tpmdd:next 1/1] include/linux/tpm.h:285:2: error: redefinition of enumerator 'TPM_CHIP_FLAG_FIRMWARE_UPGRADE'
@ 2023-04-27 16:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-27 16:09 UTC (permalink / raw)
To: Jarkko Sakkinen; +Cc: llvm, oe-kbuild-all
tree: git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git next
head: e2f14081c68395f0b0f9072bbf5e56450b1cb3f8
commit: e2f14081c68395f0b0f9072bbf5e56450b1cb3f8 [1/1] tpm: Re-enable TPM chip boostrapping non-tpm_tis TPM drivers
config: riscv-buildonly-randconfig-r003-20230427 (https://download.01.org/0day-ci/archive/20230428/202304280042.LghqIBZQ-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/commit/?id=e2f14081c68395f0b0f9072bbf5e56450b1cb3f8
git remote add jarkko-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
git fetch --no-tags jarkko-tpmdd next
git checkout e2f14081c68395f0b0f9072bbf5e56450b1cb3f8
# 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=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash security/keys/trusted-keys/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304280042.LghqIBZQ-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from security/keys/trusted-keys/trusted_core.c:10:
In file included from include/keys/trusted-type.h:12:
>> include/linux/tpm.h:285:2: error: redefinition of enumerator 'TPM_CHIP_FLAG_FIRMWARE_UPGRADE'
TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
^
include/linux/tpm.h:284:2: note: previous definition is here
TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
^
include/linux/tpm.h:286:2: error: redefinition of enumerator 'TPM_CHIP_FLAG_FIRMWARE_UPGRADE'
TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
^
include/linux/tpm.h:284:2: note: previous definition is here
TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
^
2 errors generated.
vim +/TPM_CHIP_FLAG_FIRMWARE_UPGRADE +285 include/linux/tpm.h
275
276 enum tpm_chip_flags {
277 TPM_CHIP_FLAG_BOOTSTRAPPED = BIT(0),
278 TPM_CHIP_FLAG_TPM2 = BIT(1),
279 TPM_CHIP_FLAG_IRQ = BIT(2),
280 TPM_CHIP_FLAG_VIRTUAL = BIT(3),
281 TPM_CHIP_FLAG_HAVE_TIMEOUTS = BIT(4),
282 TPM_CHIP_FLAG_ALWAYS_POWERED = BIT(5),
283 TPM_CHIP_FLAG_FIRMWARE_POWER_MANAGED = BIT(6),
284 TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
> 285 TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
286 TPM_CHIP_FLAG_FIRMWARE_UPGRADE = BIT(7),
287 };
288
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-27 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27 16:09 [jarkko-tpmdd:next 1/1] include/linux/tpm.h:285:2: error: redefinition of enumerator 'TPM_CHIP_FLAG_FIRMWARE_UPGRADE' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.