Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp848476yba; Sat, 13 Apr 2019 15:46:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwB/O53J19mUSGQDvli4JN3bGF8nTNHiqdd8rhCMtBQq7QH+trbvlTKYzTwpYoou3wRUkz5 X-Received: by 2002:a17:902:4165:: with SMTP id e92mr4333173pld.10.1555195567886; Sat, 13 Apr 2019 15:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555195567; cv=none; d=google.com; s=arc-20160816; b=b0v5Flyyy6+8uC4eLN2mntADCNWS1sh3PkBsyKr/TwHRaOuJAw4VHDm6x/Gf50LHve JuGLW8AIhuGpL3Y3ZfVVULXtMaSXLe4LwWsKB+zfcYMmjxbWQdnzzEBRlnpe0RWwTk9f tZHhny7kSciuKH/69mtCVFOPeYEKhXdv2vf7UeSAVhMIKyfyp/mp1rAMMzIP8eAODnhX xFnpEYEzQptQ2bNYVuPpdIclid7rHL5p322SfQuED65IrosbomR4YPboUl1KmhkyjoWm YoMgoKGQYcoeHZTGV/CYdbgQqiaLMdjWZ+pkqzBo/yE4ANyiZ7jA+qJjL8cC9E4J4M31 2hpA== 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=l3Uc7avCmM9V7l3jjAVk7+RQW9Q3nTTjlwrGkyM/FWk=; b=x/bDzL+TDDzACmkCzt2mU8jKwomvYqyrcYXt2ASfOWE8oKaEBwJg5Sl3gjkFglkS6o MIcxgLOFhpqN8SVJwvDs5FRYQ6RU3jGxol7P1Y96Ne+4FCzP1uDODGngs3ihOnvoV55p E1/o3XIrbtb5nUAthKDqwQZLJ9m2+kT/AyTSAHsWzy6GfpkToOH1CGnfqumZz5+FMuiw Uazxcs8WFhkG/llBbLvA3ubnPUNEnmSOcFCHQoJkgIWof+PhwlgxVm70/P4gPCfks4Fh Fe1904kyVbkjsfgx9ML6LHF3V+CH1h/b6uaW9tB6lCUx9laXzhIiMIGiF/N9/sW+gPLA koNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kaS9b6fP; 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 u71si23631583pgd.147.2019.04.13.15.45.35; Sat, 13 Apr 2019 15:46: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=kaS9b6fP; 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 S1727209AbfDMWos (ORCPT + 99 others); Sat, 13 Apr 2019 18:44:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:57340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbfDMWor (ORCPT ); Sat, 13 Apr 2019 18:44:47 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [40.117.159.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF7C32147A; Sat, 13 Apr 2019 22:44:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555195486; bh=X6t/SPDT3Ypw0fpLrVYQDCmU/g1fPn8mEDeOVXwiKTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kaS9b6fPT6YTHZB5Hxlm+oJb9ozL9dpJP9TaT1NBdSqipo5vUHFyOIEztbieSgD0D b6hMZO9eYOsCbZsh4iq4nshp3LG6/4Qv3zo9JV3cVKmbQZhdWTrTirtsMbORh03PiK jBtw4VN4bncYUB8f7GrnaKqUbjj00Cbf/vhxClAQ= 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 v5 1/5] init: Introduce DEBUG_MISC option Date: Sat, 13 Apr 2019 22:44:34 +0000 Message-Id: <20190413224438.10802-2-okaya@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413224438.10802-1-okaya@kernel.org> References: <20190413224438.10802-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 Reviewed-by: Josh Triplett --- lib/Kconfig.debug | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d9e81779e37..0103a092ce3d 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