Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp776309ybp; Fri, 11 Oct 2019 04:17:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLRDVQDXLfPhihRuu97rRtQ5CJTfiOdyPT4ueydKf0/0E1dVVZURxnZ59FOylmt1ehsuRE X-Received: by 2002:a50:ee81:: with SMTP id f1mr12800591edr.243.1570792677407; Fri, 11 Oct 2019 04:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570792677; cv=none; d=google.com; s=arc-20160816; b=feixlCkXI3b1i9M2ROmZo4Jq2f7ZWcNWMNRnkLoh3PKYmQfhLQOO9Y9bpcJEIU7Rf9 NBJwnWOdeV85+2ynGT44PTKJjQnYNoFD1xd51CmOlAY0hv13dXU0wH3wSEaXI+lzEaal iqQGq05ov3L9zpQ/9HlJSy6hgOyi9lkiFUQmrZW9qdsg40MuiTT4Tjnu58t8KimrgaFf qN5Cltvpz67IU8O/SNRh7vSNqK9sQz11TjVM1KLrd+RNMC+ctvRvCcj1lOJcF2tbs/JR 2vfSjAC4YHyMbFsJbbm6kZ2q/0mUG8FcJNYc62l1ujySXpqhtXuaAVDXbvzMbBd6+82U 4gmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:dkim-signature; bh=Ooy01geSvoqL+GgWiguG5Arr/pkbSR9LEwm6vQ6trlA=; b=WUjfe3Lz2wIxWVi6XUfesMEIk/oeefHxHDjHkYPHTfch66k4+o+BvZZdL5isYT6roD T7nW4e+eiWSKtzZP0dzxHx36Vg5nTeVPFU/gJgr5D7vQW32QtCXha+fmTarTGlivikwE FZ/9dN81/P972/l7+1HJroh83XmY5/WNbIiv5VaZ2jHoMymhnEThbX72iSi51nBRbbNL ELNOCY77QLftx/gqAHe6M5Kbi0/xiYunUUyY2JWKCpTM/5qWgGgcXM95iYfctkVlofq4 KfmWIfZhThKHRbuNwJd5M74Oj/DZAcCCg7rcmCSHB2zwLejL1EPE+K9eaa9n3aTJD/8G KCbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=FJGDUtGW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si5469906edc.202.2019.10.11.04.17.34; Fri, 11 Oct 2019 04:17:57 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=FJGDUtGW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727825AbfJKLQL (ORCPT + 99 others); Fri, 11 Oct 2019 07:16:11 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39877 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbfJKLQL (ORCPT ); Fri, 11 Oct 2019 07:16:11 -0400 Received: by mail-lj1-f193.google.com with SMTP id y3so9432587ljj.6 for ; Fri, 11 Oct 2019 04:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ooy01geSvoqL+GgWiguG5Arr/pkbSR9LEwm6vQ6trlA=; b=FJGDUtGWD6dezMdpfiI3yfqw/RLXa3Cf5Y5p0xGMYaiScNsHdq6GDzLNWh5p1En1q0 eRQtdLRr1/D6U7+Q85XT3rS2ISqQiuliJAmkF/J0fC9tO1mut3EkSl4ckQrODTRDbJdU SE36sc3svSCPDdHSMN0uQY3JTiTL9xr8ZTzeE4IQ0z4WYKvesc1H+lJWGNS1B3UvJgJx arlORLWtfcvJ3hdtQRMkK1TK2MtcjnIxaexR8VaF/1B+qtq7HkJxYQivLhERG8DBNbBl hQfb0LW2/xY1uof3a5oa/f9swp/JrzNMd0ITcgQudf+WS9jFD7yBHeENt5IvXwF77pU0 to2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Ooy01geSvoqL+GgWiguG5Arr/pkbSR9LEwm6vQ6trlA=; b=pHPtJIWicz+H4xhTjn+ZIAdB1WaxrSTM1rwd6rKgNKMbYAZKcIx2PoXz2F3EKyOZkk nfVZ05vL9rprPowFCEQy93hEsqB3Vj/Rtzkw2uzEiHvcWDLMiOP2B4cgVXY9JXtSYWji IZWa/5VHDSgRmKluTkGl14+Ari1sohZlBlyLjjxeH9WgGiH0UccGPMHpOsTKuTOhIVqx EirPuV+/of2FXvsdHzoKV4S1zqxs5oFkEu/mCIoVtDbIS9+77sWSoirjxwHuIoQ8JcVp ovvl6i6hlx2pdU+UGJvVsf11FNBU76fqG60VXQqDOVA3vlgBHhquR2uZFx+rz9ns3I+q 6sVQ== X-Gm-Message-State: APjAAAW5aZtQjydkXPPR4bVbAssu0pG/Jna5qZSSrHAkenoS3xbeZlRs +AlCiQTzJtnZnT15aA2j6Bz+kQ== X-Received: by 2002:a2e:569a:: with SMTP id k26mr9075699lje.256.1570792567730; Fri, 11 Oct 2019 04:16:07 -0700 (PDT) Received: from wasted.cogentembedded.com ([2a00:1fa0:4430:5cc6:e6ed:2da1:4d7:1d29]) by smtp.gmail.com with ESMTPSA id q26sm1857253lfd.53.2019.10.11.04.16.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 04:16:06 -0700 (PDT) Subject: Re: [PATCH v5 bpf-next 09/15] samples/bpf: use own flags but not HOSTCFLAGS To: ast@kernel.org, daniel@iogearbox.net, yhs@fb.com, davem@davemloft.net, jakub.kicinski@netronome.com, hawk@kernel.org, john.fastabend@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, ilias.apalodimas@linaro.org References: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> <20191011002808.28206-10-ivan.khoronzhuk@linaro.org> <99f76e2f-ed76-77e0-a470-36ae07567111@cogentembedded.com> <20191011095715.GB3689@khorivan> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <3fb88a06-5253-1e48-9bea-2d31a443250b@cogentembedded.com> Date: Fri, 11 Oct 2019 14:16:05 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20191011095715.GB3689@khorivan> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2019 12:57 PM, Ivan Khoronzhuk wrote: >>> While compiling natively, the host's cflags and ldflags are equal to >>> ones used from HOSTCFLAGS and HOSTLDFLAGS. When cross compiling it >>> should have own, used for target arch. While verification, for arm, >> >> While verifying. > While verification stage. While *in* verification stage, "while" doesn't combine with nouns w/o a preposition. >>> arm64 and x86_64 the following flags were used always: >>> >>> -Wall -O2 >>> -fomit-frame-pointer >>> -Wmissing-prototypes >>> -Wstrict-prototypes >>> >>> So, add them as they were verified and used before adding >>> Makefile.target and lets omit "-fomit-frame-pointer" as were proposed >>> while review, as no sense in such optimization for samples. >>> >>> Signed-off-by: Ivan Khoronzhuk >> [...] MBR, Sergei