From patchwork Wed Oct 9 20:41:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 175680 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1263951ill; Wed, 9 Oct 2019 13:41:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjWV8ftqIhJbSQZoSurINIdxIRDhM/9rKyIFBvrWxsh6wVjNnqd9EYOjhWl6ga1apvcvdW X-Received: by 2002:a17:906:c4a:: with SMTP id t10mr4762553ejf.290.1570653707494; Wed, 09 Oct 2019 13:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570653707; cv=none; d=google.com; s=arc-20160816; b=V1U5u+rRnmyE6ny4eJNCOnWvnFpkYXOJzMBE+Pinds6HSrYN6LzV3ALALM0cHRvxPX o6XVV/A10a3Cx0N0vePsTO4mXhzAc3ulcrr/2LyaSy5qE9kh/ZG6S1IrDWekrBBImQ7d N6kgdD4DuOEx7NnSbXl/PkkkJJKO4HIALLf6ZtbyVVZKQPaMzcLzP+FPBNIX6zMj/eXr aVEDMZZFAFoJ5xBzWLCHZ38v/CS+Y3lWy9a6/XO/OfGq6rsXlDfkzdq5MBWOhL2rUvFz tCgEgESKIV33gqfkN8/AqqLkfcrH8p/iLUrjYkAFADxdgzkD/eOFebFggDsJBhJ7RVs5 8b2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2DEOdiE8/KIZvnfCC36ibwWDO7fSHTP8+q9sblSZNeo=; b=wvS4LiTN9EPxjVlb+RgGkXs15Hh+tMxUKYRtu+Eqnex1XWweB9Cl2bnEEOWIcPvM7H ldnUsAEmUNME9RYYBGmyUBUuhkMwhpRQQ4ySluNJFieGBPOirpE+cEvJ6x9+CjoaDA43 v1At22aNAxbSdKZ7GYnK7pRjc8bwWf/u5/9xTikIVOaUb3qaXBsCdLVh1fzROPX0oLuG 6CvX+FK1JPkX9qjbdfAy+aGDIdBxhUJy7X+D8dTOvFByaKg7qAMuNOka4XvkblMNMnEz igExzeiAz9sjMgzg80dN3cEUmgcIWy13AdvuUN7ZbTZ0ily7ehGO+m889KO/AxT/UfK4 Nnig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wpG/4/be"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si1802319ejr.296.2019.10.09.13.41.47; Wed, 09 Oct 2019 13:41:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wpG/4/be"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731947AbfJIUln (ORCPT + 26 others); Wed, 9 Oct 2019 16:41:43 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:40758 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731763AbfJIUln (ORCPT ); Wed, 9 Oct 2019 16:41:43 -0400 Received: by mail-lj1-f196.google.com with SMTP id 7so3868291ljw.7 for ; Wed, 09 Oct 2019 13:41:41 -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; bh=2DEOdiE8/KIZvnfCC36ibwWDO7fSHTP8+q9sblSZNeo=; b=wpG/4/be0Dkrcg2e3d2Y6P+Upb+QU97CDfnDDCAn0RZufZUtdAx4AGsbcIMxg82aDO hw0WOfvamsi/rNt1zNO5fb14dk0jx3eyiTZFvuTkb0d9KpIqNcCWRxb46uHn5Qil4BlD q6vA7R/HM5QpM2awInIHF3ZgnYuF8dILcbK676IpP36a7RSZLIpipstVdglbWxnYbUD/ /JNFNNkTlXTtk9xHGsIqLXwztiHgyArDwz2jGOpFIVC8hw+R8sN7gXdyvC8M9qowpQ6A 9Z2k0uxxen5TorR1/0SCZlZ2ku4Exm6NIObX4s/A/Zaq3jcK8MtfnX3qBOM/6QSXGZ4O nmEQ== 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=2DEOdiE8/KIZvnfCC36ibwWDO7fSHTP8+q9sblSZNeo=; b=LYhyNU1+YenQQDQC4wh99RWjNOTqtMGGLOFLokK5PxAwJfTncYtnoImVRPCBmcOrUY G0BGgVu7gevd8fvx0glq9/R5Sw8ql/pXlktoDrO6DXpupsldwJfj7LITfn52KFKkj4oy stdXOI3Lts725MOCaCehgI6OA0EvyZLvjpkn78srQ3UEikFVyvkepIHkuaIhNctR4E1Q UcwVcUZil/r1zbApUdq93tVElsPezmiZwrBCTeyBptuFQNJZwFXesiOsEatjWa6IKZpv bGKontH/EQ7HQLjmin5fnm8ZF4eoZmxxSTnAejld5ysHt/8vdtzkv7/KtpEuxzoJPlo7 oSlw== X-Gm-Message-State: APjAAAVHt+nPqPrRESMgiSuPAv/FNJDZu/zBTS49XSeTnr/z6xiLySzB G23gHA9K8lnP4ONhMeu4xmPgUg== X-Received: by 2002:a2e:286:: with SMTP id y6mr3679786lje.184.1570653701016; Wed, 09 Oct 2019 13:41:41 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id h3sm730871ljf.12.2019.10.09.13.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 13:41:40 -0700 (PDT) From: Ivan Khoronzhuk To: ast@kernel.org, daniel@iogearbox.net, yhs@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, hawk@kernel.org, john.fastabend@gmail.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, ilias.apalodimas@linaro.org, sergei.shtylyov@cogentembedded.com, Ivan Khoronzhuk Subject: [PATCH v4 bpf-next 01/15] samples/bpf: fix HDR_PROBE "echo" Date: Wed, 9 Oct 2019 23:41:20 +0300 Message-Id: <20191009204134.26960-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191009204134.26960-1-ivan.khoronzhuk@linaro.org> References: <20191009204134.26960-1-ivan.khoronzhuk@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org echo should be replaced with echo -e to handle '\n' correctly, but instead, replace it with printf as some systems can't handle echo -e. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Andrii Nakryiko diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index a11d7270583d..4f61725b1d86 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -201,7 +201,7 @@ endif # Don't evaluate probes and warnings if we need to run make recursively ifneq ($(src),) -HDR_PROBE := $(shell echo "\#include \n struct list_head { int a; }; int main() { return 0; }" | \ +HDR_PROBE := $(shell printf "\#include \n struct list_head { int a; }; int main() { return 0; }" | \ $(HOSTCC) $(KBUILD_HOSTCFLAGS) -x c - -o /dev/null 2>/dev/null && \ echo okay)