From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755750AbbDJQFM (ORCPT ); Fri, 10 Apr 2015 12:05:12 -0400 Received: from mga09.intel.com ([134.134.136.24]:30604 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754720AbbDJQFI (ORCPT ); Fri, 10 Apr 2015 12:05:08 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,557,1422950400"; d="scan'208";a="693480579" From: Tom Zanussi To: rostedt@goodmis.org, pebolle@tiscali.nl Cc: linux-kernel@vger.kernel.org, Tom Zanussi Subject: [PATCH 0/4] kallsyms header cleanup Date: Fri, 10 Apr 2015 11:04:59 -0500 Message-Id: X-Mailer: git-send-email 1.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During review of an unrelated patchset, the question was asked why module.h was included in code that wouldn't be a module and didn't do anything with modules [1]. The reason is that it uses kallsyms defines, but kallsyms.h doesn't include module.h, though it should because it uses MODULE_NAME_LEN. The code in question also didn't include kallsyms.h but relied on ftrace.h to pull it in. But ftrace.h no longer contains anything that needs kallsyms.h, and continues to include it only because other code expects it to. This patchset is the start of cleaning all that up. It also adds explicit kallsyms.h includes and removes module.h includes for obvious cases in kernel/trace and lib/, where I happened to be working. There are a bunch of other files that probably include module.h only for kallsyms, but I haven't gone through them yet. I can either resubmit this patchset after looking at all those, or can submit a follow-on patchset to this one assuming this is best way to do it... [1] https://lkml.org/lkml/2015/4/4/70 The following changes since commit 3cfb2f7976a2f9cfe48eda4e6d7e4ce74fee09e3: Merge tag 'pci-v4.0-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci (2015-04-09 10:17:44 -0700) are available in the git repository at: git://git.yoctoproject.org/linux-yocto-contrib.git tzanussi/kallsyms-header-cleanup http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-contrib/log/?h=tzanussi/kallsyms-header-cleanup Tom Zanussi (4): tracing: Remove kallsyms.h include from linux/ftrace.h kallsyms: Add module.h include tracing: Remove redundant module.h includes lib: Remove redundant module.h includes include/linux/ftrace.h | 1 - include/linux/kallsyms.h | 1 + kernel/trace/trace.c | 1 - kernel/trace/trace_branch.c | 1 - kernel/trace/trace_export.c | 1 - kernel/trace/trace_irqsoff.c | 1 - kernel/trace/trace_kprobe.c | 1 + kernel/trace/trace_output.c | 2 +- kernel/trace/trace_sched_switch.c | 1 - kernel/trace/trace_sched_wakeup.c | 1 - kernel/trace/trace_stack.c | 1 - kernel/trace/trace_syscalls.c | 2 +- lib/vsprintf.c | 2 +- 13 files changed, 5 insertions(+), 11 deletions(-) -- 1.9.3