summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.host1
-rw-r--r--scripts/Makefile.lib2
-rw-r--r--scripts/basic/docproc.c1
-rwxr-xr-xscripts/find_stray_empty_lines10
-rwxr-xr-xscripts/kconfig/check.sh1
-rw-r--r--scripts/kconfig/lex.zconf.c_shipped1
-rw-r--r--scripts/kconfig/menu.c1
-rw-r--r--scripts/kconfig/util.c1
-rw-r--r--scripts/kconfig/zconf.hash.c_shipped1
-rw-r--r--scripts/kconfig/zconf.tab.c_shipped2
-rwxr-xr-xscripts/showasm1
11 files changed, 10 insertions, 12 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 23bd9ff..2e62850 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -153,4 +153,3 @@ $(host-cshlib): %: $(host-cshobjs) FORCE
targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\
$(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs)
-
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index be679b6..3e54ea7 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -168,5 +168,3 @@ cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
quiet_cmd_gzip = GZIP $@
cmd_gzip = gzip -f -9 < $< > $@
-
-
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c
index 50ef371..db30019 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -397,4 +397,3 @@ int main(int argc, char **argv)
fflush(stdout);
return exitstatus;
}
-
diff --git a/scripts/find_stray_empty_lines b/scripts/find_stray_empty_lines
index 58daf2f..60873da 100755
--- a/scripts/find_stray_empty_lines
+++ b/scripts/find_stray_empty_lines
@@ -5,3 +5,13 @@ grep -n -A1 -r $'^\t*{$' . | grep -B1 '.[ch]-[0-9]*-$'
# or (less surefire ones):
grep -n -B1 -r $'^\t*}' . | grep -A1 '.[ch]-[0-9]*-$'
grep -n -A1 -r $'^\t*{' . | grep -B1 '.[ch]-[0-9]*-$'
+
+# find trailing empty lines
+find -type f | xargs tail -1 | while read file; do
+ test x"$file" = x"" && continue
+ read lastline
+ #echo "|$file|$lastline"
+ if test x"$lastline" = x""; then
+ echo "$file"
+ fi
+done
diff --git a/scripts/kconfig/check.sh b/scripts/kconfig/check.sh
index fa59cbf..15fc294 100755
--- a/scripts/kconfig/check.sh
+++ b/scripts/kconfig/check.sh
@@ -11,4 +11,3 @@ EOF
if [ ! "$?" -eq "0" ]; then
echo -DKBUILD_NO_NLS;
fi
-
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/lex.zconf.c_shipped
index 5fc323d..4837bbf 100644
--- a/scripts/kconfig/lex.zconf.c_shipped
+++ b/scripts/kconfig/lex.zconf.c_shipped
@@ -2322,4 +2322,3 @@ char *zconf_curname(void)
{
return current_pos.file ? current_pos.file->name : "<none>";
}
-
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 0fce20c..14cf2ea 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -394,4 +394,3 @@ struct menu *menu_get_parent_menu(struct menu *menu)
}
return menu;
}
-
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c
index ef4c832..2630919 100644
--- a/scripts/kconfig/util.c
+++ b/scripts/kconfig/util.c
@@ -112,4 +112,3 @@ const char *str_get(struct gstr *gs)
{
return gs->s;
}
-
diff --git a/scripts/kconfig/zconf.hash.c_shipped b/scripts/kconfig/zconf.hash.c_shipped
index 345f0fc..d39cf18 100644
--- a/scripts/kconfig/zconf.hash.c_shipped
+++ b/scripts/kconfig/zconf.hash.c_shipped
@@ -228,4 +228,3 @@ kconf_id_lookup (register const char *str, register unsigned int len)
}
return 0;
}
-
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped
index b62724d..a27d256 100644
--- a/scripts/kconfig/zconf.tab.c_shipped
+++ b/scripts/kconfig/zconf.tab.c_shipped
@@ -2169,5 +2169,3 @@ void zconfdump(FILE *out)
#include "expr.c"
#include "symbol.c"
#include "menu.c"
-
-
diff --git a/scripts/showasm b/scripts/showasm
index 0464426..dc2cd70 100755
--- a/scripts/showasm
+++ b/scripts/showasm
@@ -18,4 +18,3 @@ then
fi
objdump -d $1 | sed -n -e '/./{H;$!d}' -e "x;/^.[0-9a-fA-F]* <$2>:/p"
-