[lkml]   [2007]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kconfig: error out if recursive dependencies are found

On Sun, 6 May 2007, Sam Ravnborg wrote:

> if (sym->flags & SYMBOL_CHECK) {
> - printf("Warning! Found recursive dependency: %s", sym->name);
> + fprintf(stderr, "%s:%d:error: found recursive dependency: %s",
> + sym->prop->file->name, sym->prop->lineno, sym->name);
> return sym;
> }

If it were that simple to print the location, I had done it already. :)
Try this:

config FOO
select BAR
depends on BAR

config BAR

I looked into this before, for simple properties one could just remember
the last checked property via a static variable. The problem are the
selects which are checked before that loop, here the information from
where they were selected is not available anymore (at least not easily).

bye, Roman
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-05-07 02:43    [W:0.059 / U:2.392 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site