Received: from eggs.gnu.org ([2001:4830:134:3::10]:58869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw4HX-00064o-BV for qemu-devel@nongnu.org; Fri, 29 Apr 2016 05:00:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw4HW-0003WX-C0 for qemu-devel@nongnu.org; Fri, 29 Apr 2016 05:00:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw4HW-0003WS-6N for qemu-devel@nongnu.org; Fri, 29 Apr 2016 05:00:14 -0400 From: Markus Armbruster References: <572273A7.60908@weilnetz.de> Date: Fri, 29 Apr 2016 09:42:18 +0200 In-Reply-To: <572273A7.60908@weilnetz.de> (Stefan Weil's message of "Thu, 28 Apr 2016 22:33:43 +0200") Message-ID: <87eg9o97z9.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [BUG 2.6] Broken CONFIG_TPM? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developer , Peter Maydell , Paolo Bonzini Stefan Weil writes: > A compilation test with clang -Weverything reported this problem: > > config-host.h:112:20: warning: '$' in identifier > [-Wdollar-in-identifier-extension] > > The line of code looks like this: > > #define CONFIG_TPM $(CONFIG_SOFTMMU) > > This is fine for Makefile code, but won't work as expected in C code. Broken in commit 3b8acc1 "configure: fix TPM logic". Cc'ing Paolo. Impact: #ifdef CONFIG_TPM never disables code. There are no other uses of CONFIG_TPM in C code. I had a quick peek at configure and create_config, but refrained from attempting to fix this, since I don't understand when exactly CONFIG_TPM should be defined.