diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 2 | ||||
-rw-r--r-- | tools/aisimage.c | 2 | ||||
-rw-r--r-- | tools/aisimage.h | 2 | ||||
-rw-r--r-- | tools/bddb/defs.php | 2 | ||||
-rw-r--r-- | tools/buildman/README | 1 | ||||
-rw-r--r-- | tools/env/fw_env.h | 2 | ||||
-rw-r--r-- | tools/env/fw_env_main.c | 2 | ||||
-rw-r--r-- | tools/imls/Makefile | 2 | ||||
-rw-r--r-- | tools/imximage.c | 2 | ||||
-rw-r--r-- | tools/imximage.h | 2 | ||||
-rw-r--r-- | tools/kernel-doc/docproc.c | 52 | ||||
-rwxr-xr-x | tools/kernel-doc/kernel-doc | 2 | ||||
-rw-r--r-- | tools/omapimage.c | 2 | ||||
-rw-r--r-- | tools/omapimage.h | 2 | ||||
-rw-r--r-- | tools/pblimage.h | 2 | ||||
-rwxr-xr-x | tools/reformat.py | 2 | ||||
-rw-r--r-- | tools/ublimage.c | 2 | ||||
-rw-r--r-- | tools/ublimage.h | 2 | ||||
-rw-r--r-- | tools/ubsha1.c | 8 | ||||
-rw-r--r-- | tools/updater/flash_hw.c | 2 |
20 files changed, 47 insertions, 48 deletions
diff --git a/tools/Makefile b/tools/Makefile index c36cde20074..ca76f947e5d 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -162,7 +162,7 @@ HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \ -idirafter $(SRCTREE)/include \ -idirafter $(OBJTREE)/include2 \ -idirafter $(OBJTREE)/include \ - -I $(SRCTREE)/lib/libfdt \ + -I $(SRCTREE)/lib/libfdt \ -I $(SRCTREE)/tools \ -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \ -DUSE_HOSTCC \ diff --git a/tools/aisimage.c b/tools/aisimage.c index 980bf2e1a7b..04fb649899b 100644 --- a/tools/aisimage.c +++ b/tools/aisimage.c @@ -2,7 +2,7 @@ * (C) Copyright 2011 * Stefano Babic, DENX Software Engineering, sbabic@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #include "mkimage.h" diff --git a/tools/aisimage.h b/tools/aisimage.h index 1f092dbc7e5..e1aa3ef7030 100644 --- a/tools/aisimage.h +++ b/tools/aisimage.h @@ -2,7 +2,7 @@ * (C) Copyright 2011 * Stefano Babic, DENX Software Engineering, sbabic@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _AISIMAGE_H_ diff --git a/tools/bddb/defs.php b/tools/bddb/defs.php index b7518e3f797..0b50602823d 100644 --- a/tools/bddb/defs.php +++ b/tools/bddb/defs.php @@ -178,7 +178,7 @@ function enum_to_index($name, $vals) { $index = array_search($GLOBALS[$name], $vals); if ($vals[0] != '') - $index++; + $index++; return $index; } diff --git a/tools/buildman/README b/tools/buildman/README index f63f2786732..090b653116e 100644 --- a/tools/buildman/README +++ b/tools/buildman/README @@ -677,7 +677,6 @@ the build speed by building all commits for a board instead of the other way around. - Simon Glass sjg@chromium.org Halloween 2012 diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 62082937907..aff471ba192 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -2,7 +2,7 @@ * (C) Copyright 2002-2008 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ /* Pull in the current config to define the default environment */ diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index 5f42df3889e..2b85d788645 100644 --- a/tools/env/fw_env_main.c +++ b/tools/env/fw_env_main.c @@ -2,7 +2,7 @@ * (C) Copyright 2000-2008 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ /* diff --git a/tools/imls/Makefile b/tools/imls/Makefile index 1be1edb16a8..e3719832754 100644 --- a/tools/imls/Makefile +++ b/tools/imls/Makefile @@ -39,7 +39,7 @@ LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y)) HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \ -idirafter $(OBJTREE)/include2 \ -idirafter $(OBJTREE)/include \ - -I $(SRCTREE)/lib/libfdt \ + -I $(SRCTREE)/lib/libfdt \ -I $(SRCTREE)/tools \ -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES diff --git a/tools/imximage.c b/tools/imximage.c index 32e4efe423d..511e3f20387 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -6,7 +6,7 @@ * Marvell Semiconductor <www.marvell.com> * Written-by: Prafulla Wadaskar <prafulla@marvell.com> * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #include "mkimage.h" diff --git a/tools/imximage.h b/tools/imximage.h index efe6a88d9ea..01f861e7a57 100644 --- a/tools/imximage.h +++ b/tools/imximage.h @@ -2,7 +2,7 @@ * (C) Copyright 2009 * Stefano Babic, DENX Software Engineering, sbabic@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _IMXIMAGE_H_ diff --git a/tools/kernel-doc/docproc.c b/tools/kernel-doc/docproc.c index d4fc42e4cc6..a9b49c59a0c 100644 --- a/tools/kernel-doc/docproc.c +++ b/tools/kernel-doc/docproc.c @@ -153,7 +153,7 @@ int symfilecnt = 0; static void add_new_symbol(struct symfile *sym, char * symname) { sym->symbollist = - realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); + realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); sym->symbollist[sym->symbolcnt++].name = strdup(symname); } @@ -214,7 +214,7 @@ static void find_export_symbols(char * filename) char *p; char *e; if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != NULL) || - ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) { + ((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) { /* Skip EXPORT_SYMBOL{_GPL} */ while (isalnum(*p) || *p == '_') p++; @@ -290,24 +290,24 @@ static void extfunc(char * filename) { docfunctions(filename, FUNCTION); } static void singfunc(char * filename, char * line) { char *vec[200]; /* Enough for specific functions */ - int i, idx = 0; - int startofsym = 1; + int i, idx = 0; + int startofsym = 1; vec[idx++] = KERNELDOC; vec[idx++] = DOCBOOK; - /* Split line up in individual parameters preceded by FUNCTION */ - for (i=0; line[i]; i++) { - if (isspace(line[i])) { - line[i] = '\0'; - startofsym = 1; - continue; - } - if (startofsym) { - startofsym = 0; - vec[idx++] = FUNCTION; - vec[idx++] = &line[i]; - } - } + /* Split line up in individual parameters preceded by FUNCTION */ + for (i=0; line[i]; i++) { + if (isspace(line[i])) { + line[i] = '\0'; + startofsym = 1; + continue; + } + if (startofsym) { + startofsym = 0; + vec[idx++] = FUNCTION; + vec[idx++] = &line[i]; + } + } for (i = 0; i < idx; i++) { if (strcmp(vec[i], FUNCTION)) continue; @@ -456,14 +456,14 @@ static void parse_file(FILE *infile) break; case 'D': while (*s && !isspace(*s)) s++; - *s = '\0'; - symbolsonly(line+2); - break; + *s = '\0'; + symbolsonly(line+2); + break; case 'F': /* filename */ while (*s && !isspace(*s)) s++; *s++ = '\0'; - /* function names */ + /* function names */ while (isspace(*s)) s++; singlefunctions(line +2, s); @@ -511,11 +511,11 @@ int main(int argc, char *argv[]) } /* Open file, exit on error */ infile = fopen(argv[2], "r"); - if (infile == NULL) { - fprintf(stderr, "docproc: "); - perror(argv[2]); - exit(2); - } + if (infile == NULL) { + fprintf(stderr, "docproc: "); + perror(argv[2]); + exit(2); + } if (strcmp("doc", argv[1]) == 0) { /* Need to do this in two passes. diff --git a/tools/kernel-doc/kernel-doc b/tools/kernel-doc/kernel-doc index 63474189048..cbbf34c27cf 100755 --- a/tools/kernel-doc/kernel-doc +++ b/tools/kernel-doc/kernel-doc @@ -432,7 +432,7 @@ sub dump_doc_section { my $contents = join "\n", @_; if ($no_doc_sections) { - return; + return; } if (($function_only == 0) || diff --git a/tools/omapimage.c b/tools/omapimage.c index 00853dd7413..8774a7e3ace 100644 --- a/tools/omapimage.c +++ b/tools/omapimage.c @@ -11,7 +11,7 @@ * Marvell Semiconductor <www.marvell.com> * Written-by: Prafulla Wadaskar <prafulla@marvell.com> * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #include "mkimage.h" diff --git a/tools/omapimage.h b/tools/omapimage.h index 058013498b1..45d14eaf9cc 100644 --- a/tools/omapimage.h +++ b/tools/omapimage.h @@ -4,7 +4,7 @@ * Author John Rigby <john.rigby@linaro.org> * Based on TI's signGP.c * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _OMAPIMAGE_H_ diff --git a/tools/pblimage.h b/tools/pblimage.h index a0f1fc53ab3..12bece50a7d 100644 --- a/tools/pblimage.h +++ b/tools/pblimage.h @@ -1,7 +1,7 @@ /* * Copyright 2012 Freescale Semiconductor, Inc. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef PBLIMAGE_H diff --git a/tools/reformat.py b/tools/reformat.py index 7e038905c2c..61306d0235d 100755 --- a/tools/reformat.py +++ b/tools/reformat.py @@ -49,7 +49,7 @@ try: ["ignore-case","default","split="]) except getopt.GetoptError as err: print str(err) # will print something like "option -a not recognized" - sys.exit(2) + sys.exit(2) for o, a in opts: if o in ("-s", "--split"): diff --git a/tools/ublimage.c b/tools/ublimage.c index b4ef7f080ea..aafe2487589 100644 --- a/tools/ublimage.c +++ b/tools/ublimage.c @@ -10,7 +10,7 @@ * Marvell Semiconductor <www.marvell.com> * Written-by: Prafulla Wadaskar <prafulla@marvell.com> * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #include "mkimage.h" diff --git a/tools/ublimage.h b/tools/ublimage.h index b7318e95352..32cc5822cab 100644 --- a/tools/ublimage.h +++ b/tools/ublimage.h @@ -6,7 +6,7 @@ * (C) Copyright 2009 * Stefano Babic, DENX Software Engineering, sbabic@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _UBLIMAGE_H_ diff --git a/tools/ubsha1.c b/tools/ubsha1.c index c003f9ad19f..1041588d0b0 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -63,10 +63,10 @@ int main (int argc, char **argv) sha1_csum ((unsigned char *) data, len, (unsigned char *)output); printf ("U-Boot sum:\n"); - for (i = 0; i < 20 ; i++) { - printf ("%02X ", output[i]); - } - printf ("\n"); + for (i = 0; i < 20 ; i++) { + printf ("%02X ", output[i]); + } + printf ("\n"); /* overwrite the sum in the bin file, with the actual */ lseek (ifd, SHA1_SUM_POS, SEEK_END); if (write (ifd, output, SHA1_SUM_LEN) != SHA1_SUM_LEN) { diff --git a/tools/updater/flash_hw.c b/tools/updater/flash_hw.c index 254493345d8..54a910b1780 100644 --- a/tools/updater/flash_hw.c +++ b/tools/updater/flash_hw.c @@ -5,7 +5,7 @@ * (C) Copyright 2002 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * - * SPDX-License-Identifier: GPL-2.0+ + * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> |