git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation/: fix warnings from -Wmissing-prototypes in HOSTCFLAGS
[safe/jmp/linux-2.6]
/
scripts
/
tags.sh
diff --git
a/scripts/tags.sh
b/scripts/tags.sh
index
9e3451d
..
4a34ec5
100755
(executable)
--- a/
scripts/tags.sh
+++ b/
scripts/tags.sh
@@
-24,6
+24,11
@@
else
tree=${srctree}/
fi
tree=${srctree}/
fi
+# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
+if [ "${ALLSOURCE_ARCHS}" = "" ]; then
+ ALLSOURCE_ARCHS=${SRCARCH}
+fi
+
# find sources in arch/$ARCH
find_arch_sources()
{
# find sources in arch/$ARCH
find_arch_sources()
{
@@
-54,26
+59,32
@@
find_other_sources()
find_sources()
{
find_arch_sources $1 "$2"
find_sources()
{
find_arch_sources $1 "$2"
- find_include_sources "$2"
- find_other_sources "$2"
}
all_sources()
{
}
all_sources()
{
- find_sources $SRCARCH '*.[chS]'
+ for arch in $ALLSOURCE_ARCHS
+ do
+ find_sources $arch '*.[chS]'
+ done
if [ ! -z "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
fi
if [ ! -z "$archinclude" ]; then
find_arch_include_sources $archinclude '*.[chS]'
fi
+ find_include_sources '*.[chS]'
+ find_other_sources '*.[chS]'
}
all_kconfigs()
{
}
all_kconfigs()
{
- find_sources $SRCARCH 'Kconfig*'
+ for arch in $ALLSOURCE_ARCHS; do
+ find_sources $arch 'Kconfig*'
+ done
+ find_other_sources 'Kconfig*'
}
all_defconfigs()
{
}
all_defconfigs()
{
- find_sources $
SRCARCH
"defconfig"
+ find_sources $
ALLSOURCE_ARCHS
"defconfig"
}
docscope()
}
docscope()
@@
-91,7
+102,8
@@
exuberant()
-I ____cacheline_internodealigned_in_smp \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
--extra=+f --c-kinds=+px \
-I ____cacheline_internodealigned_in_smp \
-I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
--extra=+f --c-kinds=+px \
- --regex-asm='/^ENTRY\(([^)]*)\).*/\1/'
+ --regex-asm='/^ENTRY\(([^)]*)\).*/\1/' \
+ --regex-c='/^SYSCALL_DEFINE[[:digit:]]?\(([^,)]*).*/sys_\1/'
all_kconfigs | xargs $1 -a \
--langdef=kconfig --language-force=kconfig \
all_kconfigs | xargs $1 -a \
--langdef=kconfig --language-force=kconfig \
@@
-109,7
+121,9
@@
exuberant()
emacs()
{
emacs()
{
- all_sources | xargs $1 -a
+ all_sources | xargs $1 -a \
+ --regex='/^ENTRY(\([^)]*\)).*/\1/' \
+ --regex='/^SYSCALL_DEFINE[0-9]?(\([^,)]*\).*/sys_\1/'
all_kconfigs | xargs $1 -a \
--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'
all_kconfigs | xargs $1 -a \
--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'
@@
-150,10
+164,12
@@
case "$1" in
;;
"tags")
;;
"tags")
+ rm -f tags
xtags ctags
;;
"TAGS")
xtags ctags
;;
"TAGS")
+ rm -f TAGS
xtags etags
;;
esac
xtags etags
;;
esac