Skip to content

Commit bb66fc6

Browse files
masahir0ymichal42
authored andcommitted
kbuild: trivial - use tabs for code indent where possible
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 7eb6e34 commit bb66fc6

19 files changed

Lines changed: 89 additions & 91 deletions

‎scripts/basic/fixdep.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,10 @@ static void print_deps(void)
409409
exit(2);
410410
}
411411
if (fstat(fd, &st) < 0) {
412-
fprintf(stderr, "fixdep: error fstat'ing depfile: ");
413-
perror(depfile);
414-
exit(2);
415-
}
412+
fprintf(stderr, "fixdep: error fstat'ing depfile: ");
413+
perror(depfile);
414+
exit(2);
415+
}
416416
if (st.st_size == 0) {
417417
fprintf(stderr,"fixdep: %s is empty\n",depfile);
418418
close(fd);

‎scripts/docproc.c‎

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ int symfilecnt = 0;
154154
static void add_new_symbol(struct symfile *sym, char * symname)
155155
{
156156
sym->symbollist =
157-
realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));
157+
realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));
158158
sym->symbollist[sym->symbolcnt++].name = strdup(symname);
159159
}
160160

@@ -215,7 +215,7 @@ static void find_export_symbols(char * filename)
215215
char *p;
216216
char *e;
217217
if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != NULL) ||
218-
((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {
218+
((p = strstr(line, "EXPORT_SYMBOL")) != NULL)) {
219219
/* Skip EXPORT_SYMBOL{_GPL} */
220220
while (isalnum(*p) || *p == '_')
221221
p++;
@@ -291,28 +291,28 @@ static void extfunc(char * filename) { docfunctions(filename, FUNCTION); }
291291
static void singfunc(char * filename, char * line)
292292
{
293293
char *vec[200]; /* Enough for specific functions */
294-
int i, idx = 0;
295-
int startofsym = 1;
294+
int i, idx = 0;
295+
int startofsym = 1;
296296
vec[idx++] = KERNELDOC;
297297
vec[idx++] = DOCBOOK;
298298
vec[idx++] = SHOWNOTFOUND;
299299

300-
/* Split line up in individual parameters preceded by FUNCTION */
301-
for (i=0; line[i]; i++) {
302-
if (isspace(line[i])) {
303-
line[i] = '\0';
304-
startofsym = 1;
305-
continue;
306-
}
307-
if (startofsym) {
308-
startofsym = 0;
309-
vec[idx++] = FUNCTION;
310-
vec[idx++] = &line[i];
311-
}
312-
}
300+
/* Split line up in individual parameters preceded by FUNCTION */
301+
for (i=0; line[i]; i++) {
302+
if (isspace(line[i])) {
303+
line[i] = '\0';
304+
startofsym = 1;
305+
continue;
306+
}
307+
if (startofsym) {
308+
startofsym = 0;
309+
vec[idx++] = FUNCTION;
310+
vec[idx++] = &line[i];
311+
}
312+
}
313313
for (i = 0; i < idx; i++) {
314-
if (strcmp(vec[i], FUNCTION))
315-
continue;
314+
if (strcmp(vec[i], FUNCTION))
315+
continue;
316316
consume_symbol(vec[i + 1]);
317317
}
318318
vec[idx++] = filename;
@@ -460,14 +460,14 @@ static void parse_file(FILE *infile)
460460
break;
461461
case 'D':
462462
while (*s && !isspace(*s)) s++;
463-
*s = '\0';
464-
symbolsonly(line+2);
465-
break;
463+
*s = '\0';
464+
symbolsonly(line+2);
465+
break;
466466
case 'F':
467467
/* filename */
468468
while (*s && !isspace(*s)) s++;
469469
*s++ = '\0';
470-
/* function names */
470+
/* function names */
471471
while (isspace(*s))
472472
s++;
473473
singlefunctions(line +2, s);
@@ -515,11 +515,11 @@ int main(int argc, char *argv[])
515515
}
516516
/* Open file, exit on error */
517517
infile = fopen(argv[2], "r");
518-
if (infile == NULL) {
519-
fprintf(stderr, "docproc: ");
520-
perror(argv[2]);
521-
exit(2);
522-
}
518+
if (infile == NULL) {
519+
fprintf(stderr, "docproc: ");
520+
perror(argv[2]);
521+
exit(2);
522+
}
523523

524524
if (strcmp("doc", argv[1]) == 0) {
525525
/* Need to do this in two passes.

‎scripts/kallsyms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
123123
}
124124
if (strlen(str) > KSYM_NAME_LEN) {
125125
fprintf(stderr, "Symbol %s too long for kallsyms (%zu vs %d).\n"
126-
"Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
126+
"Please increase KSYM_NAME_LEN both in kernel and kallsyms.c\n",
127127
str, strlen(str), KSYM_NAME_LEN);
128128
return -1;
129129
}

‎scripts/kconfig/conf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ int main(int ac, char **av)
696696
} else if (input_mode == savedefconfig) {
697697
if (conf_write_defconfig(defconfig_file)) {
698698
fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"),
699-
defconfig_file);
699+
defconfig_file);
700700
return 1;
701701
}
702702
} else if (input_mode != listnewconfig) {

‎scripts/kconfig/gconf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ static void display_tree(struct menu *menu)
14041404
&& (tree == tree2))
14051405
continue;
14061406
/*
1407-
if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
1407+
if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
14081408
|| (view_mode == FULL_VIEW)
14091409
|| (view_mode == SPLIT_VIEW))*/
14101410

‎scripts/kconfig/lxdialog/checklist.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ int dialog_checklist(const char *title, const char *prompt, int height,
168168

169169
/* create new window for the list */
170170
list = subwin(dialog, list_height, list_width, y + box_y + 1,
171-
x + box_x + 1);
171+
x + box_x + 1);
172172

173173
keypad(list, TRUE);
174174

175175
/* draw a box around the list items */
176176
draw_box(dialog, box_y, box_x, list_height + 2, list_width + 2,
177-
dlg.menubox_border.atr, dlg.menubox.atr);
177+
dlg.menubox_border.atr, dlg.menubox.atr);
178178

179179
/* Find length of longest item in order to center checklist */
180180
check_x = 0;

‎scripts/kconfig/lxdialog/inputbox.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void print_buttons(WINDOW * dialog, int height, int width, int selected)
4242
* Display a dialog box for inputing a string
4343
*/
4444
int dialog_inputbox(const char *title, const char *prompt, int height, int width,
45-
const char *init)
45+
const char *init)
4646
{
4747
int i, x, y, box_y, box_x, box_width;
4848
int input_x = 0, key = 0, button = -1;

‎scripts/kconfig/lxdialog/menubox.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static int menu_width, item_x;
6464
* Print menu item
6565
*/
6666
static void do_print_item(WINDOW * win, const char *item, int line_y,
67-
int selected, int hotkey)
67+
int selected, int hotkey)
6868
{
6969
int j;
7070
char *menu_item = malloc(menu_width + 1);
@@ -182,7 +182,7 @@ static void do_scroll(WINDOW *win, int *scroll, int n)
182182
* Display a menu for choosing among a number of options
183183
*/
184184
int dialog_menu(const char *title, const char *prompt,
185-
const void *selected, int *s_scroll)
185+
const void *selected, int *s_scroll)
186186
{
187187
int i, j, x, y, box_x, box_y;
188188
int height, width, menu_height;

‎scripts/kconfig/lxdialog/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ void item_make(const char *fmt, ...)
623623
void item_add_str(const char *fmt, ...)
624624
{
625625
va_list ap;
626-
size_t avail;
626+
size_t avail;
627627

628628
avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str);
629629

‎scripts/kconfig/mconf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static void set_config_filename(const char *config_filename)
299299
int size;
300300

301301
size = snprintf(menu_backtitle, sizeof(menu_backtitle),
302-
"%s - %s", config_filename, rootmenu.prompt->text);
302+
"%s - %s", config_filename, rootmenu.prompt->text);
303303
if (size >= sizeof(menu_backtitle))
304304
menu_backtitle[sizeof(menu_backtitle)-1] = '\0';
305305
set_dialog_backtitle(menu_backtitle);

0 commit comments

Comments
 (0)