Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933937AbbEMRMQ (ORCPT ); Wed, 13 May 2015 13:12:16 -0400 Received: from mga03.intel.com ([134.134.136.65]:34165 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933431AbbEMRML (ORCPT ); Wed, 13 May 2015 13:12:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,421,1427785200"; d="scan'208";a="709710549" Date: Wed, 13 May 2015 17:12:10 +0000 (UTC) From: Keith Busch X-X-Sender: vmware@localhost.lm.intel.com To: Matthew Wilcox cc: Nicholas Krause , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Subject: Re: [PATCH] block:Remove including of the header file, linux/mm.h for the file,nvme-core.c In-Reply-To: <20150513164945.GX4003@linux.intel.com> Message-ID: References: <1431534078-17740-1-git-send-email-xerofoify@gmail.com> <20150513164945.GX4003@linux.intel.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1109 Lines: 23 On Wed, 13 May 2015, Matthew Wilcox wrote: > On Wed, May 13, 2015 at 12:21:18PM -0400, Nicholas Krause wrote: >> This removes the include statement for including the header file, >> linux/mm.h in the file, nvme-core.c due this driver file never >> calling any functions from the header file, linux/mm.h and >> only adding bloat to this driver by including this unnessary >> header file. > > Nick, I'm not going to apply this patch, simply because the effort of > verifying that you haven't made a mistake is greater than the gain we > might get from applying it. The driver does use functions defined in linux/mm.h: get_user_pages_fast is one of them. It compiles without including the header because another we include includes mm.h, but we don't want to depend on that! Don't worry, I didn't waste time checking; I just happened to know that one off the top. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/