From patchwork Sat Feb 29 16:42:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2923 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id ED36662790 for ; Sat, 29 Feb 2020 17:43:23 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 948C9A28 for ; Sat, 29 Feb 2020 17:43:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1582994603; bh=dt9Tvp/GrixvCHBEY+meD+WPLarBtdXAxb3wj8awSl4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kqYTWknPpS1vnJ7SMOV3kD+oVnT9bhKfdrWSUw6T04kHdkRqV/wvgrk7+1tGa6huj 5zqQxuz1bf7Hh8qFpO0oWo3M6krHeQJKqXJn+EU1c20H+otF5Dq+a3R57eEjM56cob MpxpR/C8Wy1n4v0JlyIqrD94dyeoYywX+vvh+TkE= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 29 Feb 2020 18:42:28 +0200 Message-Id: <20200229164254.23604-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200229164254.23604-1-laurent.pinchart@ideasonboard.com> References: <20200229164254.23604-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 05/31] libcamera: ipa: Make self-contained X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Feb 2020 16:43:25 -0000 The header makes use of uint*_t types, but doesn't include stdint.h. Fix it, and include ipa_controls.h in ipa_controls.cpp to test compilation of the header on its own. While at it, fix the comment as the top of ipa_controls.cpp to refer to the correct file name. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- include/ipa/ipa_controls.h | 2 ++ src/libcamera/ipa_controls.cpp | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ipa/ipa_controls.h b/include/ipa/ipa_controls.h index 426d99689de2..6371e34575f2 100644 --- a/include/ipa/ipa_controls.h +++ b/include/ipa/ipa_controls.h @@ -7,6 +7,8 @@ #ifndef __LIBCAMERA_IPA_CONTROLS_H__ #define __LIBCAMERA_IPA_CONTROLS_H__ +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/src/libcamera/ipa_controls.cpp b/src/libcamera/ipa_controls.cpp index 6ea71bc6dc46..dd3ff9a0d467 100644 --- a/src/libcamera/ipa_controls.cpp +++ b/src/libcamera/ipa_controls.cpp @@ -2,9 +2,11 @@ /* * Copyright (C) 2019, Google Inc. * - * ipa_controls.h - IPA control handling + * ipa_controls.cpp - IPA control handling */ +#include + /** * \file ipa_controls.h * \brief Type definitions for serialized controls