From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Sakkinen Subject: Re: [PATCH v6 7/9] tpm: redefine read_log() to handle ACPI/OF at runtime Date: Mon, 14 Nov 2016 16:14:42 -0800 Message-ID: <20161115001442.ldavk5vsrbukzyhq@intel.com> References: <1479117656-12403-1-git-send-email-nayna@linux.vnet.ibm.com> <1479117656-12403-8-git-send-email-nayna@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1479117656-12403-8-git-send-email-nayna@linux.vnet.ibm.com> Sender: owner-linux-security-module@vger.kernel.org To: Nayna Jain Cc: tpmdd-devel@lists.sourceforge.net, peterhuewe@gmx.de, tpmdd@selhorst.net, jgunthorpe@obsidianresearch.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org List-Id: tpmdd-devel@lists.sourceforge.net On Mon, Nov 14, 2016 at 05:00:54AM -0500, Nayna Jain wrote: > Currently, read_log() has two implementations: one for ACPI platforms > and the other for device tree(OF) based platforms. The proper one is > selected at compile time using Kconfig and #ifdef in the Makefile, > which is not the recommended approach. > > This patch removes the #ifdef in the Makefile by defining a single > read_log() method, which checks for ACPI/OF event log properties at > runtime. > > Suggested-by: Jason Gunthorpe > Signed-off-by: Nayna Jain > Reviewed-by: Jason Gunthorpe > Reviewed-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen /Jarkko