From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 10/12] net/mlx4: replace with Date: Sun, 08 Oct 2017 10:00:13 -0700 (PDT) Message-ID: <20171008.100013.2081721941420989813.davem@davemloft.net> References: <1507479013-5207-1-git-send-email-yamada.masahiro@socionext.com> <1507479013-5207-11-git-send-email-yamada.masahiro@socionext.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, abbotti@mev.co.uk, mingo@kernel.org, torvalds@linux-foundation.org, linux-rdma@vger.kernel.org, yishaih@mellanox.com, tariqt@mellanox.com, netdev@vger.kernel.org To: yamada.masahiro@socionext.com Return-path: In-Reply-To: <1507479013-5207-11-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Masahiro Yamada Date: Mon, 9 Oct 2017 01:10:11 +0900 > The headers > - include/linux/mlx4/device.h > - drivers/net/ethernet/mellanox/mlx4/mlx4.h > require the definition of struct radix_tree_root, but do not need to > know anything about other radix tree stuff. > > Include instead of to > reduce the header dependency. > > While we are here, let's add missing where > radix tree accessors are used. > > Signed-off-by: Masahiro Yamada Honestly this makes things more complicated. The driver was trying to consolidate all of the header needs by including them all in one place, the main driver header. Now you're including headers in several different files. I really don't like the results of this change and would ask you to reconsider. Just add both radix-tree-root.h _and_ radix-tree.h to mlx4.h and leave the rest of the driver alone.