--- zzzz-none-000/linux-2.6.39.4/scripts/tags.sh 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/scripts/tags.sh 2021-11-10 13:23:11.000000000 +0000 @@ -206,3 +206,25 @@ xtags etags ;; esac + +# Remove structure forward declarations. +if [ -n "$remove_structs" ]; then + LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' $1 +fi + +#ifdef CONFIG_AVM_ENHANCED +# Remove userspace stuff +if [ "$1" != "cscope" ] ; then + LANG=C sed -i -e ' + # "original" location is now drivers/net/ethernet/avm/avm_cpmac/ + s,\(drivers\/net\/\)\(avm_cpmac\/\),\1ethernet\/avm\/\2,; + + # filter out some strange files that should not appear in tags + /\sdrivers\/char\/avm_new\/test_event.h\s/d; + /\sdrivers\/isdn\/avm_dect\/stub\/src\/TOOLS/d; + /\sdrivers\/isdn\/isdn_fon5\/stack\/src\//d; + /\sdrivers\/isdn\/isdn_fon5\/os\/src\//d; + /\sdrivers\/net\/nlaudio\/old_kmemory\.h\s/d; + ' $1 +fi +#endif