Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6371147yba; Thu, 11 Apr 2019 18:45:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOZVDfblAqz9dsvfU7qQPK/F2P151l932mMWPgUX80knzqZFCDwXqQkq+Urm4wndTV7xJW X-Received: by 2002:a65:6148:: with SMTP id o8mr51199970pgv.153.1555033507653; Thu, 11 Apr 2019 18:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555033507; cv=none; d=google.com; s=arc-20160816; b=Zv+HWbe6UFAAnf7PSW+7ax86cvmaULkuCO8N3mpbv5S6BI+HY+Quz1HtlhD2ST1O2b OHWT4ajnOGxFz/PVag5cuX4evPA0SpFzHffJ17EjYvjwbryr166zSM/utsuxSM5Mj4aH FOwgR2fVkJbSsOXjrlO89uANwDgbg7H5yFNfVBYdoCGZreOgW/W8Zaxr4rFBB8WPwRFt ORJgxz5HV23ld2OR2ZU4Sj8y4AhenqtO0IXnGskc0/4wYAkIW2HxO9Q82Qt6iI3zyVWt 5GAkRxiVSwPQgprDUei8JaUp6UAH5/DcPUievWjYXy7UH+tRBl/V0EIUnfnKMuXBUuZO 4vNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wkwuLsBgZQnFAOvf8B33dpx8sx89uz0wKrxbYm5U+08=; b=IN68/fPYZa2Pc1m0yWtccIYK1xZAfnB53QqYR4cxZrnUHLTLUGBGwIB4VwAXpkzZrT aziCGvpilm75fwS6+BApL30hB1uMlZ4WKDm/nxmdTyNJSuJfNPjSYbAgkki9AiicN01I dKP/O4k3wbdwyXHob3FQiN6fL6dlKKxeqZl72we3X8l3g/Y7NAhWIgwOEXckZ71JauOX uVrMU59blIDapMpP1FAcEpltz+CXKJKVRQ5JY49OhBB6mTPLzdwXPmnfo2oO9WjVUsCs BLx+ArtnEzvtiy2UKWKV0lLW5C/MeN3fBdyJ5/3ZViRgxA2Va7SooDFkCRnylNfBdiJm +w7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=deRFAGol; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25si37079099pfi.245.2019.04.11.18.44.49; Thu, 11 Apr 2019 18:45:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=deRFAGol; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbfDLBoI (ORCPT + 99 others); Thu, 11 Apr 2019 21:44:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:54594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfDLBoH (ORCPT ); Thu, 11 Apr 2019 21:44:07 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [52.191.113.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E56CF20674; Fri, 12 Apr 2019 01:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555033447; bh=IT/7Jg1kbrxbRz/bY2HGp0aOHcVS5pkBRcqeoMqzhFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=deRFAGol0NaX9pEdDRb70Ar9taKNXVjPUpBghv6xBhe0Mia+zSliiSSRRHrChHPB5 n3zCey03Z3hJ7W4/PYk6D4B+VaU32GvoGcQpg1Hoot1w7RcgvYyCNV4NvVKnyM+UPL Xjz/Yo7tTnTsfqGSBle4xhO2zr3RRdNyFRxmOpDg= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, keescook@chromium.org, Sinan Kaya , Andrew Morton , Masahiro Yamada , Petr Mladek , Andy Shevchenko , Matthew Wilcox , Joe Lawrence , Mikulas Patocka , Robin Murphy , Tetsuo Handa , Sri Krishna chowdary , Changbin Du Subject: [PATCH v4 1/5] init: Introduce DEBUG_MISC option Date: Fri, 12 Apr 2019 01:43:51 +0000 Message-Id: <20190412014355.25307-2-okaya@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190412014355.25307-1-okaya@kernel.org> References: <20190412014355.25307-1-okaya@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce DEBUG_MISC ("Miscellaneous debug code that should be under a more specific debug option but isn't"), make it depend on DEBUG_KERNEL and be "default DEBUG_KERNEL" but allow itself to be turned off, and then mechanically change the small handful of "#ifdef CONFIG_DEBUG_KERNEL" to "#ifdef CONFIG_DEBUG_MISC". Signed-off-by: Sinan Kaya --- lib/Kconfig.debug | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d9e81779e37..2f80ebaa6d9a 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -438,6 +438,15 @@ config DEBUG_KERNEL Say Y here if you are developing drivers or trying to debug and identify kernel problems. +config DEBUG_MISC + bool "Miscellaneous debug code" + default DEBUG_KERNEL + depends on DEBUG_KERNEL + help + Say Y here if you need to enable Miscellaneous debug code that should + be under a more specific debug option but isn't. + + menu "Memory Debugging" source "mm/Kconfig.debug" -- 2.21.0