From patchwork Thu Nov 8 12:52:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 150512 Delivered-To: patches@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp781629ljp; Thu, 8 Nov 2018 04:52:28 -0800 (PST) X-Google-Smtp-Source: AJdET5cA7wguQbv9mECLDL1fDFLHsP+X6yFilUc/IBTGTjfZ1n8dIGmqY8eJc4hBMlNesJYy+O6H X-Received: by 2002:a1c:1189:: with SMTP id 131-v6mr1108421wmr.87.1541681547884; Thu, 08 Nov 2018 04:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541681547; cv=none; d=google.com; s=arc-20160816; b=ZgQRlaZVT33gdADkyQdzpUHVjgPfqHnr5pxthCK/6Frk8wBKNOwfiAUUvucFluqk2n QsiySXj10aRx7pwVqNxqA3XfLJALXGNiX92ldPLR4di1rZKuAcA7SVcGZHSuKMfjmMro SOJfYDmir/COsHxOku/3Busbavvb9M7wCveOB7Z0pYcdQXdMLZ0JohBnX+E1NXjvluo7 gl5HyLU1pl9lK7Tnp8oM1liO1Kk6VmgMa670L00K3qjr2mLQUaj8UwwxW8CruqfGrBev C0rRdBXUNhaaGWtsL3hb4Q0c5v1SPreXpogRVUoYcyGiQ7OR2yfYl6VwyYRcnurhexw2 VVPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=n0laEr7tFk/t3k7ET5K/RAkkBPTgx0podQZk4ZJxabo=; b=HBt+Y6yNnvJn5hPyAWXHUc7K6psbs1QHMW5OuT/E0xyu21ORJsPRB6jHl0DoZdThYZ ULUNNmb9FO/oZ9NzMUdZXi6IHo1wOBrHzmxu+ZTlr7ATvOde9xzrM/EVfdXEkOC8DdPn FmyDdkLz2jVwGWAAi5Aeo3Kxzz1z+ffy9RbbwWk5LoS1uzs6z3NwGbyw7MjWx9HFEbsp /TkPtM7zyga1O3kd4eYZmmRWc0M6suZsLoVGLg9ssjkpnqVuZVIxeEEwXt04sMOYK7zQ tUTimECphNyXYCMaGOsfUI/ZtuPdX4s6HkjDm0i+IDx9fRx3Soh5+jFuSUQzOw8S0E3y OV/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by mx.google.com with ESMTPS id f4si3514170wrx.241.2018.11.08.04.52.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 04:52:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) client-ip=2001:8b0:1d0::2; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1gKjnO-0001hl-Gq; Thu, 08 Nov 2018 12:52:26 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Michael Roth Subject: [PATCH] qga: Add multiple include guard to guest-agent-core.h Date: Thu, 8 Nov 2018 12:52:23 +0000 Message-Id: <20181108125223.30804-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 The guest-agent-core.h header was missing the usual guards against multiple inclusion; add them. (Spotted by lgtm.com's static analyzer.) Signed-off-by: Peter Maydell --- qga/guest-agent-core.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.19.1 Reviewed-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/qga/guest-agent-core.h b/qga/guest-agent-core.h index 6f4d214cb9f..60eae16f27a 100644 --- a/qga/guest-agent-core.h +++ b/qga/guest-agent-core.h @@ -10,6 +10,9 @@ * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. */ +#ifndef GUEST_AGENT_CORE_H +#define GUEST_AGENT_CORE_H + #include "qapi/qmp/dispatch.h" #include "qemu-common.h" #include "qga-qapi-types.h" @@ -46,3 +49,5 @@ int ga_parse_whence(GuestFileWhence *whence, Error **errp); #ifndef _WIN32 void reopen_fd_to_null(int fd); #endif + +#endif /* GUEST_AGENT_CORE_H */