From patchwork Fri Apr 12 01:43:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10897127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7993117EF for ; Fri, 12 Apr 2019 01:44:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A7FA28B2D for ; Fri, 12 Apr 2019 01:44:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BA5428D92; Fri, 12 Apr 2019 01:44:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E928328B2D for ; Fri, 12 Apr 2019 01:44:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbfDLBoO (ORCPT ); Thu, 11 Apr 2019 21:44:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:54732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbfDLBoN (ORCPT ); Thu, 11 Apr 2019 21:44:13 -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 9593421850; Fri, 12 Apr 2019 01:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555033452; bh=ezoFhkNv2c7a2gDzE9OdwLaKZ5doSr9fSC1eIzoUfIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zk49QwQ6GRZl9d1j8ACX/XqodaXmIQxtFzJ2j1quPzGM0pRnH5u1w4gni9Z6L1BfW 9Uez8coVEqO3rqL/DTlfQwaAbov/t63LqaWqD4juwNvSD/3uT13bgXZl8JFbS9RG4c 5WWaUCrwM4lYUZln7aFaS7lLxopcmVBUmbFxvw4A= From: Sinan Kaya To: linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, keescook@chromium.org, Sinan Kaya , Ralf Baechle , Paul Burton , James Hogan , Mike Rapoport , Andrew Morton , Michal Hocko , Anders Roxell , Greg Kroah-Hartman , Huacai Chen , Stefan Agner , linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCH v4 3/5] mips: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC Date: Fri, 12 Apr 2019 01:43:53 +0000 Message-Id: <20190412014355.25307-4-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 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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/mips/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 8d1dc6c71173..9fc8fadb8418 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -563,7 +563,7 @@ static void __init bootmem_init(void) offset = __pa_symbol(_text) - __pa_symbol(VMLINUX_LOAD_ADDRESS); memblock_free(__pa_symbol(VMLINUX_LOAD_ADDRESS), offset); -#if defined(CONFIG_DEBUG_KERNEL) && defined(CONFIG_DEBUG_INFO) +#if defined(CONFIG_DEBUG_MISC) && defined(CONFIG_DEBUG_INFO) /* * This information is necessary when debugging the kernel * But is a security vulnerability otherwise!