Skip to contentSkip to conversation

tpm: select ANON_INODES for proxy driver

PATCH In review Arnd Bergmann 3 participants 4 messages Apr 28, 2016 – Apr 29, 2016 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: select ANON_INODES for proxy driver

The newly added vtpmx driver fails to build if CONFIG_ANON_INODES is disabled:

drivers/char/built-in.o: In function `vtpmx_fops_ioctl':
(.text+0x97f8): undefined reference to `anon_inode_getfile'

This adds a Kconfig 'select' statement to ensure it's always there when we need it.

Fixes 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs")
---
 drivers/char/tpm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/char/tpm/Kconfig +1 -0
index 0eac596e33d1..bfdc5c0486aa 100644
@@ -125,6 +125,7 @@ config TCG_CRB
 config TCG_VTPM_PROXY
 	tristate "VTPM Proxy Interface"
 	depends on TCG_TPM
+	select ANON_INODES
 	---help---
 	  This driver proxies for an emulated TPM (vTPM) running in userspace.
 	  A device /dev/vtpmx is provided that creates a device pair
Signature · 9 lines
2.7.0


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Arnd Bergmann

The newly added vtpmx driver fails to build if CONFIG_ANON_INODES is disabled:

drivers/char/built-in.o: In function `vtpmx_fops_ioctl':
(.text+0x97f8): undefined reference to `anon_inode_getfile'

This adds a Kconfig 'select' statement to ensure it's always there when we need it.

Fixes 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs")

Thanks.

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 11 lines · Arnd Bergmann

The newly added vtpmx driver fails to build if CONFIG_ANON_INODES is disabled:

drivers/char/built-in.o: In function `vtpmx_fops_ioctl':
(.text+0x97f8): undefined reference to `anon_inode_getfile'

This adds a Kconfig 'select' statement to ensure it's always there when we need it.

Fixes 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs")

/Jarkko

Quoted 19 lines
---
 drivers/char/tpm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/char/tpm/Kconfig +1 -0
index 0eac596e33d1..bfdc5c0486aa 100644
@@ -125,6 +125,7 @@ config TCG_CRB
 config TCG_VTPM_PROXY
 	tristate "VTPM Proxy Interface"
 	depends on TCG_TPM
+	select ANON_INODES
 	---help---
 	  This driver proxies for an emulated TPM (vTPM) running in userspace.
 	  A device /dev/vtpmx is provided that creates a device pair
Signature · 1 line
2.7.0
#3 lore raw
Quoted 10 lines · Jarkko Sakkinen
Quoted 9 lines · Arnd Bergmann

The newly added vtpmx driver fails to build if CONFIG_ANON_INODES is disabled:

drivers/char/built-in.o: In function `vtpmx_fops_ioctl':
(.text+0x97f8): undefined reference to `anon_inode_getfile'

This adds a Kconfig 'select' statement to ensure it's always there when we need it.

Quoted 6 lines
Quoted 2 lines
Fixes 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs")

/Jarkko

Applied and merge to next.

/Jarkko

Quoted 4 lines
Quoted 4 lines
---
 drivers/char/tpm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 15 lines
drivers/char/tpm/Kconfig +1 -0
index 0eac596e33d1..bfdc5c0486aa 100644
@@ -125,6 +125,7 @@ config TCG_CRB
 config TCG_VTPM_PROXY
 	tristate "VTPM Proxy Interface"
 	depends on TCG_TPM
+	select ANON_INODES
 	---help---
 	  This driver proxies for an emulated TPM (vTPM) running in userspace.
 	  A device /dev/vtpmx is provided that creates a device pair
Signature · 1 line
2.7.0

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z