From patchwork Mon Apr 15 20:43:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 1085903 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=windriver.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44jgTF6yMHz9s4Y for ; Tue, 16 Apr 2019 06:44:01 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727531AbfDOUoA (ORCPT ); Mon, 15 Apr 2019 16:44:00 -0400 Received: from mail.windriver.com ([147.11.1.11]:57655 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726609AbfDOUoA (ORCPT ); Mon, 15 Apr 2019 16:44:00 -0400 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id x3FKhY7t028161 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 15 Apr 2019 13:43:35 -0700 (PDT) Received: from yow-cube1.wrs.com (128.224.56.98) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.439.0; Mon, 15 Apr 2019 13:43:34 -0700 From: Paul Gortmaker To: CC: Paul Gortmaker , "David S. Miller" , Florian Westphal , Jozsef Kadlecsik , Pablo Neira Ayuso , , Subject: [PATCH -next 0/3] netfilter: header cleanup Date: Mon, 15 Apr 2019 16:43:13 -0400 Message-ID: <1555360996-23684-1-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Having core header files in include/linux that in turn include other headers with a high number of includes implicitly degenerates into a formalism that hides what amounts to #include Some headers, like module.h and device.h are good examples that will essentially drag in almost everything. There is nothing module specific about netfilter, but before we try and stop nf_tables.h from including module.h, we have to fix two instances of code which are implicitly relying on that module.h inclusion, so as to not introduce build regressions. --- Cc: "David S. Miller" Cc: Florian Westphal Cc: Jozsef Kadlecsik Cc: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Cc: coreteam@netfilter.org Paul Gortmaker (3): netfilter: nf_tables: relocate header content to consumer netfilter: nf_tables: fix implicit include of module.h netfilter: nf_tables: drop include of module.h from nf_tables.h include/net/netfilter/nf_tables.h | 20 ++------------------ net/netfilter/nf_tables_set_core.c | 1 + net/netfilter/nft_dynset.c | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 18 deletions(-)