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: 1033901 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="AX9iEGcB"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43qll96Qltz9sBb for ; Thu, 31 Jan 2019 14:16:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729304AbfAaDQs (ORCPT ); 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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(-) 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"