From patchwork Wed Mar 20 19:37:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael David Tinoco X-Patchwork-Id: 160730 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp671026jan; Wed, 20 Mar 2019 12:37:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuUl+/BqER3dAVmnlu1fdzFXz9qPa7vQBTM+w975NMtbfl3WWo9fJ1Hm8hMwji0HS23+bz X-Received: by 2002:a05:600c:d5:: with SMTP id u21mr33723wmm.12.1553110651084; Wed, 20 Mar 2019 12:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553110651; cv=none; d=google.com; s=arc-20160816; b=NQpSC8GIuM83GLoN1A23/4st45rimF2Zx51I+EvLC31WgehKClMpoSYmeIveikrrst wvM+rHhNyRVEnmdhWvPvHoIHLAGH9RaT0Y0TEBUVnHnnxGgFUqP/qFlbSUoeljK45xEO a2wrpXQYENUyCpve3DTTJKU9T24Sag6Ol6U7uknR73HVXLtf857DFUVvc7GQHSX9V2qZ rBYpMKrpsR/eUAW8GDyyy8VS5qLcUm78AiozTJPLMrhIbDnHSi+OEoZ/ZqBmL3QvnRAW xR3e/4CMEKYvTRjR+9gpBId9HKvs2ysjfLRHQi0r6eS1p6u0ZmdrLSjOxxfuRYJfKUcT Y9OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=Hy2R4U5EwuYmDUB3acbh+bp9dosIWl94IxmSj+Rlh68=; b=adQMg8PhnjoknNVlyu3JQUn2i+totfKuZeovqN6PGKIJ3nsojDYnAPS8qJD335D7S8 b5bfa7g+A2MhydW0aEHbJZXspOeeNQ2yXq+hza1BituS0/AtQH2rPNK98XHycGVoYmji Y16iUtfseJqlHfGR38VARvlA2mxG7TATboMIQtVkzqV9/4eNxQz9Si7hbIT/JhElGxjx BOrbq4mHZxOyqhgWXV0u+FXDpuxmlnMFZWPq3C6W6o/Mu14DOct3CLOOkrHKSq40TAJP T9DTEalvUFoz14/b+NzNpi0+TLMPNb6s4qzhKqEwySya4saRdOIk/CNwam1VsZqn7lpD a6zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pW073QDe; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from picard.linux.it (picard.linux.it. [213.254.12.146]) by mx.google.com with ESMTPS id q205si2191965wme.51.2019.03.20.12.37.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 12:37:31 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) client-ip=213.254.12.146; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pW073QDe; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 213.254.12.146 as permitted sender) smtp.mailfrom="ltp-bounces+patch=linaro.org@lists.linux.it"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8087F294AF6 for ; Wed, 20 Mar 2019 20:37:30 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7]) by picard.linux.it (Postfix) with ESMTP id E40823EAEA4 for ; Wed, 20 Mar 2019 20:37:25 +0100 (CET) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 0DFF1200C96 for ; Wed, 20 Mar 2019 20:37:24 +0100 (CET) Received: by mail-qt1-x835.google.com with SMTP id v32so3970289qtc.10 for ; Wed, 20 Mar 2019 12:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FSE1J0mXoOQyQjd8gICkkl2V4HfGhYBKlWS1a8Qt+Bc=; b=pW073QDez+lNM+dzPQEyK20a/1nxu+M9/+S1B+Llv0PE4MWFMqNLgdPiLJWhTEyzMu sBlZr8K4MP9OcW3shv3tzy7dm2ygbv2O3FKvAp9bEygcMeSfSMqBSSJ6UDnltyCpi1yg D4dG6PdRdc6HppFuWzIZVHjqnyHbulA+eAkpM2cSIg/wdpxBazRJF17I1SdaYwk/yENF hLExELeXNX5pkG/S1VIoioWc+hZWI/Eoz2f8R3NALFXeJAmOhNr+v415DfAicaIGa5c6 fZGFGf7AJdjfIAW8NaJVGdB/SN+Z0DZAjvRrtdqw8d3D/kIZ4G78fSg5upzpTG5waqQm 6UyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FSE1J0mXoOQyQjd8gICkkl2V4HfGhYBKlWS1a8Qt+Bc=; b=iIdVU1vOvTcsc4zz6OxA0LXqByyK+8ZV6B4KhAYuk09WEOudikW1J/4S+z9Mvvhl8q /dJPVTevpgTtztKk/Dpv2VzTsHthkpg/HuRHvTYyuGTdl4WUg2GJlruZAbQG9PVwfzqk is0Dbt8bB/Ggl9kX4BU1WwMtEagX00XXhLfc16WhHxm89pfh8HfAcxJqlkCeNWWhWfg3 kbG2ADSUHfWn8u8NPw7LXNRT/b/Ci8Sw9xYLXRCcKNmqvknkxW7Lpk9T9H9nO1MZoKmS 3XNESOcesrGIRnEUdkDPZbKvGguRDqaZaoSldeLzuNFT93SDaIHIzXgUPRPeqk3cLSR4 cFkQ== X-Gm-Message-State: APjAAAUJ+YP4D++Foy/lKKpunAxyXTR0Vukcj3IyqWdh+eeEdNiyS9bV XqZUKTHK1WjqnGRe0PjXqfDljmdUNV0ocQ== X-Received: by 2002:ac8:3782:: with SMTP id d2mr8789658qtc.170.1553110643539; Wed, 20 Mar 2019 12:37:23 -0700 (PDT) Received: from workstation.celeiro.br ([191.177.184.97]) by smtp.gmail.com with ESMTPSA id b13sm1892072qkj.5.2019.03.20.12.37.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 12:37:22 -0700 (PDT) From: Rafael David Tinoco To: ltp@lists.linux.it Date: Wed, 20 Mar 2019 16:37:18 -0300 Message-Id: <20190320193718.2320-1-rafael.tinoco@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-7.smtp.seeweb.it Cc: rafael.tinoco@linaro.org Subject: [LTP] [PATCH] lib: Add include guard to tst_safe_clocks.h X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+patch=linaro.org@lists.linux.it Sender: "ltp" When adding a common header to my tests I missed this include guard when accidentally including tst_safe_clocks.h from .c and .h files. Since other tst_safe_*.h files have guards I thought it would be good to add to this one as well. Signed-off-by: Rafael David Tinoco Reviewed-by: Enji Cooper > --- include/tst_safe_clocks.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/tst_safe_clocks.h b/include/tst_safe_clocks.h index a952be4bf..0f642148e 100644 --- a/include/tst_safe_clocks.h +++ b/include/tst_safe_clocks.h @@ -5,6 +5,9 @@ * Email : code@zilogic.com */ +#ifndef TST_SAFE_CLOCK_H__ +#define TST_SAFE_CLOCK_H__ + #include #include #include "tst_test.h" @@ -69,3 +72,5 @@ static inline void safe_clock_adjtime(const char *file, const int lineno, #define SAFE_CLOCK_ADJTIME(clk_id, txc)\ safe_clock_adjtime(__FILE__, __LINE__, (clk_id), (txc)) + +#endif /* SAFE_CLOCK_H__ */