2009-09-29 23:11:56

by Robert P. J. Day

[permalink] [raw]
Subject: any interest in unreferenced header files throughout the tree?


with a minor tweak to one of my scripts, i can now identify all
header files throughout the source tree that no one seems to be using,
and i can generate that output broken down as usual by logical
subdirectories.

as a simple example, under fs/, there appears to be a single unused
header file:

fs/xfs/xfs_refcache.h

if there's interest, i can generate output for the entire tree and
post it at the normal wiki location.

rday

p.s. there's a *lot* of them under arch/.

--


========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Annoying Kernel Pedantry.

Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================


2009-10-04 18:57:56

by Pavel Machek

[permalink] [raw]
Subject: Re: any interest in unreferenced header files throughout the tree?

On Tue 2009-09-29 19:11:55, Robert P. J. Day wrote:
>
> with a minor tweak to one of my scripts, i can now identify all
> header files throughout the source tree that no one seems to be using,
> and i can generate that output broken down as usual by logical
> subdirectories.
>
> as a simple example, under fs/, there appears to be a single unused
> header file:
>
> fs/xfs/xfs_refcache.h
>
> if there's interest, i can generate output for the entire tree and
> post it at the normal wiki location.

Better yet post it to the list.

And if there are headers that are unused now and were unused in
2.6.25... I guess you can just submit patch removing those.

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html