From patchwork Fri Mar 22 18:25:25 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: 160953 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1113212jan; Fri, 22 Mar 2019 11:25:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQ3oZw6ymjOu0H78oIojJER4hD+HXE29E3PBdRMonJAvlIA0015b28R81lRm5V+oRryT3C X-Received: by 2002:a5d:464e:: with SMTP id j14mr7903811wrs.109.1553279148581; Fri, 22 Mar 2019 11:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553279148; cv=none; d=google.com; s=arc-20160816; b=zJfW52asjVul28hV+oSXzF6hwRLHnzMKUpYdqohP9MSTpUX2SU1aiPZaBJ3lx+3Kn7 K/gsBxN5z8AwGpzl6vWWPyYVP1jvMX24R6AAPJb4fpp8qnFNBhSBSWZ6KdBn5nGnTREe a5qc2/l0NW+HCBoU1tuF0VkyRWetcMLb/gEYNFI+H6Gtu/zwuE/oFtD904mBFH/62Fxj yfjkS5y9hix7ZtrJcpRMXyYIDi5GFB7zEJj3wqxfbt4vonnW1tUCPwR/u3RelfzaV4Q6 dglIT7intqXGGT77rveqlnfYc4YOnQz/J09T4Mprrga6JfwBc8J73o36bjzYfc6SNOLp vAPQ== 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=RRA5snkRpBUUt4LrAK1TUd9/jYBC9vKRsMbd7jCWQvQ3kXMFAMikJWOwQp38uyadcb HMNKGyXg1N2C3nTAvlrKgfqBa6ulSzMke/zqjR80f191vMe4oAxBdGcN3DwZNjFC5x8A OBo2DRY1gXjmX23SHJP2fqYSY8KoMQgpWDtg+lTTZjFMCytJG+ujIM8eOakLc/GdQqvs WuVAikyPETxx/f8mjghF9rOqsB0ZZLTuYhTpe4VEiAXsjirhbFBzjE9hbw7/YGSt8a2k mG3qSAv8669QQJ5YHllW0z2sYIisqeLyn9vkwDC0id4kCX/Vn3XVVpinNXAGAUgWBOFH 2X5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EgDlCZHV; 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 j20si5574339wre.388.2019.03.22.11.25.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 11:25:48 -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=EgDlCZHV; 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 20B4C3EB00C for ; Fri, 22 Mar 2019 19:25:48 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) by picard.linux.it (Postfix) with ESMTP id D18F13EB019 for ; Fri, 22 Mar 2019 19:25:37 +0100 (CET) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 33BC01A0120C for ; Fri, 22 Mar 2019 19:25:37 +0100 (CET) Received: by mail-qk1-x741.google.com with SMTP id z76so1770788qkb.12 for ; Fri, 22 Mar 2019 11:25:37 -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=EgDlCZHVN8CjO0gJi91LN+1PuBwl9IhrSF10Cd+WJNy57kjPT2MivyFhOrkK7JnIJ4 58+lGl4T/O2ByZlI2CGN+F1L9/WZZLhPSDkEx31ORvMQX3+2acWJN3nr33HEnOMMoevq TPBrd3GNbMakYB0CkHk9mpTpb4JEJWWAjDlNZmHdO+6tlZicWKuqE6yvc+MqW/Sz1gjd fWd+xOQEa/PHWXOpLwMl/NlMnbXZnz/FroV1E8e7vgfVaEmHFUWH3SJ0WGgZYx63Ri6A qbarQmcOU/veYGKn3QW3wpJUgwdAhWMSztjW/jiiyFeYerLJVatgp44uv3QddHmU0zmL 9YvQ== 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=KV4DVRwoAWlKZqKB2lWZCHAxse5q0JGRkCv+0yvBDIOK8Mouo3inzwb54rBZhGlTeU 562u2+f7NDPw9l23Pqf3uABABwoJFl0JW/Lh4NcLDxEwjVG+2miIUmU9nmjtQWZXerzq k6TnQpaJhALyy8/Ed8t8Tm+3QSemEUdXpVmne4PjnN45R0mYxgNcahZICpjfNMd+M5RI av1TmFRJXJEhEJ6+LlMlk74hESn1mkWDuVB4ZYWnzWoGkq8qiMky0Q+x7oBc3/J/DxiD kaAQT0ItAfLCZUuLwZgqmwkUHDLTLGrkITyOpe1HwV02Gtv+n8/PBiAnR9VADXZjb5lq YS+w== X-Gm-Message-State: APjAAAUOaNLiJMgbO6bDYq3Erfb5IrkCIxI5J3cElA8H0R8R4bpaNgXY PzXY0N2TVd+dqgJcLBNgF8NmX/pUJjc87LWB X-Received: by 2002:a37:8c9:: with SMTP id 192mr8711394qki.203.1553279135847; Fri, 22 Mar 2019 11:25:35 -0700 (PDT) Received: from workstation.celeiro.br ([191.177.184.97]) by smtp.gmail.com with ESMTPSA id h24sm7056241qte.50.2019.03.22.11.25.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 11:25:35 -0700 (PDT) From: Rafael David Tinoco To: ltp@lists.linux.it Date: Fri, 22 Mar 2019 15:25:25 -0300 Message-Id: <20190322182526.10353-3-rafael.tinoco@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190322182526.10353-1-rafael.tinoco@linaro.org> References: <20190322133425.GB20408@rei.lan> <20190322182526.10353-1-rafael.tinoco@linaro.org> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-3.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-3.smtp.seeweb.it Cc: rafael.tinoco@linaro.org Subject: [LTP] [PATCH v4 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;