Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6371078yba; Thu, 11 Apr 2019 18:45:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn6kXFXEzAxq4MH/CHHrG5mDBEVfs+uymb+ElMywL1gAiRYYAIKv7Eo586y61sCAnE/gY/ X-Received: by 2002:a63:cf0f:: with SMTP id j15mr50100990pgg.329.1555033502400; Thu, 11 Apr 2019 18:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555033502; cv=none; d=google.com; s=arc-20160816; b=ArCZ3Z65Qi950vek0/TuoAdvTN5H61BrLpf/+fdPlYa3k7dHyktjapsi9HMpS6/Rgo i0oHWlphn2EjHlD7HKeLmElbAYCFs0eP4njbmq7xOu6khvlduVaytZ/1TXnlUn8/psSr TWsCNlt8R+TwqgMa+SmpsXGo2/uCScgwjNHD41AWgBxGwHyklPEMgjbVJzU7B3PafKIE xuADiPLmWsLsO3ZD8oYusXqOf28S97RifDmINUbJVY1TcCVmu2NSHhzhT7JXgrOUDtHQ J9wknU4s2D/eryfXJXASWMQzKbrRNCn3UPflUSfccpKnYm2DbOOwBuhzM7kcV5bsyWM7 c08A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DX/6DIxznqTnkZ70CHGstZ4sCjms3ABikiTuY9Kr+tw=; b=u/zD9awHvUegJ458dG08BXqhxYP16WWMTmCG+NMIJjzAwf1b52ClyBKqPFFnwzPaVN eyfjP36GxGFjql6dfdtuJ2eYfUZiot069YbI2UEelwJ3ybsMt9quyuD/IM5NT6CLIZP2 EZbwND4jEYLfA8lKeMcBibeE8IPkGjpQ+oLL9nlbdf9jJo2RH2wAGPbEWN5N9a+KDJd+ HFMg7a9Jw5+yXRW/RifdqQ16ZXAgXe1ScT1n2/+FBmZXWe+uVxAlnbppX3NuuuVl+y/g Bm1+oFiNXt+PCCYckNLgddxPr9A8B1VcgQ6rtFm2/DirBPf4LlRHd8tR6z3+KQqX9pDT h3Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IqBwCwKn; 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 i33si35225125pgb.99.2019.04.11.18.44.43; Thu, 11 Apr 2019 18:45:02 -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=IqBwCwKn; 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 S1726798AbfDLBoE (ORCPT + 99 others); Thu, 11 Apr 2019 21:44:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:54542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfDLBoD (ORCPT ); Thu, 11 Apr 2019 21:44:03 -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 C6F9C20674; Fri, 12 Apr 2019 01:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555033443; bh=s2o9JDOCnesBuFb9IrnDW1tnaBA2g4Htst0Zzr7K3ys=; h=From:To:Cc:Subject:Date:From; b=IqBwCwKn4Zo9ebb82nqHKE36yRuiZ6ZYLet+zjUcWvL/RMTkrekGwRk1h3vJ+iB8L Xr93DX7VWURGghArLT/1aNFweBQu151pLt6b9bp1MSQu14vLu+ghqhzT4ea4/5oXeA vqiTI8DdYusB2an5Rfg951upsrtQIghJYa4+anqI= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, keescook@chromium.org, Sinan Kaya Subject: [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default Date: Fri, 12 Apr 2019 01:43:50 +0000 Message-Id: <20190412014355.25307-1-okaya@kernel.org> X-Mailer: git-send-email 2.21.0 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 CONFIG_DEBUG_KERNEL has been designed to just enable Kconfig options. Kernel code generatoin should not depend on CONFIG_DEBUG_KERNEL. Proposed alternative plan: let's add a new symbol, something like 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". Sinan Kaya (5): init: Introduce DEBUG_MISC option powerpc: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC mips: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC xtensa: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC net: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC arch/mips/kernel/setup.c | 2 +- arch/powerpc/kernel/sysfs.c | 8 ++++---- arch/xtensa/include/asm/irqflags.h | 2 +- arch/xtensa/kernel/smp.c | 2 +- lib/Kconfig.debug | 9 +++++++++ net/netfilter/core.c | 2 +- 6 files changed, 17 insertions(+), 8 deletions(-) -- 2.21.0