From patchwork Mon Jul 31 21:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 109045 Delivered-To: patch@linaro.org Received: by 10.140.101.6 with SMTP id t6csp660275qge; Mon, 31 Jul 2017 14:00:29 -0700 (PDT) X-Received: by 10.55.26.14 with SMTP id a14mr23968358qka.4.1501534829038; Mon, 31 Jul 2017 14:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501534829; cv=none; d=google.com; s=arc-20160816; b=uC74chx/dqg7XrQQhJlY3AHbgxetlXDtfC9xw9i+q11+3tL2Y1Lu4SAtkQXkvoZZtv sqoAWVelSSAYMxZRENccsRVrnugGY0qTYq5NejaYbriYGdeLViM7BVW5Lc5+3NUsy5tJ T129/wCTdOPAob3XzpTwgKaatK7dSV9KJQICJ6/h4IlxVNzMGCTyQaODJ/FsicHy4XkG eAKHyQGtdwcT89+8CV/JmOv5SK6VjbS79V0fGR41gMWSML8W8pPLPxQM0BS0UUFNOu1K Pm3ZP/0RILiVwM++rbRDWowXf2CcdrSgFyFJkWN9D1ZcJLiFoPdmalsSQX+O8q+xspSB qhsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=pwnE+X1q7HcuqTdez/RiHzF6ys/9niZH0UGai4DtHOo=; b=c1Qopyht7cbCn3fD5vQXogFosNUJrrmbNuwbMetSj04qTNBGSv2dlyz/fL7LKBtt2w Q1b+ABbyO2DZp3K51BxZhlG3h1Hpd/6zwmo2vb3kgyNGST9X0iaQzk+dfuZ6T4+QL4kg cH64B0yLiL/OwFb3tQMkR2wgNzGfyJ1kuzGwSVx1SizGfPfGMTB0eWVpVwFbh3JFTsK6 xJEzhl7EaEtEqkxwBWIYsZJ8Uk8j3a9x9VwMGpldg4Wj4L12opA4RAgoLqfHe4hzPk6c jaTDqz9/8ACXU+NNw/FaF97+wWTKOPwT1WHVqib/qGYPyYQAgdCcB0X7xMUy8niiMEna Sfzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w27si5456189qth.384.2017.07.31.14.00.28; Mon, 31 Jul 2017 14:00:29 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id BA178644CD; Mon, 31 Jul 2017 21:00:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 888DB644C6; Mon, 31 Jul 2017 21:00:24 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E111A644CA; Mon, 31 Jul 2017 21:00:21 +0000 (UTC) Received: from forward1m.cmail.yandex.net (forward1m.cmail.yandex.net [5.255.216.2]) by lists.linaro.org (Postfix) with ESMTPS id B1875644C2 for ; Mon, 31 Jul 2017 21:00:20 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:8]) by forward1m.cmail.yandex.net (Yandex) with ESMTP id 41522211AD for ; Tue, 1 Aug 2017 00:00:19 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 0350213202AB for ; Tue, 1 Aug 2017 00:00:16 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id h60UbMc0SL-0FUeJCHM; Tue, 01 Aug 2017 00:00:15 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 1 Aug 2017 00:00:05 +0300 Message-Id: <1501534805-19575-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501534805-19575-1-git-send-email-odpbot@yandex.ru> References: <1501534805-19575-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 97 Subject: [lng-odp] [PATCH API-NEXT v1 1/1] linux-gen: timer: set sigev_value in timer_res_init X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Even if signal is never to be delivered, it is still required to set sigev_value in sigevent structure. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 97 (lumag:fix-timer) ** https://github.com/Linaro/odp/pull/97 ** Patch: https://github.com/Linaro/odp/pull/97.patch ** Base sha: c16f1363303cd5fc11324acbc4dfebe0a9680a41 ** Merge commit sha: ea7b41a7000a484c886c3e19b3fad877968417ac **/ platform/linux-generic/odp_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c index 9fc0675d..fdb48902 100644 --- a/platform/linux-generic/odp_timer.c +++ b/platform/linux-generic/odp_timer.c @@ -844,6 +844,7 @@ static int timer_res_init(void) sigev.sigev_notify = SIGEV_THREAD_ID; sigev._sigev_un._tid = (pid_t)syscall(SYS_gettid); + sigev.sigev_value.sival_ptr = NULL; sigev.sigev_signo = SIGUSR1; /* Create timer */