]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Fix build failure on powerpc when TCG_IBMVTPM dependencies are not met
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Dec 2014 06:04:50 +0000 (17:04 +1100)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 7 Dec 2014 02:50:37 +0000 (21:50 -0500)
commit8dfbcf24e2bd70888fdaf5ec1179cc9674ce2d1c
tree4abf93d888587e215505c783ef69016ba150bc3e
parent344a0828c4f70b52abe1d57d6cd1e838a1cb22fd
ima: Fix build failure on powerpc when TCG_IBMVTPM dependencies are not met

On powerpc we can end up with IMA=y and PPC_PSERIES=n which leads to:

 warning: (IMA) selects TCG_IBMVTPM which has unmet direct dependencies (TCG_TPM && PPC_PSERIES)
  tpm_ibmvtpm.c:(.text+0x14f3e8): undefined reference to `.plpar_hcall_norets'

I'm not sure why IMA needs to select those user-visible symbols, but if
it must then the simplest fix is to just express the proper dependencies
on the select.

Tested-by: Hon Ching (Vicky) Lo <lo1@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/Kconfig