From patchwork Thu Jan 31 03:15:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 157106 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6699188jaa; Wed, 30 Jan 2019 19:16:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN4rOipEvSOBaYqLBCw8Cr87pE5CKvgd4q3bH7CzDxk8GynYyBrNuyuVwKCC9IsJs2HxMA8b X-Received: by 2002:a62:9657:: with SMTP id c84mr33962289pfe.77.1548904610696; Wed, 30 Jan 2019 19:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548904610; cv=none; d=google.com; s=arc-20160816; b=im7ojUHdZj5sfUHj/4p84z6yOCBFWba15iyInqkRd+gm+UhfJhfQHkbuCeST2DIC1V 99SbpR5ste+UI7rDw6FPHNl3hevbSVVocDddaT4tQNHjFQamg+valxNEa4B6IDhIYhN9 gIVjITsRUkx3AJXrnJ6SJbKsRKmhXOkt3CYp3Qkfk+aTlH20vvQ94J6lpNpg/jWm0MaD 10i4TTfsUZlDlWKPjnui4h05ogqPtE9naZnaiNfUAerHllzccxwKAUTYnFsJ/ckcrmG5 czHsLaPq9nMEG9935paVkBCunKyIdQVWVJjaDFvV/AKQJ/grDV3GyAl+gP4d7PEHOybY xaYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=I34mJ3HnIZyCkcu2RfosMy19Oz6QkmEQV1WPpelIdq0=; b=I1G5bIQxCXr+DkxuKzXiPzZuZaWJIzomC94M5r3CtncA7cagQgUVsvfurhkoRZ8FsT YqaOgNeEay8ZQcJgeM5pUfHqWgOvWWXN0HAwX9wLrAjMTsQZR9sHj7yD239K9BwiL9Ze nsi0NZONChaqabUNyijr7/LpXsXhU7VuiC6u9tqR1xJ5iNLA7oGSP5REfCp9vByqwl0D aZTxMTfF5MC4rPVgZC7HWJac1Ss+SBym1ESTqu6UqEKwH5UFD6zpvJl+PJH5zc6XS85A nGxcS43VRrk/q7fpvTjYpHd4+PIWZkQQGzi9FON8MMB+2bpMN6QAEjFMsngVNFQsTYVB IWOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=AX9iEGcB; 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 193si3508790pfa.256.2019.01.30.19.16.50; Wed, 30 Jan 2019 19:16:50 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=AX9iEGcB; 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 S1730278AbfAaDQs (ORCPT + 31 others); Wed, 30 Jan 2019 22:16:48 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:52819 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfAaDQs (ORCPT ); Wed, 30 Jan 2019 22:16:48 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x0V3FgUg006531; Thu, 31 Jan 2019 12:15:42 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x0V3FgUg006531 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1548904543; bh=I34mJ3HnIZyCkcu2RfosMy19Oz6QkmEQV1WPpelIdq0=; h=From:To:Cc:Subject:Date:From; b=AX9iEGcBwSq3DaVOOqyIP2Ok9F+w4636tcq5uWQXvxUkRaGdChohmGztx0NJz69U0 xEdrU4N/CJEXJLD9x6h8sSOvRfxQNT0BAG3mla3CQxYuI1ylJy/OizCMrCSBu24wz8 nMUsvR5IBBE9HQ8RMHeaM5RE0CXyqy10rTlDY/+R2+ZIAmYF1qUhRrvxqWzYdz5ysa jvxRG93qACY/7x6WRaICLXvDZ0jmf0j39bM4QJSiDuXfPc9EfwMJjZmzfAogdPpoRF U7HVHQ9XBNeUoAkaYfSApza3hvm6/AixXgpyAUdN9hrxDWppqxb5EEEJggw3pORoOv H5m7muAzcCYdw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org Cc: Masahiro Yamada , Matteo Croce , "David S. Miller" , linux-kernel@vger.kernel.org, Jakub Kicinski , Laura Abbott , Alexei Starovoitov , YueHaibing Subject: [PATCH] bpfilter: remove extra header search paths for bpfilter_umh Date: Thu, 31 Jan 2019 12:15:35 +0900 Message-Id: <1548904535-9853-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the header search paths -Itools/include and -Itools/include/uapi are not used. Let's drop the unused code. We can remove -I. too by fixing up one C file. Signed-off-by: Masahiro Yamada --- Perhaps, are these extra header search paths for more upstreaming in the future? If this patch is rejected, I will send an alternative one. To clean up the Kbuild core, I want to drop as many unused header search paths as possible. net/bpfilter/Makefile | 1 - net/bpfilter/main.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile index 0947ee7..5d6c776 100644 --- a/net/bpfilter/Makefile +++ b/net/bpfilter/Makefile @@ -5,7 +5,6 @@ hostprogs-y := bpfilter_umh bpfilter_umh-objs := main.o -KBUILD_HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi HOSTCC := $(CC) ifeq ($(CONFIG_BPFILTER_UMH), y) diff --git a/net/bpfilter/main.c b/net/bpfilter/main.c index 1317f10..61ce845 100644 --- a/net/bpfilter/main.c +++ b/net/bpfilter/main.c @@ -6,7 +6,7 @@ #include #include #include -#include "include/uapi/linux/bpf.h" +#include "../../include/uapi/linux/bpf.h" #include #include "msgfmt.h"