From patchwork Thu May 10 22:26:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Stringer X-Patchwork-Id: 911588 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=wand.net.nz Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ts3klvQ/"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40hnsW5mG0z9s19 for ; Fri, 11 May 2018 08:27:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750758AbeEJW1J (ORCPT ); Thu, 10 May 2018 18:27:09 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:41052 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbeEJW1I (ORCPT ); Thu, 10 May 2018 18:27:08 -0400 Received: by mail-oi0-f67.google.com with SMTP id 11-v6so3155288ois.8 for ; Thu, 10 May 2018 15:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=U+X+4rWWvnx7CMonKmse5hqb1Bw85BN4UmE2x9Jv5Fw=; b=Ts3klvQ/8qlO9mGrJz4pcQC6TnrU3afiw8i0uX5c777lGZrh0eGas+semvLPOpCN9Y GaVHeiRgIcWpKQOtLbcfAqy7iHB9QIgKpTYiVnrFEHTAbZE3aAIlbNoudJdkG0uhGNQa sBy5ylAoOYzYuV2j1A8Ly69xWErSoNvYCRRGZCefg1DYIf4lRIPYsRXAuvxkTUNiZVQL Fy+5qTtrq6r/TArSjca9/94GXwP8jecrJnDeOyNg5vKiOxY0WbkN+YGHONgjKac/rHSo 2D3tcL0Wm33i0JONzHAtaSr0oHTYKu1ygovv33bGJzM84EEqwmFUuySlDp6hbS7rrZfF LZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=U+X+4rWWvnx7CMonKmse5hqb1Bw85BN4UmE2x9Jv5Fw=; b=tGNFijdQVKYzaLtJDqszjDEHJ8E8ns5xkjmttnllQbsq8PfihGLp3NtPKGTPdvBve7 KdUXA/cDqS5pWKXAwBCNQdApT7zR9AmWAvr/pMTXyhGCb8NiOSl9Wj8xEaHmWlw3snEb d3OTj1/KG6TWw9ykDjUw8yd69wKHxaxaZRJ/UlXn8nIFWHXJnEm2aF2GhDrA1HOeYJNk 8ayYLzlRruaA74n3uJR5YfHLETOHkDXhS6ES1n+qd0CD6gK3AObzmOBpCqKyNPTvhhqM B8Psb4dhEsJe+GZ3//O5SIXsDo5wABj8RTlvPMKOD/wdy88R5Q1US+0DwvgZpnFHsr2j ghkw== X-Gm-Message-State: ALKqPweoCKiSSaIVaHh74vmUjB7PKjIBOEbgQf8lDCGmmHP8SyNkglH9 CJ8WQOKTPpUpoyjgMoy9KOwJepxM X-Google-Smtp-Source: AB8JxZqBkjFlG8K6+HDWgg8stAqMpA/tnwkQJ6vRsgCJ21fSvAVTiNNPQ6Hp55anNcRYnOlwXl+3kQ== X-Received: by 2002:aca:f12:: with SMTP id 18-v6mr2025095oip.46.1525991228216; Thu, 10 May 2018 15:27:08 -0700 (PDT) Received: from allosaurus.lan ([99.0.85.34]) by smtp.gmail.com with ESMTPSA id f97-v6sm978516otb.22.2018.05.10.15.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 15:27:07 -0700 (PDT) From: Joe Stringer To: daniel@iogearbox.net Cc: netdev@vger.kernel.org Subject: [PATCH bpf-next] selftests/bpf: Fix bash reference in Makefile Date: Thu, 10 May 2018 15:26:51 -0700 Message-Id: <20180510222651.4817-1-joe@wand.net.nz> X-Mailer: git-send-email 2.14.1 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org '|& ...' is a bash 4.0+ construct which is not guaranteed to be available when using '$(shell ...)' in a Makefile. Fall back to the more portable '2>&1 | ...'. Fixes the following warning during compilation: /bin/sh: 1: Syntax error: "&" unexpected Signed-off-by: Joe Stringer --- tools/testing/selftests/bpf/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 9d762184b805..79d29d6cc719 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -90,9 +90,9 @@ CLANG_FLAGS = -I. -I./include/uapi -I../../../include/uapi \ $(OUTPUT)/test_l4lb_noinline.o: CLANG_FLAGS += -fno-inline $(OUTPUT)/test_xdp_noinline.o: CLANG_FLAGS += -fno-inline -BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help |& grep dwarfris) -BTF_PAHOLE_PROBE := $(shell $(BTF_PAHOLE) --help |& grep BTF) -BTF_OBJCOPY_PROBE := $(shell $(LLVM_OBJCOPY) --version |& grep LLVM) +BTF_LLC_PROBE := $(shell $(LLC) -march=bpf -mattr=help 2>&1 | grep dwarfris) +BTF_PAHOLE_PROBE := $(shell $(BTF_PAHOLE) --help 2>&1 | grep BTF) +BTF_OBJCOPY_PROBE := $(shell $(LLVM_OBJCOPY) --version 2>&1 | grep LLVM) ifneq ($(BTF_LLC_PROBE),) ifneq ($(BTF_PAHOLE_PROBE),)