From patchwork Tue Sep 10 10:38:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 173507 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5610519ilq; Tue, 10 Sep 2019 03:39:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYER+LvCMqZdCa7NhUjXPBlWotJRqiVzbGXCFAb7kWCE4aqKfK8Be7+v0LlQfR9eYVgTgM X-Received: by 2002:a17:906:b2d3:: with SMTP id cf19mr5002960ejb.75.1568111977258; Tue, 10 Sep 2019 03:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568111977; cv=none; d=google.com; s=arc-20160816; b=UkIuuDacZFkBnmLv3gifyN/JDK01rcqPloUTB4ZJ0A9ZL2HMo/hwIe+v/UySfOtxce rGW5SSuA9mGdDimQ2tykWNqzz4NaT6YTxMdXjQq/sQE3OAH4t9Gqgai0XfRu1koqgJPK WYDsfjZcO2RmNVt/nHgVCTuI7pYs0SlWQ4v7F8WBJtdpVOpyyEHBdqC/8ZGhz1FOQEDI 0PF03rmVHP5u5l2XPkbCkJP381h2GnmHAmdqRVJH2ECCXGkaHDytDeFKczX32zNghRVY VoDuE6IK42b1Kic00F01AvP/dMVK1Wr9vtmZRJ5oHWsir0hrCFH0pcJFucwPa5NnIjDG BOJw== 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=UKgtTI57zCb7K8E5dLif5y6EhTQqVERMGZla7VwIMYQ=; b=C8oIUbNxUKEbgXaX3Ur1kqRlq1L3nM4Lc47X3nyiz2EQOIXHLPpEYKNSeRYP1vS0/V akpBaf3W1hmvpDavUz75WYgEGXNK9t9joTB7aYnDkCfJIEaiq1yxKnzD+SdUS2+GWCat VFIskMlpVcIghLh7SnUSt/k0s+guKykn907DfXtbN9EEPNune1UsNmUolTdziCpSeTS7 H5yrhG2mcnbgkvLVHwJHVpO9f06IyuHEBrfWsZG4wAuypKQ6OWAUnsBf3RDyF5vsRE8l bS+GEz364KwgmDHQvQPpXsFSvqQJ0FVtoWtcFOp8NCkIO/Vabkxpi+MJxbF0tdCfk+Tk Zutg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d1NV8iFC; 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 a5si10614518edd.448.2019.09.10.03.39.37; Tue, 10 Sep 2019 03:39:37 -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=d1NV8iFC; 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 S2403908AbfIJKin (ORCPT + 8 others); Tue, 10 Sep 2019 06:38:43 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:37726 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393839AbfIJKim (ORCPT ); Tue, 10 Sep 2019 06:38:42 -0400 Received: by mail-lf1-f68.google.com with SMTP id w67so13013920lff.4 for ; Tue, 10 Sep 2019 03:38:40 -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=UKgtTI57zCb7K8E5dLif5y6EhTQqVERMGZla7VwIMYQ=; b=d1NV8iFC+6tOZEpE1Idxar1syxxTv7LcaRQZKlN8lQ6UWNIM+VsrSFW8OJhzp+yrJK TZnEJUUlCmzujYSIfmSrXIvuC5fOAhvtLMtyZs64Tv3BRrt8188Rowio4LxF2nev6JL6 WtXExT6UHvUlF0qokmozbnE1v4hSBPLFKR4wranRRPVQkNiRuzUt4ZlMLhNkSXBcitw8 O+rliVg8fS3f/5eYtq3Q8msGYQ9HqgzAhaCLrLmKBPO6NQNVOX9ydpNZY7TyJySLox4V mMlqKXBF3zWTks+rpEwMVOtIrdl3id63UjM+3DgC7rvSV53qIOnh0AkSuuj788gMPWqh JspA== 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=UKgtTI57zCb7K8E5dLif5y6EhTQqVERMGZla7VwIMYQ=; b=BXi1Rk6dJhmqMXhei9JOsQ95YH/Kvm0VhxLlXiga4ffYmc81CDkV4HDucY5t7ULGRy IWPS94hNUJe8aMQPUEbkWe4O+PBqho/VyAAxkgV0ZOf0sSO+Lq1pNuHnREGE9lBJWx3W S4tO6VAyJE4gTwz8JzOgDcgWM+EZzJ722+uzULEQdJSmzTXn8JGPhFZiWwlCS+4sdR8v 18fLqSW8e8AdXTOUrvSRp4YnbdO13DHBkhV75V7GoHof+XqRxm08+a8VjfxDN5hrbPGP 1sJEkQb8e1xFHMR7j1442t+BIDYxtm+6s9cw/yNmBgMJxcfIqjcXSHja/tpt3coNwiHz XWNg== X-Gm-Message-State: APjAAAWofswpU1jmgrqyP/TElpfA9yBu8QLd97dagd0D7AJQ28i5hCho mEY4hqTSLUoN51r0py3ehrno+A== X-Received: by 2002:ac2:5090:: with SMTP id f16mr20575559lfm.66.1568111920122; Tue, 10 Sep 2019 03:38:40 -0700 (PDT) Received: from localhost.localdomain (168-200-94-178.pool.ukrtel.net. [178.94.200.168]) by smtp.gmail.com with ESMTPSA id g5sm4005563lfh.2.2019.09.10.03.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 03:38:39 -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 02/11] samples: bpf: makefile: fix cookie_uid_helper_example obj build Date: Tue, 10 Sep 2019 13:38:21 +0300 Message-Id: <20190910103830.20794-3-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190910103830.20794-1-ivan.khoronzhuk@linaro.org> References: <20190910103830.20794-1-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Don't list userspace "cookie_uid_helper_example" object in list for bpf objects. per_socket_stats_example-opjs is used to list additional dependencies for user space binary from hostprogs-y list. Kbuild system creates rules for objects listed this way anyway and no need to worry about this. Despite on it, the samples bpf uses logic that hostporgs-y are build for userspace with includes needed for this, but "always" target, if it's not in hostprog-y list, uses CLANG-bpf rule and is intended to create bpf obj but not arch obj and uses only kernel includes for that. So correct it, as it breaks cross-compiling at least. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 1 - 1 file changed, 1 deletion(-) -- 2.17.1 diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index f50ca852c2a8..43dee90dffa4 100644 --- a/samples/bpf/Makefile +++ b/samples/bpf/Makefile @@ -145,7 +145,6 @@ always += sampleip_kern.o always += lwt_len_hist_kern.o always += xdp_tx_iptunnel_kern.o always += test_map_in_map_kern.o -always += cookie_uid_helper_example.o always += tcp_synrto_kern.o always += tcp_rwnd_kern.o always += tcp_bufs_kern.o