From patchwork Mon Dec 17 18:22:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hansen X-Patchwork-Id: 1888431 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 76F27DF266 for ; Mon, 17 Dec 2012 18:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403Ab2LQSXW (ORCPT ); Mon, 17 Dec 2012 13:23:22 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:45517 "EHLO e7.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753804Ab2LQSXT (ORCPT ); Mon, 17 Dec 2012 13:23:19 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Dec 2012 13:23:18 -0500 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 17 Dec 2012 13:22:09 -0500 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id DAB4B38C801C; Mon, 17 Dec 2012 13:22:08 -0500 (EST) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qBHIM8k626804360; Mon, 17 Dec 2012 13:22:08 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qBHIM76N007719; Mon, 17 Dec 2012 16:22:08 -0200 Received: from kernel.stglabs.ibm.com (kernel.stglabs.ibm.com [9.114.214.19]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qBHIM7nf007704; Mon, 17 Dec 2012 16:22:07 -0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by kernel.stglabs.ibm.com (Postfix) with ESMTP id B4ECF240372; Mon, 17 Dec 2012 13:22:07 -0500 (EST) Subject: [PATCH 1/7] move debugfs to filesystems menu (fs/Kconfig) To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org, Dave Hansen From: Dave Hansen Date: Mon, 17 Dec 2012 13:22:07 -0500 References: <20121217182206.91AA150A@kernel.stglabs.ibm.com> In-Reply-To: <20121217182206.91AA150A@kernel.stglabs.ibm.com> Message-Id: <20121217182207.4CF51258@kernel.stglabs.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12121718-5806-0000-0000-00001D179972 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org debugfs may have started out as a kernel hacking kind of option. But, today, it is an integral part of lots of facilities like tracing that are far from kernel hacking. Let's move it out of the very cluttered "Kernel Hacking" menu and but it next to its real family: other filesystems like sysfs, configfs, or /proc. Also, "Debug filesystem" sounds like a debugging option _for_ filesystems code, not a filesystem for debugging. We also never call it "the debug filesystem." We always say "debugfs", so reflect the fact that we _call_ it debugfs in the menu text. Signed-off-by: Dave Hansen Acked-by: Greg Kroah-Hartman --- linux-2.6.git-dave/fs/Kconfig | 12 ++++++++++++ linux-2.6.git-dave/lib/Kconfig.debug | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff -puN fs/Kconfig~be-clear-about-debugfs fs/Kconfig --- linux-2.6.git/fs/Kconfig~be-clear-about-debugfs 2012-12-17 12:34:03.955929278 -0500 +++ linux-2.6.git-dave/fs/Kconfig 2012-12-17 12:34:03.963929345 -0500 @@ -176,6 +176,18 @@ config HUGETLBFS config HUGETLB_PAGE def_bool HUGETLBFS +config DEBUG_FS + bool "Debug Filesystem (debugfs)" + help + debugfs is a virtual file system that kernel developers use to put + debugging files into. Enable this option to be able to read and + write to these files. + + For detailed documentation on the debugfs API, see + Documentation/DocBook/filesystems. + + If unsure, say N. + source "fs/configfs/Kconfig" endmenu diff -puN lib/Kconfig.debug~be-clear-about-debugfs lib/Kconfig.debug --- linux-2.6.git/lib/Kconfig.debug~be-clear-about-debugfs 2012-12-17 12:34:03.959929312 -0500 +++ linux-2.6.git-dave/lib/Kconfig.debug 2012-12-17 12:34:03.963929345 -0500 @@ -99,18 +99,6 @@ config UNUSED_SYMBOLS you really need it, and what the merge plan to the mainline kernel for your module is. -config DEBUG_FS - bool "Debug Filesystem" - help - debugfs is a virtual file system that kernel developers use to put - debugging files into. Enable this option to be able to read and - write to these files. - - For detailed documentation on the debugfs API, see - Documentation/DocBook/filesystems. - - If unsure, say N. - config HEADERS_CHECK bool "Run 'make headers_check' when building vmlinux" depends on !UML