From patchwork Fri Oct 11 00:27:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 175883 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp41374ill; Thu, 10 Oct 2019 17:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgSD3XVG0Zp3gfah0ZlelW2LViQZrq6L1Bv5kmjzb8CWXeBT8WoVMHaYJikIY+9Q/U/4vj X-Received: by 2002:a17:906:6847:: with SMTP id a7mr10986274ejs.261.1570753705724; Thu, 10 Oct 2019 17:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570753705; cv=none; d=google.com; s=arc-20160816; b=puOy+MEFntJRIrP1WS/mtbSdQrJi3mgkIIauIuq79+ZVP0CmtyJnkKbf2B1R/uKydz ZV1OkDhm6K0gRVPUXKLuAnJYuI5wLYwgYvfjPL8lcorCfB9YWnMEHh4INJZUr8JE03zq Wvg6Ae1FxIWRgMQClHFrXPY6fdeZC2JDFncTFDSzpuo2TusB7IPGv1Wtu2QQapayFekr l1pyzHadZ6Ko/JyMCDg9sdyC4uWFHcIYRhcdB01ONuquU3u0WzPtJ9yyyshf0Z1F719h XaWonCzGHHsKKZLIER09shzAMViBx5/1Ue2/tOi8M13+xBLh08gfHxmKKtK9rV+4ar8z EFjQ== 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=rC9SMV92VCkp1Gr2RjsUAyri6h3CbwRZLjtMRm5Ly2A=; b=u9Hu+yT1WJ7jQKt/bTWiLBVTBqeGzGbnyF1FEqMyVDamZd9Mxo3eVDgrJ0Cb9aD6/4 CA09YHxw5IKN21lxdte8PdaO0b0ZPHhYtBJlcQ/GaVP4p8D5AxVgkQTgDakHUCGU8kPf GK7wgXUzaaZb6C0dI3ALbR2eF4tw9+m18wEgTJ+lWngNxxwY7JOlBqnM5hqAzV2+Xurl XFXGf8CvAll1SnMsC2RU3F1POyf53fR4rJcMbdJAoQvYdFnASxWFcA/jLcmvYmnmWNEH wxhgqks0eqfSSSE4wnaQy4H4skChdQEfU7Qb5fV4PY8Hdnbfsm/WAledZvGYwx4W9wJB t1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n7n7nGtk; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 k9si4873076edb.56.2019.10.10.17.28.25; Thu, 10 Oct 2019 17:28:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=n7n7nGtk; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1727521AbfJKA2Y (ORCPT + 8 others); Thu, 10 Oct 2019 20:28:24 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40308 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726096AbfJKA2Y (ORCPT ); Thu, 10 Oct 2019 20:28:24 -0400 Received: by mail-lj1-f195.google.com with SMTP id 7so8024661ljw.7 for ; Thu, 10 Oct 2019 17:28:23 -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=rC9SMV92VCkp1Gr2RjsUAyri6h3CbwRZLjtMRm5Ly2A=; b=n7n7nGtk8cu5ldPiMWOVomq4IEoWhI8D15Ro7zik+00sQm//xyM9I+QPGkMobvspt8 b8cREF9EORqoA5SWIjR3MntFr/B5gcO7egbGxamOkAZsyMLW4wsvjJ71ustx90ZW7Zox a26jCnVWe4t7ZpxHs374/UViRLdmkrOhijdiHEaWbSc3bSI0mR+ncJHp35MXgsx7pfO4 ZnIc3WwmA8pNB5cdja5tXOTrUIhlLhz4H3SNnNzvfbDOUIliSpXiriwzPFCNIAgENdY+ U9oQzLwdKI3K9JqLDHwYPTKvh7MSy3zHuNPKEd/9yOT21UMav04Ui0pWdf2di+uvaxi+ 7yuQ== 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=rC9SMV92VCkp1Gr2RjsUAyri6h3CbwRZLjtMRm5Ly2A=; b=krXtvibiJUB/YRZdXV6JfsIYUpjv0jo1BHI/Oh3Vkozv+8MbXtgy+1JM/FsKKhYxJ7 tqmC8arR5Cyvx3aXGd27YhS4M/OU2BuERM7S8LYoK//cmlTC6UcaB6/m1nd8E+QxUJA3 7/lrTn5ZnJyckomU8uAZNfC+rV2F06TRtg5rjCj7vJOswOYi1Qlx7UNnbCcjhTuSJJqB eDj0WlKym7ouVKXDQgJUhCQHj8g4GH2Zdlz9FrAvi0kjYPsr/yVhYsCBJQUNZpdqoqGC ZoimmgK9TitBOF6mh7kI8egBv9LB99HebqPqtENy8x4TTS8GsoQD9MvbfXEKwAc5toSP AAZw== X-Gm-Message-State: APjAAAUoqggMOFBdCUgJuA40vI4TJLWvlQhc7rclBNA1zZ+B3SORArji c1pY01rAO+unhSgsW02ybJmYUg== X-Received: by 2002:a2e:9a43:: with SMTP id k3mr7415360ljj.70.1570753702298; Thu, 10 Oct 2019 17:28:22 -0700 (PDT) Received: from localhost.localdomain (88-201-94-178.pool.ukrtel.net. [178.94.201.88]) by smtp.gmail.com with ESMTPSA id 126sm2367010lfh.45.2019.10.10.17.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 17:28:21 -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 v5 bpf-next 01/15] samples/bpf: fix HDR_PROBE "echo" Date: Fri, 11 Oct 2019 03:27:54 +0300 Message-Id: <20191011002808.28206-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> References: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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. Acked-by: Andrii Nakryiko 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 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)