From patchwork Thu Nov 9 12:27:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 836331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3yXj9F23tNz9sBW; Thu, 9 Nov 2017 23:27:29 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1eClvb-0007RV-E8; Thu, 09 Nov 2017 12:27:27 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1eClvZ-0007RD-VG for fwts-devel@lists.ubuntu.com; Thu, 09 Nov 2017 12:27:25 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1eClvZ-00017L-MV; Thu, 09 Nov 2017 12:27:25 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/2] lib: fwts_battery: fix build issues with older toolchains Date: Thu, 9 Nov 2017 12:27:24 +0000 Message-Id: <20171109122724.12623-2-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171109122724.12623-1-colin.king@canonical.com> References: <20171109122724.12623-1-colin.king@canonical.com> MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" From: Colin Ian King Explicitly include and to avoid build errors on older toolchains. This supports distros that aren't so up to date Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/lib/src/fwts_battery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/src/fwts_battery.c b/src/lib/src/fwts_battery.c index c59fe461..8a4ab4f7 100644 --- a/src/lib/src/fwts_battery.c +++ b/src/lib/src/fwts_battery.c @@ -27,6 +27,7 @@ #include #include #include +#include static inline bool fwts_battery_match( const uint32_t index,