]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kbuild: replace abort() with exit(1)
authorSam Ravnborg <sam@mars.ravnborg.org>
Sat, 24 Jun 2006 21:46:54 +0000 (23:46 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sat, 24 Jun 2006 21:46:54 +0000 (23:46 +0200)
We have had no use of the coredump file for a long time.
So just exit(1) and avoid coredumping.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/genksyms/lex.c_shipped
scripts/genksyms/lex.l
scripts/mod/mk_elfconfig.c
scripts/mod/modpost.c

index 1218053ee960e390020aa2a85067797673e1ebcd..37ba98241b96078d676b10ddb070690b2c15bfac 100644 (file)
@@ -2023,7 +2023,7 @@ repeat:
       break;
 
     default:
-      abort();
+      exit(1);
     }
 fini:
 
index fe0dfeedf0ff54b3c59eff83fea2a97bbc338c84..5e544a06678b6f10791b2af77a6eb05f21c13beb 100644 (file)
@@ -392,7 +392,7 @@ repeat:
       break;
 
     default:
-      abort();
+      exit(1);
     }
 fini:
 
index 3c92c83733f47ac929a0dfaf3dd5c83e9f76e6a1..725d61c0fb43a2f29e6569a3c6e142d38154e7b0 100644 (file)
@@ -28,7 +28,7 @@ main(int argc, char **argv)
                printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
                break;
        default:
-               abort();
+               exit(1);
        }
        switch (ei[EI_DATA]) {
        case ELFDATA2LSB:
@@ -38,7 +38,7 @@ main(int argc, char **argv)
                printf("#define KERNEL_ELFDATA ELFDATA2MSB\n");
                break;
        default:
-               abort();
+               exit(1);
        }
 
        if (sizeof(unsigned long) == 4) {
@@ -53,7 +53,7 @@ main(int argc, char **argv)
        else if (memcmp(endian_test.c, "\x02\x01", 2) == 0)
                printf("#define HOST_ELFDATA ELFDATA2LSB\n");
        else
-               abort();
+               exit(1);
 
        if ((strcmp(argv[1], "v850") == 0) || (strcmp(argv[1], "h8300") == 0))
                printf("#define MODULE_SYMBOL_PREFIX \"_\"\n");
index 7e226896579cac6eff6dc7ffcfd04f4030aa33b7..0dd16177642de15ba6593c83ed5d12553d425f2e 100644 (file)
@@ -330,7 +330,7 @@ static void parse_elf(struct elf_info *info, const char *filename)
        hdr = grab_file(filename, &info->size);
        if (!hdr) {
                perror(filename);
-               abort();
+               exit(1);
        }
        info->hdr = hdr;
        if (info->size < sizeof(*hdr))