lkml.org 
[lkml]   [2011]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH 0/5] use kstrtoul, etc
    Date
    These patches replace calls to strict_strtoul, etc by the corresponding
    calls to kstrtoul. The complete semantic patch that makes these changes is
    as follows. This semantic patch checks that the types are as expected,
    which was always the case for these files.

    // <smpl>
    @@
    expression a,b;
    {int,long} *c;
    @@

    -strict_strtol
    +kstrtol
    (a,b,c)

    @@
    expression a,b;
    long long *c;
    @@

    -strict_strtoll
    +kstrtoll
    (a,b,c)

    @@
    typedef ulong;
    expression a,b;
    {ulong,unsigned long,unsigned int,size_t} *c;
    @@

    -strict_strtoul
    +kstrtoul
    (a,b,c)

    @@
    expression a,b;
    unsigned long long *c;
    @@

    -strict_strtoull
    +kstrtoull
    (a,b,c)

    @@
    expression a,b;
    u64 *c;
    @@

    -strict_strtoull
    +kstrtou64
    (a,b,c)

    @@
    @@

    (
    +BAD(
    strict_strtoull(...)
    +)
    |
    +BAD(
    strict_strtoul(...)
    +)
    |
    +BAD(
    strict_strtol(...)
    +)
    |
    +BAD(
    strict_strtoll(...)
    +)
    )
    // </smpl>



    \
     
     \ /
      Last update: 2011-11-06 14:31    [W:0.019 / U:34.872 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site