From patchwork Wed Oct 2 17:05:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 11171677 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6DA2F112B for ; Wed, 2 Oct 2019 17:10:34 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 492882086A for ; Wed, 2 Oct 2019 17:10:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=aepfle.de header.i=@aepfle.de header.b="ZNaEFnn9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 492882086A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aepfle.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iFi7h-0007MA-B5; Wed, 02 Oct 2019 17:09:09 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iFi7e-0007Lx-Qm for xen-devel@lists.xenproject.org; Wed, 02 Oct 2019 17:09:07 +0000 X-Inumbo-ID: 567b3ad2-e537-11e9-b588-bc764e2007e4 Received: from mo6-p00-ob.smtp.rzone.de (unknown [2a01:238:20a:202:5300::1]) by localhost (Halon) with ESMTPS id 567b3ad2-e537-11e9-b588-bc764e2007e4; Wed, 02 Oct 2019 17:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1570036144; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=GbzhYxVr4PKOxK24SXzYvDJKwRH20NVwyGDYZAtBo0w=; b=ZNaEFnn9Bm/KS0S22PbQRXayVvHGrexIfODuXrjJzqK3UrMfnhSVF9+EPAoks7iZxo 7uLpqoIwm8UU0CXpedykBVYx5CmoSR9VLaWwmbsgwdqGP4KGDmu6fHn97rO3WCp7whXy 4UyR9D3UrzgpGPUuJOsA8m2JFo9YFFoYg5onichH/eMuluDGaJe2CDSK/T4B2sN9Q3cX MJVJzu+C15M5uPjYHJsjVXfjqTcPJ+LEZFKvdPSTKpoJETMQzo336UyX1rqVoIe+UQQG 7q3uBIjdcTPKE+5g7nJwpNeVfHBVtgO6CpPKuOk8LtMUHvLSAoIeN4d6Cb6TfsGVOUKp UOqw== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzBW/OdlBZQ4AHSS2Gkg" X-RZG-CLASS-ID: mo00 Received: from sender by smtp.strato.de (RZmta 44.28.0 SBL|AUTH) with ESMTPSA id j06a90v92H5kUVc (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 2 Oct 2019 19:05:46 +0200 (CEST) From: Olaf Hering To: xen-devel@lists.xenproject.org Date: Wed, 2 Oct 2019 19:05:36 +0200 Message-Id: <20191002170543.26571-2-olaf@aepfle.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191002170543.26571-1-olaf@aepfle.de> References: <20191002170543.26571-1-olaf@aepfle.de> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Samuel Thibault , Olaf Hering , Quan Xu , Daniel De Graaf Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" The function read_vtpmblk uses printf(3), but stdio.h is not included in this file. This results in a warning from gcc-7: vtpmblk.c: In function 'read_vtpmblk': vtpmblk.c:322:7: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("Expected: "); vtpmblk.c:322:7: warning: incompatible implicit declaration of built-in function 'printf' vtpmblk.c:322:7: note: include '' or provide a declaration of 'printf' Signed-off-by: Olaf Hering cked-by: Daniel De Graaf Reviewed-by: Samuel Thibault --- stubdom/vtpm/vtpmblk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stubdom/vtpm/vtpmblk.c b/stubdom/vtpm/vtpmblk.c index fe529ab5ac..681f0c01b6 100644 --- a/stubdom/vtpm/vtpmblk.c +++ b/stubdom/vtpm/vtpmblk.c @@ -20,6 +20,7 @@ #include #include #include +#include /*Encryption key and block sizes */ #define BLKSZ 16