From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFF80C3A5A9 for ; Wed, 4 Sep 2019 21:23:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96E4F21883 for ; Wed, 4 Sep 2019 21:23:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="w9EqOn0Y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730664AbfIDVXM (ORCPT ); Wed, 4 Sep 2019 17:23:12 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42652 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730453AbfIDVXK (ORCPT ); Wed, 4 Sep 2019 17:23:10 -0400 Received: by mail-lj1-f193.google.com with SMTP id y23so171460lje.9 for ; Wed, 04 Sep 2019 14:23:08 -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=iQdFKRCdsWomZgjBMZ1BG8YTrJG1Rf0I+zDwJUFyFFw=; b=w9EqOn0YY7I/TacD6X6Vjc8n258l7Gc09N11miWY40kBi9+VSoXN++YMfJIjBwnOgK U3UYsWfJKg5xSFSiqtIdn4vm09vAxP+kColVZvJOAOebO8/IuymQKm31SLCXRQOaTCD2 RQ504SX7sSFVdtdwg/+sjWtzgKM9iIoaVLhnL6YyxtwAEBniaR7JWdJ7xfs5miGI91St mWtVSdMkew7dInOa2/bLuyKOckX3QvgY72z4nrryE/Ox706S8eJcxRziKI+q9XvhULll rTMbm4Ywygv/OTteQSOBuv5RG7t75vFyKH3z9GaYJCB4IXyIJFSFqpi4UiXk/eIRbuga Vn+A== 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=iQdFKRCdsWomZgjBMZ1BG8YTrJG1Rf0I+zDwJUFyFFw=; b=OnB9qnsMn+qNMnyapxC8vZdukEK4zelgvFvtkxbW1Qy/jm/9+hhHa+zIrVk+I3Rxpl W3VUJXtg1BBk3lmDkRrqh5fKV+1tvkIiK3Ola+Vn4dTQdxxtazTbng8CaA/axT327Kjk K+QOwRnAOS7z6mbiJkaUuvy93iUkc+Sr6QFrioJYqDx4E1FuW7iATlRsvEIjqOaGx+xY nOkroiiRls6NRbkn9a1LmNySMO7zt9p5cur/CO/7EUfXYM/hqvGXaOvXebcJPEexqh28 Cbxc+OBMy6qYDgFkerIeGW6qn7g37Jzek4LGI2t0M6xlg3iw1zGjp0iNv6UuIIA2hBbR +Ixg== X-Gm-Message-State: APjAAAUVvFNDv/Lm0hZS3rbtpilc9l2BMzCT5ZygikjrhV8q9DAxSEM3 3eV7j2eDGyDKzHml70UNIG/LSA== X-Google-Smtp-Source: APXvYqxxy4yL+QE93HVS8HLmjXpSQ/FFB0MC9wJrZh2UpYDEdXKZCR1E3Ex7r84PkERchX1evfSypA== X-Received: by 2002:a2e:5358:: with SMTP id t24mr15379944ljd.209.1567632188285; Wed, 04 Sep 2019 14:23:08 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id s8sm3540836ljd.94.2019.09.04.14.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 14:23:07 -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, Ivan Khoronzhuk Subject: [PATCH bpf-next 6/8] samples: bpf: makefile: fix HDR_PROBE "echo" Date: Thu, 5 Sep 2019 00:22:10 +0300 Message-Id: <20190904212212.13052-7-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190904212212.13052-1-ivan.khoronzhuk@linaro.org> References: <20190904212212.13052-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 on echo -e to handle \n correctly, but instead, replace it on 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(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 9232efa2b1b3..043f9cc14cdd 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -208,7 +208,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) -- 2.17.1