From patchwork Wed Mar 20 21:41:34 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: 160737 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp69539jan; Wed, 20 Mar 2019 14:41:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrZIfuWxUQ0kN1vJV6cXlTP0QF83m2sHGZ4YJEBZ2Yl9Mbk7olROVkKaR248N0I/z0i0LN X-Received: by 2002:adf:edcf:: with SMTP id v15mr245528wro.20.1553118112526; Wed, 20 Mar 2019 14:41:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553118112; cv=none; d=google.com; s=arc-20160816; b=fBt9ZfIYB/zV3KWUAY9ZPxYLVvR9P6hHcwrFI3qP+qAp28BCQFqUKDzqXw29eof4GZ JtgbhK6PRaIWydjpnFevjrSjD9uefrXtl/9jaNFhu+9CdbpF4qkwY55K4Jn9L0qp02Gt t3aHt0Uax6jjy6y8bVYZHUQlpJ2vE1U6Ovvm+ZXiZ/Crs6MCGu/rzefB2cFk/e0Tl9/n +m2+0WiLPO3cM/L0Dt9cwAK0nNqvD6VVtFKcMfqtLPrdP6mADfyXu5gIUQ4OvuCH9pm4 MxtO7zIR9GP7vsYUD1gzsFMeN+rx2xugml+bbdYrP+nlIfdviugXorH1rG0QCOVFJo0c Qu6g== 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=nFHcuXoPTZ1L0Lk9vojjoXpIE9iCegd8f1Sh0qsBqjxm60udRf2AARYIvdUpQLxGcc OOKtaPGScvBxK/Z+XqzhrkSjptfl4GtprK8nOJk+9hM6orO6GcxrxZkfgUEdrdy8GzKV 3X3EBvMfiVF/pZ9yTEWyiqKxpD7IeCtHdTvWjIEiuVxh6BErPCu8Zv68Jw/eLX2YFozd /VOfeZ3AMwISJJJfNuXfbh42wpxQH41WrkqOSUp2u8SDO3MpTctsDr3f/ml+MoFyrwI3 xYHd0UEda2yQzyyiCfTa0BXcMLRpVe7KmvfdmOmhF7vMUL2fo/zEPuU929uLT8yS/R6f wdeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XxcGFQYX; 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 q1si2010376wrv.258.2019.03.20.14.41.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 14:41:52 -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=XxcGFQYX; 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 10B50294AC1 for ; Wed, 20 Mar 2019 22:41:52 +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 C4EF6294ABA for ; Wed, 20 Mar 2019 22:41:44 +0100 (CET) Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) (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 2B83F200A1A for ; Wed, 20 Mar 2019 22:41:44 +0100 (CET) Received: by mail-qt1-x841.google.com with SMTP id k2so4463072qtm.1 for ; Wed, 20 Mar 2019 14:41:44 -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=XxcGFQYX6sdMXPqvGIm3cWzFDSmMcDdVmzO9pOh2reZ6xcMI6qwYG8Qw8TcdYaQJBc xbmmkEs7dXYEihO6NWP3XgjHy8gyntTkOcm7ZpLAsqAQt9093l0D9VVT6Daj1c9onm+G nx6JD8djJbV1cZ7yVmUJavebqjwX2MYV9ivPyya/n68SOCOQOmc6iK9881Ca20Xy49DL wCkack1luQULU3wiMTItnOvwSGVhTi1SXdZi1oM8vPQUojG1QwkZUpBoEfTH41wwqI0M Mo/0Xw1QGslVn98hMKY6i24nLGCJW2nZW9gVV2DZetQ4qDZwsTo1H7WQztt7WLJAiHzn tkPw== 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=BxyppH5HeREEq++2R6vYu+ZHuvnaevI2ULp6yH7Gu2TppHoMvIVMMp93sKmVrZmjLV zPXhTgVZ1pdHFtHFmmT5cnKI9lbJyB9kNBtMxeyvIZh58u9UHtAmk4kIq3Nz5ff3xWsa f9fvu1WVHyeVLRv8/LxnsxcW4R13kxEL/iKtmg7MRRX1QhhvPMxTwDD5b0Uk4Ts0QvZg Ak1mYGfupaUMicjXt3To2SpTRmxymCUx63NvTiXNU7PnI5sQYBHN++geve7uq7L5KG1w 8aXG1HwwcKskR204oTxyOfpkxr56xDW4Ojd34g+fiUrzTT8aAanUHHWw1W/LTtYRGyab eTtw== X-Gm-Message-State: APjAAAW0nbUWaZVi3bAuMDvopqi7zgUYkv81OeIbMaVr4NI/BQOUFeOe u1j0AtGHjjv29NrE3vykFXSUru++D78nFg== X-Received: by 2002:ac8:3517:: with SMTP id y23mr58504qtb.57.1553118102511; Wed, 20 Mar 2019 14:41:42 -0700 (PDT) Received: from workstation.celeiro.br ([191.177.184.97]) by smtp.gmail.com with ESMTPSA id p6sm2113654qtk.70.2019.03.20.14.41.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 14:41:41 -0700 (PDT) From: Rafael David Tinoco To: ltp@lists.linux.it Date: Wed, 20 Mar 2019 18:41:34 -0300 Message-Id: <20190320214135.7029-2-rafael.tinoco@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190320214135.7029-1-rafael.tinoco@linaro.org> References: <20190313163239.GC6171@rei> <20190320214135.7029-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 v2 2/3] 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;