From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756421AbbDJSZI (ORCPT ); Fri, 10 Apr 2015 14:25:08 -0400 Received: from mga09.intel.com ([134.134.136.24]:11921 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbbDJSZF (ORCPT ); Fri, 10 Apr 2015 14:25:05 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,558,1422950400"; d="scan'208";a="693546426" Message-ID: <1428690304.19714.37.camel@picadillo> Subject: Re: [PATCH 3/4] tracing: Remove redundant module.h includes From: Tom Zanussi To: Steven Rostedt Cc: pebolle@tiscali.nl, linux-kernel@vger.kernel.org Date: Fri, 10 Apr 2015 13:25:04 -0500 In-Reply-To: <20150410122703.52fcfe4c@gandalf.local.home> References: <20150410122703.52fcfe4c@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2015-04-10 at 12:27 -0400, Steven Rostedt wrote: > On Fri, 10 Apr 2015 11:05:02 -0500 > Tom Zanussi wrote: > > > kallsyms.h now includes module.h, so remove module.h includes that > > were apparently there only to satisfy kallsyms use of MODULE_NAME_LEN. > > Only remove it for those that need it for MODULE_NAME_LEN because it > was used in KSYM_SYMBOL_LEN. But not the rest. Lots of these files use > module code directly. Now you made it require kallsyms.h to get to that > code. If for some reason we no longer need kallsyms.h, or that > kallsyms.h no longer needs module.h, these files will not build. > > If code uses module code, it must include module.h. > I had grepped all those files for 'module' and didn't find anything other than comments. The only files of those affected that use KSYM_SYMBOL_LEN are trace_output and trace_syscalls, so I can respin the patch including just those. But I don't see that any of the other files really use module code, and looking at those again, none of them seem to need kallsyms either so they could remove those includes as well... But I agree all that that probably doesn't belong as part of this patchset. > So NACK for this patch. > > To see what needs module.h, before reverting this patch, remove the > module.h from kallsyms.h, and also remove the MODULE_NAME_LEN from it as > well. Compile all the tracing code, and see what does not build. Those > files will be the ones that you need to add back the module.h to. > Yeah, doing that I didn't see any build errors, but I'll stick with just the explicit KSYM_SYMBOL_LEN-using files for this patchset to keep things restricted to the specific case at hand. Tom > -- Steve >