[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: Re: unused macros and include files
From: Linus Torvalds <torvalds () osdl ! org>
Date: 2004-11-16 16:46:55
Message-ID: Pine.LNX.4.58.0411160841380.2222 () ppc970 ! osdl ! org
[Download RAW message or body]
On Tue, 16 Nov 2004, Herbert Poetzl wrote:
>
> tried that, works fine, but a different issue is that
> it seems that I have to sum up the usages across
> 'identical streams' ... because for some headers more
> than one stream seems to be allocated:
>
> [14, 3] = /usr/include/time.h
> [21, 0] = /usr/include/time.h
Yes, they count as separate streams because it wasn't worth it not doing
so.
> I got the impression that the loop in init_stream
> (using identical_files()) is taking care of that ...
Different test. You can't just re-use the stream, because if it's a
recursive include, the _other_ fields in the stream structure need to be
set if it is used. Ie "next_path", constness etc. Maybe something clever
could be done, but this didn't seem to be the place for being clever, so
you'll need to handle it on your end.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic