Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp26661ybe; Wed, 4 Sep 2019 14:26:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTi41XdL7Kz+tBB1eRp27CX75Yr6ZVmo/8k6qD+uCYfkbdNl24ed8hf+2P2SohnFzpbu1f X-Received: by 2002:a17:902:6bc7:: with SMTP id m7mr43582495plt.60.1567632413201; Wed, 04 Sep 2019 14:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632413; cv=none; d=google.com; s=arc-20160816; b=X06Ae5Cmp4ZQ7iUq1n4nXwUyKqErO9y4mzv35i2DtLxFEp/YL0eRFuOd7RuUWzLZ9E vnlAjF+7pOLdcItWnbZOMsiVrqgtjz9LiRgfpP2C5sKhbqY3sDboQz62uJ96Cfnk0JhA ZTFpoLTv69IRdzNkavYP4vtFLfeNQlgezsv02BNMLQ9bb4GTmbURtXsxy/qT+PJMJ/Xu h9/N25yhtceWFA6djycgFP1+kZmpQJy7t/fbW8hEductqecEI5LWVJglQHKIE59WbgmN cDTGjKG4oOkb6T9NdJkciBMse1DwsafRsc5SmTncCwEL45YM6be97I5dewYMZdaBwoSf 3h1A== 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=1A0DTH8yoCPJNcxERaZ+ijIkUOQqqgHSIHaATGrPTFQ=; b=yNrMbygXhggoIB9HNxunb2zAHH/T06JARbjndnIyKDk0wVSkfKaZ+GrGHJiRDnqsUe um9vqQGJA5VJffkoPN77L04gbS2Qp2BkMOTVa0EWjv/bcgAcrvRMiKZbO0r/kM1AH0KG jxrLEPwwcTPaiUMkdAMxsgEeKu+G6zZq108T2mo+ClAkOZBShnvMxf+SnH+NzSytvPzc v8truWSLkoG9+22DRy7Wl0XAnTgNKAip1WMUe/7HsjEUq42H5M8IsibTNZMEI9XJDH3g ZgpfRLkocAGXdHVtW4X3Nc/meFvyT3L1pDtgztcT/uEcf89cjHYPbRb9UXop9XX9E4iG uHeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JxOWBX3K; 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 p16si68878plr.234.2019.09.04.14.26.37; Wed, 04 Sep 2019 14:26:53 -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=JxOWBX3K; 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 S1730849AbfIDVXi (ORCPT + 99 others); Wed, 4 Sep 2019 17:23:38 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35468 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730224AbfIDVXF (ORCPT ); Wed, 4 Sep 2019 17:23:05 -0400 Received: by mail-lj1-f194.google.com with SMTP id l14so213268lje.2 for ; Wed, 04 Sep 2019 14:23:04 -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=1A0DTH8yoCPJNcxERaZ+ijIkUOQqqgHSIHaATGrPTFQ=; b=JxOWBX3K7ATM3R5k6qLko7irOYaDDp/EgE8lqfrCSuMD68Wxvfb5wgkZ5UbBXSNViD R37hhdMVyVTttgCsjHZkCQK2sZsQ/+mOjH2MmEnjoNubt0fsAOh+YGAb5XgJJ7CiMDVm Oj0dm134XL61kE1LH53qBXVlpjUIpWHL04VEkk0t0hzqmk6ihGiJu1fwZYv8qOnE/agN s0JL+ECqalNyE3mSNjOsv45sWpYK0MD9Xb5RhXGiwzcJlKmj7RfFCi0Mx8TMIsSEXmwf 3pc3CzpYyw4n2l94LKGE5Ws0K3mJNjjYb6vSUrZ64UMhnFZ6v1EEzgCkPrikOTSfU4Kj g8Dg== 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=1A0DTH8yoCPJNcxERaZ+ijIkUOQqqgHSIHaATGrPTFQ=; b=bYL/K994c4ojCZ+md7uN1aSGvGIih6BjwdY4WuhSh5bLi1XLf0KqgAsuRTegqs1eaI Nq0JgKgBc1cEQPipaQb8wFjy5oBJ+6v+PBpOfH1kNV91FipueD5ZZslsiZVUjT7vKmBP mXER4Yk0s4B9DW9nhpTzuRJN93xFMasVvFH6nNxarsuZijwix098q0n/FFTLRSV3fm07 5Ot/DIwIkH5rOfZmBSmgKVLDHUZICz3h08SOVVZmAos56l3aNUoqCR2ZVKJVX5cC2lpH GSPA5PUjyp5t5krqnxu3HKLX6Ihq76nF6cR1p60qlyJz3PDlKWP/G86VJqzjGU119kaF DGCQ== X-Gm-Message-State: APjAAAWUG4xQuYet8FmhwPrOJQitCaCyUFtD4n4RRuScKgAdrAbZv3Lp j53xIRdQpu9tKA5vuPsOHZeJrQ== X-Received: by 2002:a2e:7210:: with SMTP id n16mr14294364ljc.235.1567632183622; Wed, 04 Sep 2019 14:23:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 14:23:03 -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 2/8] samples: bpf: Makefile: remove target for native build Date: Thu, 5 Sep 2019 00:22:06 +0300 Message-Id: <20190904212212.13052-3-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 No need to set --target for native build, at least for arm, the default target will be used anyway. In case of arm, for at least clang 5 - 10 it causes error like: clang: warning: unknown platform, assuming -mfloat-abi=soft LLVM ERROR: Unsupported calling convention make[2]: *** [/home/root/snapshot/samples/bpf/Makefile:299: /home/root/snapshot/samples/bpf/sockex1_kern.o] Error 1 Only set to real triple helps: --target=arm-linux-gnueabihf or just drop the target key to use default one. Decision to just drop it and thus default target will be used (wich is native), looks better. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 61b7394b811e..a2953357927e 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -197,8 +197,6 @@ BTF_PAHOLE ?= pahole ifdef CROSS_COMPILE HOSTCC = $(CROSS_COMPILE)gcc CLANG_ARCH_ARGS = --target=$(notdir $(CROSS_COMPILE:%-=%)) -else -CLANG_ARCH_ARGS = -target $(ARCH) endif # Don't evaluate probes and warnings if we need to run make recursively -- 2.17.1