From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754343AbcHZPrZ (ORCPT ); Fri, 26 Aug 2016 11:47:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35566 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbcHZPrX (ORCPT ); Fri, 26 Aug 2016 11:47:23 -0400 Message-ID: <1472226423.2751.57.camel@redhat.com> Subject: Re: [PATCH] bug: avoid Kconfig warning for BUG_ON_DATA_CORRUPTION From: Rik van Riel To: Arnd Bergmann , "Paul E . McKenney" Cc: Kees Cook , Steven Rostedt , linux-kernel@vger.kernel.org Date: Fri, 26 Aug 2016 11:47:03 -0400 In-Reply-To: <20160826154232.933432-1-arnd@arndb.de> References: <20160826154232.933432-1-arnd@arndb.de> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 26 Aug 2016 15:47:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-08-26 at 17:42 +0200, Arnd Bergmann wrote: > The CONFIG_DEBUG_LIST option is normally meant for kernel developers > rather than production machines and is guarded by > CONFIG_DEBUG_KERNEL. > > In contrast, the newly added CONFIG_BUG_ON_DATA_CORRUPTION is meant > for security hardening and may be used on systems that intentionally > do not enable CONFIG_DEBUG_KERNEL. In this configuration, we get > a warning from Kconfig about the mismatched dependencies: > > warning: (BUG_ON_DATA_CORRUPTION) selects DEBUG_LIST which has unmet > direct dependencies (DEBUG_KERNEL) > > This annotates the DEBUG_LIST option to be selectable by > BUG_ON_DATA_CORRUPTION when DEBUG_KERNEL is disabled. > > Signed-off-by: Arnd Bergmann > Fixes: 40cd725cfc7f ("bug: Provide toggle for BUG on data > corruption") > Acked-by: Rik van Riel