From patchwork Sun Feb 18 20:40:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10226939 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 654EC6055B for ; Sun, 18 Feb 2018 20:40:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 486FB28942 for ; Sun, 18 Feb 2018 20:40:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AA392893D; Sun, 18 Feb 2018 20:40:20 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8AA328898 for ; Sun, 18 Feb 2018 20:40:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbeBRUkO (ORCPT ); Sun, 18 Feb 2018 15:40:14 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54159 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751598AbeBRUkN (ORCPT ); Sun, 18 Feb 2018 15:40:13 -0500 Received: by mail-wm0-f67.google.com with SMTP id t74so11702831wme.3 for ; Sun, 18 Feb 2018 12:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iOWz28xISqDtt+60AUtcCH+fGF2O7BjIRh77cHt9qXw=; b=TYlG6sPxEE0pQ6cVzI9OmD7ayr4SoztZa8t/4R2+BPUXVaJzsclQT9gcQCjY8YjqxV /fev/nqkkfsXxKpuT++WOtsWsqWaxaCUehimV1k45RlQxzQif5iAKP6krYPuUNc1jE2w YdtBSdpHmb0M1mGeiRi18teicOkvGQHXbr02sKkd/2p2EZNWK8rE+CkQ573XnKnb6I7Z O2XwN/8+oc2EqIa0/JSxkhpTzzWV2s7xfvXkXL26zl9YxsAg1fT2Yd5FIZ9KpJv3xGH7 F5pvALNsu89m38NHQFK3cIPi7EfbH6n1nm0HQJEy+qK7uOfT4Y82sHUUT71Do6fOJMCc QpcQ== 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; bh=iOWz28xISqDtt+60AUtcCH+fGF2O7BjIRh77cHt9qXw=; b=o5oSbTM/JsbvBr0plJFEZO2zptW5sfQwqKOISpHjqJ9HqWN8GTcGbed2iwt5ysdXfA rMXejFloRiaj+YNvQNv0EvbQzYqXD1RleGC9gT95m2eDj5IdOqDImK7qgF/9CtXyo1sB rfhjChJMYGiUb19T/q9JchBW1GaGx3SKHv4fqPfCsuWhSuO/dJQVGfeYaYFc1O3sjDxz G0O6WsBh/cUgmI+XLw+LLnVuAZb760aNKvrd/4WLbz03B4IUzaHiE8a1eAcwAS2cSusL +4HmposYz9jaAV8lfn++D0Au4BjDDF+qkmIs4oV05+GzN2oPwRW9zCUGZhp5E+AUEJ+l G3hA== X-Gm-Message-State: APf1xPBrU8+GWFPuG0UbZ4wGjslRKBg0wepmvxRIpQTNKY6JvXjMUTK9 aeuXJVXszEox0a1dTBVqUO5vTwHUhqs= X-Google-Smtp-Source: AH8x227yuA1LMgHyzIpKDA28gH0p7duwHKKUBCfsB9S3xbuXE05Z4obY5lbfudn8EUi3qSwcFg6/GA== X-Received: by 10.28.197.65 with SMTP id v62mr3922873wmf.3.1518986411857; Sun, 18 Feb 2018 12:40:11 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [70.74.179.152]) by smtp.gmail.com with ESMTPSA id 81sm19948443wmi.26.2018.02.18.12.40.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 12:40:09 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1enVkj-0001xH-W1; Sun, 18 Feb 2018 13:40:05 -0700 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Jason Gunthorpe Subject: [PATCH rdma-core 6/6] Have travis test all three IOCTL_MODE's Date: Sun, 18 Feb 2018 13:40:02 -0700 Message-Id: <20180218204002.7408-7-jgg@ziepe.ca> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180218204002.7408-1-jgg@ziepe.ca> References: <20180218204002.7408-1-jgg@ziepe.ca> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jason Gunthorpe Use the existing compiler runs to get coverage. 'both' leaves the most code enabled so use it as the default. The debian build will cover the default mode of 'write'. Signed-off-by: Jason Gunthorpe --- buildlib/travis-build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildlib/travis-build b/buildlib/travis-build index cb5c1149a43ab8..b0b00b23b3378b 100755 --- a/buildlib/travis-build +++ b/buildlib/travis-build @@ -9,7 +9,7 @@ mkdir build-clang build32 build-sparse build-aarch64 # Build with latest clang first cd build-clang -CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. +CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both ninja ../buildlib/check-build --src .. --cc clang-5.0 @@ -17,19 +17,19 @@ ninja cd ../build32 # travis's trusty is not configured in a way that enables all 32 bit # packages. We could fix this with some sudo stuff.. For now turn off libnl -CC=gcc-7 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 +CC=gcc-7 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 -DIOCTL_MODE=both ninja # aarch64 build to check compilation on ARM 64bit platform cd ../build-aarch64 -CC=$HOME/aarch64/bin/aarch64-linux-gnu-gcc CFLAGS="-Werror -Wno-maybe-uninitialized" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 +CC=$HOME/aarch64/bin/aarch64-linux-gnu-gcc CFLAGS="-Werror -Wno-maybe-uninitialized" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 -DIOCTL_MODE=ioctl ninja # Run sparse on the subdirectories which are sparse clean cd ../build-sparse mv ../CMakeLists.txt ../CMakeLists-orig.txt grep -v "# NO SPARSE" ../CMakeLists-orig.txt > ../CMakeLists.txt -CC=cgcc CFLAGS="-Werror" cmake -GNinja .. +CC=cgcc CFLAGS="-Werror" cmake -GNinja .. -DIOCTL_MODE=both ninja | grep -v '^\[' | tee out # sparse does not fail gcc on messages if [ -s out ]; then @@ -42,7 +42,7 @@ cd ../build-clang cp ../util/udma_barrier.h ../util/udma_barrier.h.old echo "#error Fail" >> ../util/udma_barrier.h rm CMakeCache.txt -CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. +CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both ninja cp ../util/udma_barrier.h.old ../util/udma_barrier.h