From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320Ab0ILSr5 (ORCPT ); Sun, 12 Sep 2010 14:47:57 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]:18718 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805Ab0ILSrz convert rfc822-to-8bit (ORCPT ); Sun, 12 Sep 2010 14:47:55 -0400 Date: Sun, 12 Sep 2010 11:46:13 -0700 From: Randy Dunlap To: Felipe Contreras Cc: lkml , linux-next@vger.kernel.org, Ananth N Mavinakayanahalli , Anil S Keshavamurthy , "David S. Miller" , Masami Hiramatsu , akpm Subject: Re: [PATCH -next] optprobes: fix kconfig depends/selects Message-Id: <20100912114613.47bc76fc.randy.dunlap@oracle.com> In-Reply-To: References: <20100812122641.fe88e846.randy.dunlap@oracle.com> <4C8D1D50.600@oracle.com> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 12 Sep 2010 21:41:07 +0300 Felipe Contreras wrote: > On Sun, Sep 12, 2010 at 9:34 PM, Randy Dunlap wrote: > > On 09/12/10 03:49, Felipe Contreras wrote: > >> On Thu, Aug 12, 2010 at 10:26 PM, Randy Dunlap wrote: > >>> From: Randy Dunlap > >>> > >>> KALLSYMS and KALLSYMS_ALL depend on DEBUG_KERNEL, so add that dependency. > >>> KALLSYMS_ALL depends on KALLSYMS, so select both of them, not just KALLSYMS_ALL. > >>> > >>> warning: (OPTPROBES && KPROBES && HAVE_OPTPROBES && !PREEMPT || MTD_UBI_DEBUG && MTD && SYSFS && MTD_UBI || UBIFS_FS_DEBUG && MISC_FILESYSTEMS && UBIFS_FS || LOCKDEP && DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT || LATENCYTOP && HAVE_LATENCYTOP_SUPPORT) selects KALLSYMS_ALL which has unmet direct dependencies (DEBUG_KERNEL && KALLSYMS) > >>> > >>> Signed-off-by: Randy Dunlap > >>> Cc:     Ananth N Mavinakayanahalli > >>> Cc:     Anil S Keshavamurthy > >>> Cc:     "David S. Miller" > >>> Cc:     Masami Hiramatsu > >>> --- > >>>  arch/Kconfig |    2 ++ > >>>  1 file changed, 2 insertions(+) > >>> > >>> --- linux-next-20100810.orig/arch/Kconfig > >>> +++ linux-next-20100810/arch/Kconfig > >>> @@ -45,6 +45,8 @@ config OPTPROBES > >>>        def_bool y > >>>        depends on KPROBES && HAVE_OPTPROBES > >>>        depends on !PREEMPT > >>> +       depends on DEBUG_KERNEL > >>> +       select KALLSYMS > >>>        select KALLSYMS_ALL > >>> > >>>  config HAVE_EFFICIENT_UNALIGNED_ACCESS > >>> -- > >> > >> This causes another problem: > >> > >> arch/Kconfig:33:error: recursive dependency detected! > >> arch/Kconfig:33:      symbol KPROBES depends on KALLSYMS > >> init/Kconfig:825:     symbol KALLSYMS is selected by OPTPROBES > >> arch/Kconfig:44:      symbol OPTPROBES depends on KPROBES > >> > >> The 'select KALLSYMS' is redundant. > >> > >> Otherwise: Signed-off-by: Felipe Contreras > > > > Thanks for checking.  I saw this problem just a day or two ago myself. > > > > Dropping the select does not eliminate the kconfig warning. > > I'll try something else. > > Huh? The original warning is gone by just adding 'depends on DEBUG_KERNEL'. not so in my testing. --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***