From patchwork Tue Sep 10 10:38: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: 173497 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5609594ilq; Tue, 10 Sep 2019 03:38:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqtFRZlGx9kKtZHOiZJo6fmHmgAxg1vVY0g5hZ9sHmvyGkO0TCSpxKuxpE/cSC5/k0aiR3 X-Received: by 2002:a17:906:c304:: with SMTP id s4mr24095530ejz.71.1568111921988; Tue, 10 Sep 2019 03:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568111921; cv=none; d=google.com; s=arc-20160816; b=bk+Qi4YOlzBcGG+rTuQwd98mommGY5UceT5kF77+kZQGXRM8lR1v3+zFHvdJyuDZlH K3t3R4L3tk/iWK3yfp05U2hZ+NJq/wQqd4qKi8/F2LhjLyrXXHQM6GI4usV1so34I+JB MGT4pDo1uyQL8eqjI/DEbl+6rNLCslJG4oCaSJUvjnjS5wr7DdW3apDgmt4FnPryqJB4 0D5p5aI6LIXLs8/6yNuJvFkOPhRnQMmcl9zIGrFlsrJb47HebGVLLrn8I3LwX5gUr09n aGV09lX6ITq7FNBqaTgKkX4ArY1JDzKohvTjtvCjfxk3H1M6azL3N8ZXt8Lo9x+BkRH5 HFgA== 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=NGKQzll/A9IaEu36OmTkFVayy8Bwv+m3n0iuRSm1M6Y=; b=AqxXnyBAsnN6Qdpqe2jBxXcwo+FmgqioVkmXHlVEepbCi1SrrbZ851qjYaksK5Pblh bccZa4HYxHPhEHiiI0hE0lR9y/iYL+Io8x1ln226Qa2cIYW/wWcCR/zJotnBKFOD5VO8 ijrPcoP4RAjXLsBGsyuGq/BGYq+jQW/Qsn9LgKT3V4NdFyzmvDDm4De1xzzA72/z3iJy 3J7Wibef7O1AqjQ7rX3jIU+q7O5ymg8G0qNFILGOKHuMWtRs8RUBeCvqkdl250MSDaPH iHC17b2nWciY3ddhUCQEW/UVjX7z23qaOpFE792K0CrAiObcvoudin8GQZtiYjgx0xFB XaWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ABzAt76o; 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 f12si8234488ejt.234.2019.09.10.03.38.41; Tue, 10 Sep 2019 03:38:41 -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=ABzAt76o; 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 S2393806AbfIJKik (ORCPT + 27 others); Tue, 10 Sep 2019 06:38:40 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45931 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388984AbfIJKik (ORCPT ); Tue, 10 Sep 2019 06:38:40 -0400 Received: by mail-lj1-f196.google.com with SMTP id q64so5343711ljb.12 for ; Tue, 10 Sep 2019 03:38:39 -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=NGKQzll/A9IaEu36OmTkFVayy8Bwv+m3n0iuRSm1M6Y=; b=ABzAt76oNXU0+8r79M+Uq/vNmBPlKtTMxdiCXMEvHZE5RCKq3QqV2iBKiCEqCQMDfD 5MRDIcIUmhICZ3oxwsncRXUExmaAd9uO3zO0pf2FzyrZMXEgHWGUsMrthX1YCuT8uNr8 Fy0s+pdJsRFxY31Gq1uTHRY9vyjkZ4Lx/gplROpBnTB/nyNhoWEI9RhKa13TJTdcaqC9 qsDUhmIGRXpmc/qhpPCYEP73F4LEXLy/8Q1Cw3S1pNBR2BYa3qjcBMPKNVQUbuY7MZyb DEINpV16u8PrEGM44UFFxvEoPR+mFi0diwU1Esg8Xd3hntXMUtO/QSHNxqgy9MXXYTPm aZLw== 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=NGKQzll/A9IaEu36OmTkFVayy8Bwv+m3n0iuRSm1M6Y=; b=oJfX/eI7is2UBHuYKgTexX5+BkrydJuaOWeWNoD5JXSLGpuMR8bgIjxXYTSyW8KEC+ rDwuR+RbLATCNCy6EnSGQbjLT34kS3cqHQG+Y2Ho8oOV1lvZpHwHMBbhGP5hv4077r/i TsvFvy1zj3P3wsY4MTQZ5EDM/Lw1oGkqOYsW1MN3OzQ3khE5P7BtoDFHfDBp2+OZptKk rijfgAEifWiRj3Gv5vcBoTXx2fzVUDJR7kcgXXDEWWXfiGbB+OpqNRdGYESC0mMYr5AL 2QttP+TlTvlkjB/XvIQeRqA9cVB+sdUsB/0kwRyFLUIrHjDppkvRA64Nii9DKngjTAq6 EqQQ== X-Gm-Message-State: APjAAAWNsVfw1N6kyWksBLdWcREw9id7qTO3rwryPhmcLeFlNGoQs0u2 a0Pz+Ei54Kf4icRP8BKi0y1zJA== X-Received: by 2002:a2e:5456:: with SMTP id y22mr19750906ljd.60.1568111918957; Tue, 10 Sep 2019 03:38:38 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id g5sm4005563lfh.2.2019.09.10.03.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 03:38:38 -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 01/11] samples: bpf: makefile: fix HDR_PROBE "echo" Date: Tue, 10 Sep 2019 13:38:20 +0300 Message-Id: <20190910103830.20794-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190910103830.20794-1-ivan.khoronzhuk@linaro.org> References: <20190910103830.20794-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(-) -- 2.17.1 diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 1d9be26b4edd..f50ca852c2a8 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)