From patchwork Thu Apr 28 10:46:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8968401 Return-Path: X-Original-To: patchwork-tpmdd-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2EB8C9F1C1 for ; Thu, 28 Apr 2016 10:47:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42F29202C8 for ; Thu, 28 Apr 2016 10:47:05 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 211682015A for ; Thu, 28 Apr 2016 10:47:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1avjTJ-0004Lu-Ql; Thu, 28 Apr 2016 10:47:01 +0000 Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1avjTI-0004Li-6s for tpmdd-devel@lists.sourceforge.net; Thu, 28 Apr 2016 10:47:00 +0000 X-ACL-Warn: Received: from mout.kundenserver.de ([212.227.126.133]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1avjTF-00009w-TY for tpmdd-devel@lists.sourceforge.net; Thu, 28 Apr 2016 10:47:00 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0M0p8p-1bptQA072t-00v9Vo; Thu, 28 Apr 2016 12:46:29 +0200 From: Arnd Bergmann To: Peter Huewe , Marcel Selhorst , Jarkko Sakkinen Date: Thu, 28 Apr 2016 12:46:13 +0200 Message-Id: <1461840382-2996256-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:7b75sRqOP+16qy/yO92SJyB8XUzs0m/oZtiZw/M/QEl/Gpui02Q YsBuIkEpSl6/CkJEgpxaBxUgPw7QPkp9Dlh3ADu77pxqzGrpfU0t9y736iDWkGyqs5qufAQ ojbm0tOL8iLqHLyVWKu6HRKjQwqzXmzocH3W9JelmkbhZaUDpJxYmPX7Pa7+g9GFSF7giK8 OKq7svi5ow3bxQ1EzjZbA== X-UI-Out-Filterresults: notjunk:1; V01:K0:6kDvBxvaqME=:ABuy/s3Ewzi3cwHOnYuSAM OpgUlWfPTyAvZm9xA062oZAIribYv9+EN5HyaoxNiZ659sBqcRMm9nKVZLcdK1mIySFrV8jFT VkVLFSc2hDbDRRWvh/QB8D7rDh6KyuuK4OQ0e2V154Cd3UH35fZyn8Vkpv/k/mpt9WS+GOl2W L7Ro+oVlPSCvqCnH2hNv/boQKMlczi7EUbRQAcoLZ3zq1634dZZMDj1SBukBAoAsNyg5jEO8j bArQX8lqu/rmLTHU9BxcpaR5byv2NXK8hNC6lrVvivbCmRW9YxairYcfDLTjzVZBKP5TctS8f 1IdGVJUfOSd0eOeQceiMlRgxr89VZqSq+xTFPklx/I8IKY0trxHaLHgbMNQVhvwKjA0ivXZgu AkERxyXNTjLKcCLHN7F6vvy++noMu/OaBqdY2woM15uZYX7s4oG/cVn6//BcnKpdU/Mqf39dE NrvVH5gnwle86+oUl06A0/BJHy3Bh9DBvGiviL2QFiKRT+MQyGmqHOe7iuzuE0yLzB9mtMYkA 9swFRwnQ1TbLz794XTAyNS5xPqkA6o+945lg6d3mdVE4L5zko7pm449W3tfl8EUd3wvenv2rt 9PQL9BPyfVP76T+4AnhxDdL9DZJFHZCF9jP7Vu0F3jiGdHmO8mzBraB9NSsmDFP+LmhfIAahU tYXarM5j8ISNYUNRTcEd0cRcDj50zCr7zuVO47XtIlK4pfpOEXS4TWdEveK2Sv1AQ4aA= X-Spam-Score: -0.5 (/) X-Headers-End: 1avjTF-00009w-TY Cc: tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [tpmdd-devel] [PATCH] tpm: select ANON_INODES for proxy driver X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: tpmdd-devel-bounces@lists.sourceforge.net X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Arnd Bergmann Fixes: 794c38e01358 ("tpm: Proxy driver for supporting multiple emulated TPMs") Acked-by: Stefan Berger Acked-by: Jarkko Sakkinen --- drivers/char/tpm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index 0eac596e33d1..bfdc5c0486aa 100644 --- a/drivers/char/tpm/Kconfig +++ b/drivers/char/tpm/Kconfig @@ -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