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: 1061500 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="EgDlCZHV"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44QsXs1R3cz9sRY for ; Sat, 23 Mar 2019 05:25:49 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 7E8873EB011 for ; Fri, 22 Mar 2019 19:25:46 +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-Google-Smtp-Source: APXvYqzdSVULEVknKxMQd/NWw9OHqFlItVENGowZ7BFB1h+xFIfDNUQ/UIhGOuI08+Jw9TPBXSQPbQ== 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+incoming=patchwork.ozlabs.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;