Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86558?usp=email )
Change subject: payloads: Get rid of whitespaces before tab ......................................................................
payloads: Get rid of whitespaces before tab
Change-Id: I4a20d844252870e97a5c07d77e882138f6a74f42 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M payloads/external/tint/generate_core.sh M payloads/external/tint/tintify_core.sh M payloads/libpayload/arch/arm/virtual.c M payloads/libpayload/crypto/sha1.c M payloads/libpayload/curses/curses.h M payloads/libpayload/curses/form/form.h M payloads/libpayload/curses/form/fty_generic.c M payloads/libpayload/curses/form/fty_regex.c M payloads/libpayload/curses/menu/m_global.c M payloads/libpayload/drivers/serial/ipq806x.c M payloads/libpayload/drivers/video/graphics.c M payloads/libpayload/include/arm/arch/cache.h M payloads/libpayload/include/queue.h M payloads/libpayload/libc/getopt_long.c M payloads/libpayload/libc/memory.c M payloads/libpayload/libc/printf.c M payloads/libpayload/libc/qsort.c M payloads/libpayload/libc/string.c 18 files changed, 67 insertions(+), 67 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/86558/1
diff --git a/payloads/external/tint/generate_core.sh b/payloads/external/tint/generate_core.sh index 834906b..0aca41f 100755 --- a/payloads/external/tint/generate_core.sh +++ b/payloads/external/tint/generate_core.sh @@ -8,14 +8,14 @@ ############################################################################## # # USAGE: -# ./generate_core.sh <buildgcc> <corescript> prepare_before_patch +# ./generate_core.sh <buildgcc> <corescript> prepare_before_patch # where -# buildgcc - path to input buildgcc script -# corescript - path to output core part script -# prepare_before_patch - optional argument to insert prepare_${package} -# call into the unpack_and_patch function, e.g. -# for removing some files with rm command -# in order to reduce the size of patch file +# buildgcc - path to input buildgcc script +# corescript - path to output core part script +# prepare_before_patch - optional argument to insert prepare_${package} +# call into the unpack_and_patch function, e.g. +# for removing some files with rm command +# in order to reduce the size of patch file # ##############################################################################
diff --git a/payloads/external/tint/tintify_core.sh b/payloads/external/tint/tintify_core.sh index 0cd6599..e1cecfa 100755 --- a/payloads/external/tint/tintify_core.sh +++ b/payloads/external/tint/tintify_core.sh @@ -8,8 +8,8 @@ ################################################################################ # # USAGE: -# ./tintify_core.sh <corescript> <tintified> \ -# <TINT_BASE_URL> <TINT_ARCHIVE> <TINT_DIR> <TINT_SHA1SUM> +# ./tintify_core.sh <corescript> <tintified> \ +# <TINT_BASE_URL> <TINT_ARCHIVE> <TINT_DIR> <TINT_SHA1SUM> # where # corescript - path to input core script # tintified - path to output tint script diff --git a/payloads/libpayload/arch/arm/virtual.c b/payloads/libpayload/arch/arm/virtual.c index cfc7af1..d720302 100644 --- a/payloads/libpayload/arch/arm/virtual.c +++ b/payloads/libpayload/arch/arm/virtual.c @@ -54,10 +54,10 @@ 0ULL << 54 | /* PN. 0:Not restricted */ \ 0ULL << 53 | /* PXN. 0:Not restricted */ \ 1 << 10 | /* AF. 1:Accessed. This is to prevent access \ - * fault when accessed for the first time */ \ + * fault when accessed for the first time */ \ 0 << 6 | /* AP[2:1]. 0b00:full access from PL1 */ \ 0 << 5 | /* NS. 0:Output address is in Secure space */ \ - 0 << 1 | /* block/table. 0:block entry */ \ + 0 << 1 | /* block/table. 0:block entry */ \ 1 << 0 /* validity. 1:valid */ \ ) #define ATTR_NC (ATTR_BASE | (MAIR_INDX_NC << 2)) diff --git a/payloads/libpayload/crypto/sha1.c b/payloads/libpayload/crypto/sha1.c index 5f54431..b2ef689 100644 --- a/payloads/libpayload/crypto/sha1.c +++ b/payloads/libpayload/crypto/sha1.c @@ -195,7 +195,7 @@ * @param data Pointer to the input data that shall be hashed. * @param len Length of the input data (in bytes). * @param buf Buffer which will hold the resulting hash (must be at - * least 20 bytes in size). + * least 20 bytes in size). * @return Pointer to the output buffer where the hash is stored. */ u8 *sha1(const u8 *data, size_t len, u8 *buf) diff --git a/payloads/libpayload/curses/curses.h b/payloads/libpayload/curses/curses.h index 96fa9ac..4919231 100644 --- a/payloads/libpayload/curses/curses.h +++ b/payloads/libpayload/curses/curses.h @@ -909,7 +909,7 @@ * These pseudo functions are always implemented as macros: */
-#define getyx(win,y,x) (y = getcury(win), x = getcurx(win)) +#define getyx(win,y,x) (y = getcury(win), x = getcurx(win)) #define getbegyx(win,y,x) (y = getbegy(win), x = getbegx(win)) #define getmaxyx(win,y,x) (y = getmaxy(win), x = getmaxx(win)) #define getparyx(win,y,x) (y = getpary(win), x = getparx(win)) @@ -950,8 +950,8 @@ #define getparx(win) ((win)?(win)->_parx:ERR) #define getpary(win) ((win)?(win)->_pary:ERR)
-#define wstandout(win) (wattrset(win,A_STANDOUT)) -#define wstandend(win) (wattrset(win,A_NORMAL)) +#define wstandout(win) (wattrset(win,A_STANDOUT)) +#define wstandend(win) (wattrset(win,A_NORMAL))
#define wattron(win,at) wattr_on(win, NCURSES_CAST(attr_t, at), NULL) #define wattroff(win,at) wattr_off(win, NCURSES_CAST(attr_t, at), NULL) @@ -1272,7 +1272,7 @@ #define WACS_PLUS WACS_SSSS
#define WACS_S1 NCURSES_WACS('o') /* scan line 1 */ -#define WACS_S9 NCURSES_WACS('s') /* scan line 9 */ +#define WACS_S9 NCURSES_WACS('s') /* scan line 9 */ #define WACS_DIAMOND NCURSES_WACS('`') /* diamond */ #define WACS_CKBOARD NCURSES_WACS('a') /* checker board */ #define WACS_DEGREE NCURSES_WACS('f') /* degree symbol */ diff --git a/payloads/libpayload/curses/form/form.h b/payloads/libpayload/curses/form/form.h index 2f55e42..584767a 100644 --- a/payloads/libpayload/curses/form/form.h +++ b/payloads/libpayload/curses/form/form.h @@ -111,7 +111,7 @@ *********/
typedef struct formnode { - unsigned short status; /* flags */ + unsigned short status; /* flags */ short rows; /* size in rows */ short cols; /* size in cols */ int currow; /* current row in field window */ @@ -148,7 +148,7 @@ struct typenode * right; /* ptr to operand for | */
void* (*makearg)(va_list *); /* make fieldtype arg */ - void* (*copyarg)(const void *); /* copy fieldtype arg */ + void* (*copyarg)(const void *); /* copy fieldtype arg */ void (*freearg)(void *); /* free fieldtype arg */
#if NCURSES_INTEROP_FUNCS @@ -315,7 +315,7 @@ void (* const free_arg)(void *)); extern NCURSES_EXPORT(int) set_fieldtype_choice (FIELDTYPE *, bool (* const next_choice)(FIELD *,const void *), - bool (* const prev_choice)(FIELD *,const void *)); + bool (* const prev_choice)(FIELD *,const void *));
/******************* * FIELD routines * diff --git a/payloads/libpayload/curses/form/fty_generic.c b/payloads/libpayload/curses/form/fty_generic.c index 439afcc..ff6e432 100644 --- a/payloads/libpayload/curses/form/fty_generic.c +++ b/payloads/libpayload/curses/form/fty_generic.c @@ -81,7 +81,7 @@ | Function : FIELDTYPE *_nc_generic_fieldtype( | bool (* const field_check)(FIELD *,const void *), | bool (* const char_check) (int, const void *), -| bool (*const next)(FORM*,FIELD*,const void*), +| bool (*const next)(FORM*,FIELD*,const void*), | bool (*const prev)(FORM*,FIELD*,const void*), | void (*freecallback)(void*)) | diff --git a/payloads/libpayload/curses/form/fty_regex.c b/payloads/libpayload/curses/form/fty_regex.c index 2c0a4ca..071cdc2 100644 --- a/payloads/libpayload/curses/form/fty_regex.c +++ b/payloads/libpayload/curses/form/fty_regex.c @@ -64,7 +64,7 @@ return 0; }
-#define INIT register char *sp = RegEx_Init(instring); +#define INIT register char *sp = RegEx_Init(instring); #define GETC() (*sp++) #define PEEKC() (*sp) #define UNGETC(c) (--sp) diff --git a/payloads/libpayload/curses/menu/m_global.c b/payloads/libpayload/curses/menu/m_global.c index 4509996..f207cb6 100644 --- a/payloads/libpayload/curses/menu/m_global.c +++ b/payloads/libpayload/curses/menu/m_global.c @@ -69,7 +69,7 @@ (chtype)A_REVERSE, /* Attribute for selection */ (chtype)A_NORMAL, /* Attribute for nonselection */ (chtype)A_UNDERLINE, /* Attribute for inactive */ - ' ', /* Pad character */ + ' ', /* Pad character */ (Menu_Hook)0, /* Menu init */ (Menu_Hook)0, /* Menu term */ (Menu_Hook)0, /* Item init */ diff --git a/payloads/libpayload/drivers/serial/ipq806x.c b/payloads/libpayload/drivers/serial/ipq806x.c index e267d57..e62d6dc 100644 --- a/payloads/libpayload/drivers/serial/ipq806x.c +++ b/payloads/libpayload/drivers/serial/ipq806x.c @@ -34,7 +34,7 @@ #define IPQ_UART_DM_IMR(base) (((u8 *)(base)) + 0x14) #define IPQ_UART_DM_IPR(base) (((u8 *)(base)) + 0x18) #define IPQ_UART_DM_IRDA(base) (((u8 *)(base)) + 0x38) -#define IPQ_UART_DM_MISR(base) (((u8 *)(base)) + 0x10) +#define IPQ_UART_DM_MISR(base) (((u8 *)(base)) + 0x10) #define IPQ_UART_DM_MR1(base) (((u8 *)(base)) + 0x00) #define IPQ_UART_DM_MR2(base) (((u8 *)(base)) + 0x04) #define IPQ_UART_DM_NO_CHARS_FOR_TX(base) (((u8 *)(base)) + 0x040) diff --git a/payloads/libpayload/drivers/video/graphics.c b/payloads/libpayload/drivers/video/graphics.c index 632a283..9032803 100644 --- a/payloads/libpayload/drivers/video/graphics.c +++ b/payloads/libpayload/drivers/video/graphics.c @@ -190,8 +190,8 @@
/* * Transform a vector: - * x' = x * a_x + offset_x - * y' = y * a_y + offset_y + * x' = x * a_x + offset_x + * y' = y * a_y + offset_y */ static int transform_vector(struct vector *out, const struct vector *in, diff --git a/payloads/libpayload/include/arm/arch/cache.h b/payloads/libpayload/include/arm/arch/cache.h index b4e292e..db98e770 100644 --- a/payloads/libpayload/include/arm/arch/cache.h +++ b/payloads/libpayload/include/arm/arch/cache.h @@ -46,8 +46,8 @@ #define SCTLR_SW (1 << 10) /* SWP and SWPB enable */ #define SCTLR_Z (1 << 11) /* Branch prediction enable */ #define SCTLR_I (1 << 12) /* Instruction cache enable */ -#define SCTLR_V (1 << 13) /* Low/high exception vectors */ -#define SCTLR_RR (1 << 14) /* Round Robin select */ +#define SCTLR_V (1 << 13) /* Low/high exception vectors */ +#define SCTLR_RR (1 << 14) /* Round Robin select */ /* Bits 16:15 are reserved */ #define SCTLR_HA (1 << 17) /* Hardware Access flag enable */ /* Bit 18 is reserved */ diff --git a/payloads/libpayload/include/queue.h b/payloads/libpayload/include/queue.h index c9ac701..70a0307 100644 --- a/payloads/libpayload/include/queue.h +++ b/payloads/libpayload/include/queue.h @@ -393,7 +393,7 @@ if (((elm)->field.sqx_next = XSIMPLEQ_XOR(head, \ (elm)->field.sqx_next)->field.sqx_next) \ == XSIMPLEQ_XOR(head, NULL)) \ - (head)->sqx_last = \ + (head)->sqx_last = \ XSIMPLEQ_XOR(head, &(elm)->field.sqx_next); \ } while (0)
@@ -563,7 +563,7 @@
#define CIRCLEQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) \ for ((var) = CIRCLEQ_LAST(head, headname); \ - (var) != CIRCLEQ_END(head) && \ + (var) != CIRCLEQ_END(head) && \ ((tvar) = CIRCLEQ_PREV(var, headname, field), 1); \ (var) = (tvar))
diff --git a/payloads/libpayload/libc/getopt_long.c b/payloads/libpayload/libc/getopt_long.c index c0303cf..41495e7 100644 --- a/payloads/libpayload/libc/getopt_long.c +++ b/payloads/libpayload/libc/getopt_long.c @@ -81,7 +81,7 @@ /* return values */ #define BADCH (int)'?' #define BADARG ((*options == ':') ? (int)':' : (int)'?') -#define INORDER (int)1 +#define INORDER (int)1
#define EMSG (char*)""
diff --git a/payloads/libpayload/libc/memory.c b/payloads/libpayload/libc/memory.c index fff295e..78163c3 100644 --- a/payloads/libpayload/libc/memory.c +++ b/payloads/libpayload/libc/memory.c @@ -120,8 +120,8 @@ * @param s2 Pointer to the second area to compare. * @param n Size of the first area in bytes (both must have the same length). * @return If n is 0, return zero. Otherwise, return a value less than, equal - * to, or greater than zero if s1 is found less than, equal to, or - * greater than s2 respectively. + * to, or greater than zero if s1 is found less than, equal to, or + * greater than s2 respectively. */
static int default_memcmp(const void *s1, const void *s2, size_t n) diff --git a/payloads/libpayload/libc/printf.c b/payloads/libpayload/libc/printf.c index 3edf166..0c85a2a 100644 --- a/payloads/libpayload/libc/printf.c +++ b/payloads/libpayload/libc/printf.c @@ -364,26 +364,26 @@ * Print string formatted according to the fmt parameter and variadic arguments. * Each formatting directive must have the following form: * - * % [ FLAGS ] [ WIDTH ] [ .PRECISION ] [ TYPE ] CONVERSION + * % [ FLAGS ] [ WIDTH ] [ .PRECISION ] [ TYPE ] CONVERSION * * FLAGS:@n - * - "#" Force to print prefix.For %o conversion, the prefix is 0, for + * - "#" Force to print prefix.For %o conversion, the prefix is 0, for * %x and %X prefixes are 0x and 0X and for conversion %b the * prefix is 0b. * - * - "-" Align to left. + * - "-" Align to left. * - * - "+" Print positive sign just as negative. + * - "+" Print positive sign just as negative. * - * - " " If the printed number is positive and "+" flag is not set, + * - " " If the printed number is positive and "+" flag is not set, * print space in place of sign. * - * - "0" Print 0 as padding instead of spaces. Zeroes are placed between + * - "0" Print 0 as padding instead of spaces. Zeroes are placed between * sign and the rest of the number. This flag is ignored if "-" * flag is specified. * * WIDTH:@n - * - Specify the minimal width of a printed argument. If it is bigger, + * - Specify the minimal width of a printed argument. If it is bigger, * width is ignored. If width is specified with a "*" character instead of * number, width is taken from parameter list. And integer parameter is * expected before parameter for processed conversion specification. If @@ -391,7 +391,7 @@ * set. * * PRECISION:@n - * - Value precision. For numbers it specifies minimum valid numbers. + * - Value precision. For numbers it specifies minimum valid numbers. * Smaller numbers are printed with leading zeroes. Bigger numbers are not * affected. Strings with more than precision characters are cut off. Just * as with width, an "*" can be used used instead of a number. An integer @@ -400,37 +400,37 @@ * second one for precision. * * TYPE:@n - * - "hh" Signed or unsigned char.@n - * - "h" Signed or unsigned short.@n - * - "" Signed or unsigned int (default value).@n - * - "l" Signed or unsigned long int.@n - * - "ll" Signed or unsigned long long int.@n + * - "hh" Signed or unsigned char.@n + * - "h" Signed or unsigned short.@n + * - "" Signed or unsigned int (default value).@n + * - "l" Signed or unsigned long int.@n + * - "ll" Signed or unsigned long long int.@n * * * CONVERSION:@n - * - % Print percentile character itself. + * - % Print percentile character itself. * - * - c Print single character. + * - c Print single character. * - * - s Print zero terminated string. If a NULL value is passed as + * - s Print zero terminated string. If a NULL value is passed as * value, "(NULL)" is printed instead. * - * - P, p Print value of a pointer. Void * value is expected and it is + * - P, p Print value of a pointer. Void * value is expected and it is * printed in hexadecimal notation with prefix (as with %#X / %#x * for 32-bit or %#X / %#x for 64-bit long pointers). * - * - b Print value as unsigned binary number. Prefix is not printed by + * - b Print value as unsigned binary number. Prefix is not printed by * default. (Nonstandard extension.) * - * - o Print value as unsigned octal number. Prefix is not printed by + * - o Print value as unsigned octal number. Prefix is not printed by * default. * - * - d, i Print signed decimal number. There is no difference between d + * - d, i Print signed decimal number. There is no difference between d * and i conversion. * - * - u Print unsigned decimal number. + * - u Print unsigned decimal number. * - * - X, x Print hexadecimal number with upper- or lower-case. Prefix is + * - X, x Print hexadecimal number with upper- or lower-case. Prefix is * not printed by default. * * All other characters from fmt except the formatting directives are printed in @@ -465,7 +465,7 @@ if (i > j) { if ((retval = printf_putnchars(&fmt[j], (size_t) (i - j), ps)) < 0) - return retval; + return retval; counter += retval; }
@@ -569,7 +569,7 @@ case 's': if ((retval = print_string(va_arg(ap, char *), width, precision, flags, ps)) < 0) - return retval; + return retval; counter += retval; j = i + 1; goto next_char; @@ -676,7 +676,7 @@ if (i > j) { if ((retval = printf_putnchars(&fmt[j], (u64) (i - j), ps)) < 0) - return retval; + return retval; counter += retval; }
diff --git a/payloads/libpayload/libc/qsort.c b/payloads/libpayload/libc/qsort.c index aad2aa3..2fd62ff 100644 --- a/payloads/libpayload/libc/qsort.c +++ b/payloads/libpayload/libc/qsort.c @@ -39,11 +39,11 @@ /* * Qsort routine from Bentley & McIlroy's "Engineering a Sort Function". */ -#define swapcode(TYPE, parmi, parmj, n) { \ - size_t i = (n) / sizeof (TYPE); \ - TYPE *pi = (TYPE *) (parmi); \ - TYPE *pj = (TYPE *) (parmj); \ - do { \ +#define swapcode(TYPE, parmi, parmj, n) { \ + size_t i = (n) / sizeof (TYPE); \ + TYPE *pi = (TYPE *) (parmi); \ + TYPE *pj = (TYPE *) (parmj); \ + do { \ TYPE t = *pi; \ *pi++ = *pj; \ *pj++ = t; \ @@ -70,7 +70,7 @@ } else \ swapfunc(a, b, es, swaptype)
-#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) +#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
static __inline char * med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *)) diff --git a/payloads/libpayload/libc/string.c b/payloads/libpayload/libc/string.c index a1b7d4d..98aeff1 100644 --- a/payloads/libpayload/libc/string.c +++ b/payloads/libpayload/libc/string.c @@ -41,8 +41,8 @@ * @param s1 The first string. * @param s2 The second string. * @return Returns a value less than zero, if s1 is shorter than s2. Returns - * zero, if s1 equals s2. Returns a value greater than zero, if - * s1 is longer than s2. + * zero, if s1 equals s2. Returns a value greater than zero, if + * s1 is longer than s2. */ int strcasecmp(const char *s1, const char *s2) { @@ -84,8 +84,8 @@ * @param s1 The first string. * @param s2 The second string. * @return Returns a value less than zero, if s1 is shorter than s2. Returns - * zero, if s1 equals s2. Returns a value greater than zero, if - * s1 is longer than s2. + * zero, if s1 equals s2. Returns a value greater than zero, if + * s1 is longer than s2. */ int strcmp(const char *s1, const char *s2) {