Re: Detect unused header files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 6, 2009 at 4:14 AM, Marko Kreen<markokr@xxxxxxxxx> wrote:
> Could we have a flag to track top-level headers only?  So that
> anything declared in sub-headers will be registered also under
> top header file?  This seems more useful scanning mode for regular
> user-space code.

Yes, we can. It might not help Sam much though because he is
interested to find out unused header file in system header files.

One way to do it is just let stream keep track of its parent and
is_toplevel.

Just add another pass inside show_unused_streams(). Mark all used
stream's parents as used.

Should be straight forward enough to implement base on branch
"unused-include-files". Any brave sparse hackers want to
give it a try?


Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux