lkml.org 
[lkml]   [2011]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH RFC 1/5] scripts: Add sortextable to sort the kernel's exception table.
    Date
    On Friday 18 November 2011 14:37:44 David Daney wrote:
    > --- /dev/null
    > +++ b/scripts/sortextable.c
    >
    > +/*
    > + * sortextable.c: Sort the kernel's exception table
    > + *
    > + * Copyright 2011 Cavium, Inc.
    > + *
    > + * Based on code taken from recortmcount.c which is:

    seems like it'd be nice if the duplicate helper funcs were placed in a common
    header file rather than copying & pasting between them.

    > + switch (w2(ehdr->e_machine)) {
    > + default:
    > + fprintf(stderr, "unrecognized e_machine %d %s\n",
    > + w2(ehdr->e_machine), fname);
    > + fail_file();
    > + break;
    > + case EM_386:
    > + case EM_MIPS:
    > + case EM_X86_64:
    > + break;
    > + } /* end switch */

    unlike recordmcount, this file doesn't do anything arch specific. so let's just
    delete this and be done.
    -mike
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2011-11-21 00:25    [W:0.020 / U:0.336 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site