From patchwork Thu Mar 21 20:27:31 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: 160822 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp8550jan; Thu, 21 Mar 2019 13:27:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOjyC4qcxwhW21Z9iu3xhRl2nJxllU3VDC3vZQbgrBOK+7EOb6+qhSUGFgNAzKLKsiTk2i X-Received: by 2002:aa7:d146:: with SMTP id r6mr3640362edo.235.1553200073694; Thu, 21 Mar 2019 13:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553200073; cv=none; d=google.com; s=arc-20160816; b=KFQX68ZbmNtTHFBPkSsc6pFoUJxvD47/LmkMdkpl4B8YQ3GcLtILkvI8Ko7z6F2in8 zPebD9YTKjO9Sv11q3wJRCXdVUUVcGOJoYMtyQZr6Jey8F4DGRj3Sg7B30ct5Q2Zuc1Z p5lemdsNgOm80j7HUry+V2/tFWQ/+W0rSxXkycMxXwSSbmsqc9cCM7iWUDaUR57vv56N oSzQugpW8CgoqDKqXGc+7hjBM5oPFvW4RYFuJkJ/1/BAoRG9+QUtKFS0N8X4etImY651 naDxrrQ0d4xUxsqG0OU+fZipnmGNlCOWYX92j5tTFUhBrbd6nX8i4Fwe3JG6XcgRg7UC QKzg== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=QDRe0EHXgHAgX3KmjSQTBTaKTondGPg9kenr3vb7Dds=; b=y2ccabDqztyRqdlhD7sU6Ax0+sBGoDK9qI2DznbtGcJJnCpbcqV/hFijSanTNlpB5J SnqGCoja9xWKOMgPw+pI7oikLCDo8Nb1ajtHhyJCNPXTk6ytiBAsk7S34Ivme2F9wuio E76rGsqCbwwAymvfOQmIKb3NWSB9THZNpyqSSPDRh8iK+rHl9R8FcRHQFk78VXguxf0F 1haGP7FwebRavsXCKUA2DmarzD/aNW4MohX1S+QLmc0+b4YQqEm26BakS3Xej6hX9O7u QYfCLWQtd4U1p7PwXACU60XTRzh0j8iDdHGhGZN2V4OpsRScpmWWEC30/rsfucj/U1QQ Sy7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="JO7/LBON"; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 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. [2001:1418:10:5::2]) by mx.google.com with ESMTPS id w8si2416189edx.351.2019.03.21.13.27.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 13:27:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 as permitted sender) client-ip=2001:1418:10:5::2; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="JO7/LBON"; spf=pass (google.com: domain of ltp-bounces+patch=linaro.org@lists.linux.it designates 2001:1418:10:5::2 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 49D393EA5C1 for ; Thu, 21 Mar 2019 21:27:53 +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 [IPv6:2001:4b78:1:20::7]) by picard.linux.it (Postfix) with ESMTP id 886A83EA5E2 for ; Thu, 21 Mar 2019 21:27:43 +0100 (CET) Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) (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 E97CD2009B2 for ; Thu, 21 Mar 2019 21:27:42 +0100 (CET) Received: by mail-qt1-x843.google.com with SMTP id z16so131833qtn.4 for ; Thu, 21 Mar 2019 13:27:42 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=fDT14x0rF7AqqGJn6Cn+F6o/adLy612O8cGATgrbNtY=; b=JO7/LBONnflp4gwxjTS3ux7eaboaABLYcPVpAkMvkP9QGokYjp+aaXPSO6vuuOpbv5 lNtUiM7Uzem4MwAQsHlR63CZGduQ1Eu/O2/rFrFndL8RFEpPABxVwVSoRfjysrKGygC+ Q6HdI+NLFLTfUHGR8QssrYg1t5vh7un9+8X/HhqJS3bEQjvaAMn1z9zFaRlSgLtrqIa9 LGHATX4nrBwtIB2ydG/+LpHpyd4pbIXVh8wNwyR4whYab2o/3/D8txsdEtUywexzrs47 K5oZ5CeGMkNFQHhStWG3PJfBXPqbU+qQ6c177f2HQQ/Rk74rg9hHRFjNV70frqMRmOq0 puNA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=fDT14x0rF7AqqGJn6Cn+F6o/adLy612O8cGATgrbNtY=; b=HwYobSS1vEte6U4kW8fLur1RInHQ+F8BAO26U38sUFsyw57n8JTWm6DW9BGNhJPa3X 8gDLkLGXa8y9AdhEoV6rAcEX78rqgYWGQcs+zsUeExomRgyxKr8PwBpnh+kuzdc8oRfQ Awoet/vYedeT5NBjmwwdqQWOTS0oQIPiSmtMeIF6jEV4lHxLCyn7EcHVDTWWuBSU9HWH 6OLYmmtk+Mef0dKWNFFpi+n+4Dq+YVSk9b0OCb+D2tSf4JdwGtv/7LzT2E/af5ygaVE7 SR8+oqg8JNU54eApEwYEe8TdaVLR8xpyKt+hFBupnSyHiA8CexYUP1/FEmi21pMOlt+9 Du9w== X-Gm-Message-State: APjAAAWciKU1R9uz69WgXqif7Cxh7vxmbzkyl0VpaObEVsn0uxPktQvj PSWwVSmK1i5qpRiFUf/HtEwov2LX5t8JphUW X-Received: by 2002:ac8:2524:: with SMTP id 33mr4980094qtm.165.1553200061607; Thu, 21 Mar 2019 13:27:41 -0700 (PDT) Received: from workstation.celeiro.br ([191.177.184.97]) by smtp.gmail.com with ESMTPSA id n5sm107446qkk.4.2019.03.21.13.27.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 13:27:41 -0700 (PDT) From: Rafael David Tinoco To: ltp@lists.linux.it Date: Thu, 21 Mar 2019 17:27:31 -0300 Message-Id: <20190321202732.3331-3-rafael.tinoco@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321202732.3331-1-rafael.tinoco@linaro.org> References: <20190321141015.GG1252@rei> <20190321202732.3331-1-rafael.tinoco@linaro.org> 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 v3 3/4] lapi/posix_clocks.h: add MAX_CLOCKS definition 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" Used by clock_XXXtime() tests, defining MAX_CLOCKS in common header. Signed-off-by: Rafael David Tinoco --- include/lapi/posix_clocks.h | 2 ++ testcases/kernel/syscalls/clock_gettime/clock_gettime02.c | 2 -- testcases/kernel/syscalls/clock_settime/clock_settime02.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/lapi/posix_clocks.h b/include/lapi/posix_clocks.h index 0d1f0e99c..4914479ac 100644 --- a/include/lapi/posix_clocks.h +++ b/include/lapi/posix_clocks.h @@ -9,6 +9,8 @@ #ifndef POSIX_CLOCKS_H__ #define POSIX_CLOCKS_H__ +#define MAX_CLOCKS 16 + #ifndef CLOCK_MONOTONIC_RAW # define CLOCK_MONOTONIC_RAW 4 #endif diff --git a/testcases/kernel/syscalls/clock_gettime/clock_gettime02.c b/testcases/kernel/syscalls/clock_gettime/clock_gettime02.c index 2a29a71e6..b4bc6e2d5 100644 --- a/testcases/kernel/syscalls/clock_gettime/clock_gettime02.c +++ b/testcases/kernel/syscalls/clock_gettime/clock_gettime02.c @@ -24,8 +24,6 @@ #include "tst_timer.h" #include "tst_safe_clocks.h" -#define MAX_CLOCKS 16 - struct test_case { clockid_t clktype; int exp_err; diff --git a/testcases/kernel/syscalls/clock_settime/clock_settime02.c b/testcases/kernel/syscalls/clock_settime/clock_settime02.c index 8db417b6b..e16e9061a 100644 --- a/testcases/kernel/syscalls/clock_settime/clock_settime02.c +++ b/testcases/kernel/syscalls/clock_settime/clock_settime02.c @@ -16,7 +16,6 @@ #define DELTA_SEC 10 #define NSEC_PER_SEC (1000000000L) -#define MAX_CLOCKS 16 struct test_case { clockid_t type;