From patchwork Wed Sep 4 21:22:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 173073 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp454746ilq; Wed, 4 Sep 2019 14:23:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+nhyNjQd4bCmxiag6Mwx8T7lmUS+X+26o8SU+r879InZmaNPEPu7ZmYpOMAxBjpbWoQZA X-Received: by 2002:a63:7b18:: with SMTP id w24mr170852pgc.328.1567632187248; Wed, 04 Sep 2019 14:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632187; cv=none; d=google.com; s=arc-20160816; b=CDW6bF3c58+DCtdxPLyK0vteC2NdAgRqR9udtFYndwt0KTeCC24/RMl1lWTTULiVbY sGYAsCq70hh85KXKWJXtIGFhi4kkTU0q2sq9qkV4mlRMfoSPH9BSBN8654ue6ERBq85i Fb6d3H1E0wuC/7NfEoxgJIYonjtaJzMqcaVwtlOfa03CZl3foFtEMM6lezHJYiDJ6wep Na3VPrTXEorDaZimyOLtFthBDHUQsYS9txtrHzs5Qlwx2AUd08C7lmd19DEYu3kmtmbo 9EU8Vv1E+35/7jzW44WpApymweiJjs+f/bUYeM6DDiCvvytxanmP1XgzURYBcbe96zVD Izbg== 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=VELPA8vWD/mcLrS9UauXguDf7ixtJJdVN2YXOgxMa89gA1Q7BRE1Zi7/SxB9sS0PKB K/lgGe5yPQ66xW7PBBvF+Bu4H1upC+BGoiRi2j4g8L7Glh9G9jZ3PtNdg6mxYXHlFv2s VdVfq08SMdWRW5sYlHO6tYKt57rauwtUx8HiCvONo47CeYHdugZBO35Nm20T3960BpyC TxexcLBmoD5yfTDVb6Nywx2RcJ71MSeviXGogHqLvw5uviwfFesjPko+x74yE65yCna8 IpU4lmV8aRqvWaCVMgFR+idCa6f6XTqfcIbbPWcBGsqmebR/hfTi4tJ5WjTVu2ntC9iv /+Cw== 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 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 r9si84420plo.104.2019.09.04.14.23.07; Wed, 04 Sep 2019 14:23:07 -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=JxOWBX3K; 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 S1730364AbfIDVXG (ORCPT + 8 others); Wed, 4 Sep 2019 17:23:06 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:42650 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbfIDVXF (ORCPT ); Wed, 4 Sep 2019 17:23:05 -0400 Received: by mail-lj1-f196.google.com with SMTP id y23so171305lje.9 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=fRetIQgO/VXA1D32jDE/8q0btoXJ6PkKQuBi/jJ3ZKCqKU0Cnk0jv3dXvBlvKnJ0UJ dEJ96SCv4DP2DRAajmX2sQkNNrJXJJpaS8I2Dj8HL/vrov5sZNXTfgOfz7cm8NgA7FWs 9C2/FKBgDLPBDVni6UjR+DfwCBPFKraDFL9ELvK4ijRI1CYHijX0fWctjVfMf8ybM79+ eSy0Zt0gcm1qgdK8U+kMELr/roUIIM9dQffzdB0/JhxTIbHSTqEpgHrjPqcZ6vp0uafR NZ/wlJfRMyV/Z+OdAm9Q5qsVV70eYtelqCaZC3swYHV46HNwaqSWc/FbALjBFh36fQuR lOJQ== X-Gm-Message-State: APjAAAVw5lf85RggYweqAQYPDWHewWC9iqnKBXFgB0dXJogmh/V4H+me EpFpnL0luYlvx3lQ/AagKKYU9w== 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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(-) -- 2.17.1 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