Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp640327ybp; Fri, 11 Oct 2019 01:51:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOIcVEV8KnawDVRjGTsVOfq+3Y3Ke9Ru2UyKhovSGnflSrwDjxBpliMkszGKCf8O48IFfJ X-Received: by 2002:a05:6402:1686:: with SMTP id a6mr12494623edv.174.1570783891348; Fri, 11 Oct 2019 01:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570783891; cv=none; d=google.com; s=arc-20160816; b=ngnL9jlHE9eAlvqRKYebpyMqdpouKy2zO1RHWmW1BEyALgl6ds32bjimwZrYm7laCI HcJForAiK4sAAp47wHaSYVhXOq7CdYpuk4Oahp0fTrLrz5PNGMf0GnhvOtw8tzJdw5oZ sa12X9IozJdRvrKCmDqtTlYDrANFwj1CWZSGbomgbS2ZUtpRQzZrflO/neEtRQPVYK/q SbSFXtT1J3u9N38PuXcwyydS/hQKsk902KuQGhrChaw3riRbEdO7cxgH9CjtIfKivX07 PNDMEWb9ioYELvCqBqmYsGXg1wopXn4gMY5fjX5uZQa8ts3WExQ/cH4nJDJNibyAgRhB 3IIA== 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:from:references:cc:to:subject:dkim-signature; bh=ZcGygTCwpeNMQnDZaCGXMswzs4Pr+XRxJbo6OSQ+isc=; b=p6aEDM+Ot06T1bMRF0+PM7nuuCRwJofylSo6vdiimn5aBuIMXGLbvVAv685HoqMETw gMe8r52ALEJtAHwbXO0a1e9IoA6ImsSULpPfc0HjCQLB0jzo4c8kv8iHjSErcVGzqj/c aQa5dcAuGyPiY9CU3eqVy8k6gZKosAVsbbUHn1ODa4BgmaGKi6whZGk8bTesXl8qm8lv xH4nto215bGHIbHpCv9kGJKK2wXWcOarDjevH8SFx2EWsyqO1PLnO2NlyKErqHKO/ifk 9fMkch3hkrXNPOvlZIDE/AF5bkbTv6QIdns89Fp0ODO1H9SzQL1myFlgKQ2uL1nfWx36 8LCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=nb0Zcb4R; 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 d17si6251971eda.213.2019.10.11.01.51.08; Fri, 11 Oct 2019 01:51:31 -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=nb0Zcb4R; 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 S1727604AbfJKIt4 (ORCPT + 99 others); Fri, 11 Oct 2019 04:49:56 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46747 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727496AbfJKItz (ORCPT ); Fri, 11 Oct 2019 04:49:55 -0400 Received: by mail-lf1-f66.google.com with SMTP id t8so6422002lfc.13 for ; Fri, 11 Oct 2019 01:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ZcGygTCwpeNMQnDZaCGXMswzs4Pr+XRxJbo6OSQ+isc=; b=nb0Zcb4RKQs4XAJskwL04LDvLPrFFtP6zspQ09KQsXlbet2m8FFqEIGvVo0SwccZyy mhOYR5vQVYBEnLD6RM5JJYdFpkwi4P/roo3DzdWh4Tt+5LNM0WDagm4/kDoVzpgHYDbN ShoO2ppVI9uOOEsH2pbVHRKrUlUm9l2AwcfSN3dqfV9PJ+CRBkLryyJ/l1qe8STGrCI6 044bOXEGsLgy6pOjkjdaN7Pd4GMs6yZqU5pqWrltzqcaOI5FvWPO0hw2yqGYBpDPurLm FkxGJTH4701MBBnYA36jG/vaiEs7u8VPtf997ggd+nQV/WGLM5MSTJN/xsM3pAYJjtxX kROw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZcGygTCwpeNMQnDZaCGXMswzs4Pr+XRxJbo6OSQ+isc=; b=KnbhkfT79/D6S5Rhc7STBRphiDlzxDCRqHTODRJM3jbN/I7LPxTYvZB11ANGNUhKbQ kk9tMvqjTpLjAxJnPWwcrYkog3W5X9qFXaUU8iEsdUncgP5OfXCBPO5x/YmsPt2k2XQ8 yRuJN0YNxIKYzFRtpN8KL7pNjB5EGBzjC+FX5gy/CRCLWLRAwC8U+Fqy0kj16I6rLLqi fXcR9Nm5sb/DbkdAeZlW1aD/jfbLEhkm6MLBEmp2F4fr//s3o37yUs5zpjQf9s5GbA86 8QeLjpPJiSYfLZGbEr/GujzJvCRRpCdJpmAWeoeXc1/QAwBSfMduOdDcS15CHX/Xll13 NnXw== X-Gm-Message-State: APjAAAWu8NOEOLDr2q0j74dzyWkMzhp46IzU7bANkgmln+OwYCNgVhW+ IbIzVrrkDi6UF584xzaus7SYrA== X-Received: by 2002:ac2:4830:: with SMTP id 16mr8261983lft.2.1570783793946; Fri, 11 Oct 2019 01:49:53 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:86c:2e5e:9033:59d0:e194:cd55? ([2a00:1fa0:86c:2e5e:9033:59d0:e194:cd55]) by smtp.gmail.com with ESMTPSA id k28sm1901704lfj.33.2019.10.11.01.49.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 01:49:53 -0700 (PDT) Subject: Re: [PATCH v5 bpf-next 09/15] samples/bpf: use own flags but not HOSTCFLAGS To: Ivan Khoronzhuk , 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 References: <20191011002808.28206-1-ivan.khoronzhuk@linaro.org> <20191011002808.28206-10-ivan.khoronzhuk@linaro.org> From: Sergei Shtylyov Message-ID: <99f76e2f-ed76-77e0-a470-36ae07567111@cogentembedded.com> Date: Fri, 11 Oct 2019 11:49:38 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191011002808.28206-10-ivan.khoronzhuk@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org More grammar nitpicking... On 11.10.2019 3:28, 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. > 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