Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6371201yba; Thu, 11 Apr 2019 18:45:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBDC2OhcJdlxJQtZkFdIG9LIhp98/Bd0M/WRwKp6QPxQLdStzmz4cnFJ2P5hm5a5+jFG83 X-Received: by 2002:a65:43c3:: with SMTP id n3mr51765585pgp.375.1555033513181; Thu, 11 Apr 2019 18:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555033513; cv=none; d=google.com; s=arc-20160816; b=Z4NcYetqUwDhEZwjZRLxIGWOEOscXAQTwArneh4L0GN/pO5toNMqa3jpE8qQV+WRi2 R6PGQWieNWJGhdvrgaczNPKbqRe7xNaVdth5ZQWqfTIHzNOwam6zo+Oz9tk9vHuWyNcc 2/wyHxPFIfwUiXBz+zMbL+oEdN00xNWMWrM3GdKfVEqa0E/MpeOemujWOHNhkW4Ee3cR 8ogwGhdABgL5Xvjs0pj2vUoUGH1EgdgwAaI9qVwDvOcF8pTtInORAM17wGsEEolGWBqt czyKtAkSDkLCpZWGbwnCD9++HUsIwwI16Xyg5WUWbTbvsNOc6P6uasnlF1s+vi/4/Uud HYGQ== 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=HW+fEyknPuqaLOAXo2imARrGLnDXqXTOJ+cyIwQOTtM=; b=ipDEVfWbkXTFlypYZEYQp570dWU0cZ4ygVhZZfrQwXtRHH+pYxiGP9MlfTyqx7aVY6 8alPg4fU8d/DHpil2Cpt1qIGUMqI3IDlSVhIesygJtnK3Q/PB2Hcug8CNqksm07ERgiY ccjssJsF5GxLpsYiDht7hcY2kfA0gzRTuWACBhzRoLuefgrL6mXcyML6FT3vr7Q4jDp2 mqI3aR1KErDJV16PsFRAu/FdIMu6VaA+kDe5/W5ujnrFWxtUKcoky8vhww3JvPgOB0OF DK57oMuf3XsNVUjtjaN51MQJrfHp40d5+IYDLYn/OLU0ainQdo6nDpAaleBj/T6yidJM P3fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uyCakz6U; 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 o14si37586434pgf.200.2019.04.11.18.44.57; Thu, 11 Apr 2019 18:45:13 -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=uyCakz6U; 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 S1726856AbfDLBoM (ORCPT + 99 others); Thu, 11 Apr 2019 21:44:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfDLBoK (ORCPT ); Thu, 11 Apr 2019 21:44:10 -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 F083D2184B; Fri, 12 Apr 2019 01:44:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555033449; bh=b+3JRdiqd3xm94iRtsnB84wYg5vwpS62BhaMpIzJp+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uyCakz6UAf5YhBO5j3uPZlvrzJK8/6bhvMuVZo5EWTD7ZEmeGQS9kdxkBfH6TEnd3 b5LHogS4NNNFh42WlI9xhFH5Q9O6lo9d4WYeo58wwOvkK0uja9mfL7bN7wnz/sMg4R DDAYgZZwf4bI/+LXB8A9nNahIJLa5GG8vjufjD9U= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, keescook@chromium.org, Sinan Kaya , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , linuxppc-dev@lists.ozlabs.org (open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)) Subject: [PATCH v4 2/5] powerpc: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC Date: Fri, 12 Apr 2019 01:43:52 +0000 Message-Id: <20190412014355.25307-3-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 CONFIG_DEBUG_KERNEL should not impact code generation. Use the newly defined CONFIG_DEBUG_MISC instead to keep the current code. Signed-off-by: Sinan Kaya --- arch/powerpc/kernel/sysfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index e8e93c2c7d03..7a1708875d27 100644 --- a/arch/powerpc/kernel/sysfs.c +++ b/arch/powerpc/kernel/sysfs.c @@ -610,7 +610,7 @@ SYSFS_PMCSETUP(pa6t_pmc2, SPRN_PA6T_PMC2); SYSFS_PMCSETUP(pa6t_pmc3, SPRN_PA6T_PMC3); SYSFS_PMCSETUP(pa6t_pmc4, SPRN_PA6T_PMC4); SYSFS_PMCSETUP(pa6t_pmc5, SPRN_PA6T_PMC5); -#ifdef CONFIG_DEBUG_KERNEL +#ifdef CONFIG_DEBUG_MISC SYSFS_SPRSETUP(hid0, SPRN_HID0); SYSFS_SPRSETUP(hid1, SPRN_HID1); SYSFS_SPRSETUP(hid4, SPRN_HID4); @@ -639,7 +639,7 @@ SYSFS_SPRSETUP(tsr0, SPRN_PA6T_TSR0); SYSFS_SPRSETUP(tsr1, SPRN_PA6T_TSR1); SYSFS_SPRSETUP(tsr2, SPRN_PA6T_TSR2); SYSFS_SPRSETUP(tsr3, SPRN_PA6T_TSR3); -#endif /* CONFIG_DEBUG_KERNEL */ +#endif /* CONFIG_DEBUG_MISC */ #endif /* HAS_PPC_PMC_PA6T */ #ifdef HAS_PPC_PMC_IBM @@ -680,7 +680,7 @@ static struct device_attribute pa6t_attrs[] = { __ATTR(pmc3, 0600, show_pa6t_pmc3, store_pa6t_pmc3), __ATTR(pmc4, 0600, show_pa6t_pmc4, store_pa6t_pmc4), __ATTR(pmc5, 0600, show_pa6t_pmc5, store_pa6t_pmc5), -#ifdef CONFIG_DEBUG_KERNEL +#ifdef CONFIG_DEBUG_MISC __ATTR(hid0, 0600, show_hid0, store_hid0), __ATTR(hid1, 0600, show_hid1, store_hid1), __ATTR(hid4, 0600, show_hid4, store_hid4), @@ -709,7 +709,7 @@ static struct device_attribute pa6t_attrs[] = { __ATTR(tsr1, 0600, show_tsr1, store_tsr1), __ATTR(tsr2, 0600, show_tsr2, store_tsr2), __ATTR(tsr3, 0600, show_tsr3, store_tsr3), -#endif /* CONFIG_DEBUG_KERNEL */ +#endif /* CONFIG_DEBUG_MISC */ }; #endif /* HAS_PPC_PMC_PA6T */ #endif /* HAS_PPC_PMC_CLASSIC */ -- 2.21.0