From patchwork Tue Oct 11 22:38:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugene Syromyatnikov X-Patchwork-Id: 9372179 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E208F60865 for ; Wed, 12 Oct 2016 07:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5FC529CDF for ; Wed, 12 Oct 2016 07:48:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB17529CED; Wed, 12 Oct 2016 07:48:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81D3A29CF3 for ; Wed, 12 Oct 2016 07:48:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9C7k8BV028646; Wed, 12 Oct 2016 03:46:08 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u9BMcWdx009498 for ; Tue, 11 Oct 2016 18:38:32 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9BMcWHp020502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 11 Oct 2016 18:38:32 -0400 Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1467A37E71; Tue, 11 Oct 2016 22:38:30 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id l131so2758621lfl.0; Tue, 11 Oct 2016 15:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0A69jxtNExEI3aUhNWtrotlzYMgwL2WQ3AHb4UGhJEY=; b=tiDguV2n2L4DyLXFkcdKNHBY9n2TzhJjOqkfZQln4XraYjJWuKUkFqHr8TdT7Bsloo 7HsoLD36IzO6bXylcp977qNIjQU1J7lQCmAi624nXTd2Lq343g8kXUBr7sSerj6aK0cb V9dV6F3V+3BV2Tr5qkuf30cjJK9lOYO/HSuShRYQEyyu+q8OjtMFXGvl84Oi5za0//ZJ i6EJXeXk2DbxJHmhuYCFptI8vP+WcIAugi732RE8jcYbL3dn1iWjkQVfJvrqInQaTabH 5phxiXgNwzH0p7D0qLNJSApvZfwVIDJ9VRojDQWAfr3CnkeFHIxqZA22TkZVMPSG76NN 6TZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0A69jxtNExEI3aUhNWtrotlzYMgwL2WQ3AHb4UGhJEY=; b=A7HZ+ml40+em8gA7tgazijAefz6k7xx8te9tHEX748nTNYTH2xYITHHR5WQOBLKq6J 36gbc9Ahox5CZB/d8KVEWzRhHgSdVttoXQOAEQMq0k9CLK92h3v7JYHy9jP9j2VouQDV PzDaD0+22ykYWXNY06XNuedYInIzmUmLWavUlJsItiTqa1tVAHXqq0V4z9Fllq/txjE8 /DUvyHxg0ZzVUCJSHE60hA20Uc/c/YEAOOukj8bNsb665OZhp4BRhHFFZUlVdZLLeH3J b1aoTDAS7hhk0CBvcTCTXxZNv3icHgMNm429ALaCG8+4lqTR512qqHg36GWX0VPXdZHw o/ww== X-Gm-Message-State: AA6/9RkIOqFoowQ2gROar2TQUixSFK6SJuZvMB8fg3E3y7NPhDddksmbgUpzsvygq16GEQ== X-Received: by 10.25.66.18 with SMTP id p18mr4853059lfa.82.1476225508458; Tue, 11 Oct 2016 15:38:28 -0700 (PDT) Received: from obsidian (broadband-46-188-15-144.2com.net. [46.188.15.144]) by smtp.gmail.com with ESMTPSA id 102sm1538787lft.33.2016.10.11.15.38.27 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 11 Oct 2016 15:38:27 -0700 (PDT) Date: Wed, 12 Oct 2016 01:38:25 +0300 From: Eugene Syromyatnikov To: strace-devel@lists.sourceforge.net Message-ID: <20161011223825.GA8649@obsidian> References: <20161005.192828.566127461630656590.yamato@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161005.192828.566127461630656590.yamato@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 22:38:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 11 Oct 2016 22:38:30 +0000 (UTC) for IP:'209.85.215.66' DOMAIN:'mail-lf0-f66.google.com' HELO:'mail-lf0-f66.google.com' FROM:'evgsyr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.67 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.215.66 mail-lf0-f66.google.com 209.85.215.66 mail-lf0-f66.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 12 Oct 2016 03:45:31 -0400 Cc: dm-devel@redhat.com, mpatocka@redhat.com, yamato@redhat.com Subject: [dm-devel] [PATCH 3/9] tests: Add check for presence of HAVE_LINUX_DM_IOCTL_H macro definition to ioctl_dm test X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP --- tests/ioctl_dm.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/ioctl_dm.c b/tests/ioctl_dm.c index 0a3bbf4..5f2689c 100644 --- a/tests/ioctl_dm.c +++ b/tests/ioctl_dm.c @@ -1,10 +1,13 @@ #include "tests.h" -#include -#include -#include -#include -#include -#include + +#ifdef HAVE_LINUX_DM_IOCTL_H + +# include +# include +# include +# include +# include +# include static struct s { struct dm_ioctl ioc; @@ -103,3 +106,9 @@ main(void) puts("+++ exited with 0 +++"); return 0; } + +#else /* !HAVE_LINUX_DM_IOCTL_H */ + +SKIP_MAIN_UNDEFINED("HAVE_LINUX_DM_IOCTL_H") + +#endif /* HAVE_LINUX_DM_IOCTL_H */