From patchwork Mon Sep 16 10:54: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: 173822 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp3337720ilq; Mon, 16 Sep 2019 03:54:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7QhEeFiQAf674G+Tq+fVhTngPijNmNttX3C29JXOo9IrJ08DEjct8qDg/S8xXY6pdnVcd X-Received: by 2002:a17:906:e2d8:: with SMTP id gr24mr5801984ejb.55.1568631288149; Mon, 16 Sep 2019 03:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568631288; cv=none; d=google.com; s=arc-20160816; b=hWIE3iHTKbsxfRji5IwONMj3v2yTYkn3G8NyvFcVYdUu4u+LE6Pre57jlMeASnrmwK Pn7voHPJlVWnH6XtW/k8+2FltuLQ1tnTFCHgmRI2oHmn9ou+44PZksk3xUUeYmYnlFT6 j+uXn9lIbabRN2St57xJ4CMVupC2fdTpZquuj3RCclHKjaY7Pw6Q8cjF3jWcH37ooN7s uq6OIfMX0YQPBpsOapcQOI7XYR7EQFUDQbC5krV+W58TgEA8M4Hn/Z5C7RK0CUZrAfst snwFc7XL3AgvsxcYeXcnB7Ju6DouZFni0XBQ7vvcCenKaI3mQI3jIAuGIYoSXY5dlsCb Gf6w== 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=6kzj0QUIRS1sDUroHtM76x4Sw0PaH661mS2z6H9lrYY=; b=t1iVaiISUpBLgCSCoP4iYF3sXBPz2lfDH4HDvlkt31XAEG+tely3xUR1qwUrbZ3NAR EHiCDMwlQxcotO9RfdnuKeChe+VCXzElRZuOQNoKQJ9o22s3c5UEYhsomSN3nD01KB83 zptIxNwNsROMtqb5QH0RlpfFHDPz3DkZrI0POtL5k9d1iJEYPYyfqUvHd8HITGWt8XUQ 8eDWyPpOeTuHYM3vmAWxs/+fdmmqnxjCDdLduxyEoeEHeHtGOvAQAIEDPc8McsndM2Nf bsRe0QGh3tDw3Pch0y6iVLOdCaRYMzWVSOUIy/30oeTtCpTmeD5OMefNkbgcVD466lHS l9ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LYey3wmg; 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 b13si21252224edt.403.2019.09.16.03.54.47; Mon, 16 Sep 2019 03:54:48 -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=LYey3wmg; 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 S1732446AbfIPKyn (ORCPT + 27 others); Mon, 16 Sep 2019 06:54:43 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39210 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbfIPKyn (ORCPT ); Mon, 16 Sep 2019 06:54:43 -0400 Received: by mail-lf1-f65.google.com with SMTP id 72so784265lfh.6 for ; Mon, 16 Sep 2019 03:54:42 -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=6kzj0QUIRS1sDUroHtM76x4Sw0PaH661mS2z6H9lrYY=; b=LYey3wmgdmHy2NTiQkVRdiP/+xWiXr7/VhQu0JvCqcUIAToMMaoYBOM6JFuBqaxkZ1 JfYQeW6MTnVu/A2LKmVE2hLug+wszlySKPK3lLmm5cC6B8YCZTCUrLGdZnxzx1ACnH70 UB4kW6+0PoqV7L3+af21M7FxoqOZMXAUDxZSKtf5Wwlpf/fPZeNLIS3PaJbluIKMIsao zeKD032jBuH34HlHMsQ2ZAaBWHjzEdEuE2cwW2q876Uoe+JjqzWdVvHCsWaR/4ByQm/a uhSDh/DlVgXPaV80sBavReU3gg/Ek+7zUMmJllxUFjANBPZRlVHU2OI0ORj/g+vLAgMn Ac7g== 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=6kzj0QUIRS1sDUroHtM76x4Sw0PaH661mS2z6H9lrYY=; b=rCsTqa2zcgVIs1zPjmlv6Dav0MFqyPA114W18rxcaevt1vmh3ab6bmWXb+8WxERwZx 3ReFMBWWqCIJaUPInKQBUtLcef3xGZFm4q+W2FMjO/fvkCaPtML5xugHAS9xOJ+/hN0E 7XBosrD/MFB/2ttll/ePzcBSRQJL7wR0eSdx+CI4lCOnA57KulOEQv+3XP6oLffpNfL1 2NzbZlxnPVywfVW9k7N6eqNEICGzPcCcCfyDsvkUFmbRvAGjOzRG4Gr7l/0qIm17fLTn P6i1zIRfAndCF5Aa1FRr3iLY8Tdl+4wSbOUy8BHoySMbI0ZBv0OVsFBmcGaBYAYkobqJ O61g== X-Gm-Message-State: APjAAAV/U7/tnd9BmvC/IyhfwdjusQDaQvAoQv1BsWTyTc46Olz4lWlf 4tcBP1L7PBzBJVHGPJjgT8mdNA== X-Received: by 2002:ac2:4ad9:: with SMTP id m25mr11489559lfp.89.1568631281688; Mon, 16 Sep 2019 03:54: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 v1sm8987737lfq.89.2019.09.16.03.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 03:54:41 -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, sergei.shtylyov@cogentembedded.com, Ivan Khoronzhuk Subject: [PATCH v3 bpf-next 01/14] samples: bpf: makefile: fix HDR_PROBE "echo" Date: Mon, 16 Sep 2019 13:54:20 +0300 Message-Id: <20190916105433.11404-2-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190916105433.11404-1-ivan.khoronzhuk@linaro.org> References: <20190916105433.11404-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 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)