]> git.baikalelectronics.ru Git - kernel.git/commit
tags: include headers before source files
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sun, 7 Feb 2010 23:25:59 +0000 (00:25 +0100)
committerMichal Marek <mmarek@suse.cz>
Wed, 17 Feb 2010 12:59:13 +0000 (13:59 +0100)
commite4e6ac67d685db8923609a21101a9ce653046bc5
tree6977ad3196429112dc02fc44cd6d901dc032990d
parent32db578ec7ef8ace5c96ea72a0e8d3e52105da59
tags: include headers before source files

Currently looking up a structure definition in TAGS / tags takes one to
one of multiple "static struct X" definitions in arch sources, which makes
it for many structs practically impossible to get to the required header.
This patch changes the order of sources being tagged to first scan
architecture includes, then the top-level include/ directory, and only
then the rest. It also takes into account, that many architectures have
more than one include directory, i.e., not only arch/$ARCH/include, but
also arch/$ARCH/mach-X/include etc.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
[mmarek@suse.cz: fix 'var+=text' bashism]
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/tags.sh