lkml.org 
[lkml]   [2010]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] checkpatch: fix false positives involving __percpu attribute
    Date

    Signed-off-by: Scott J. Goldman <scottjg@vmware.com>
    ---
    scripts/checkpatch.pl | 3 ++-
    tests/t/t7005-attr-matcher | 2 ++
    2 files changed, 4 insertions(+), 1 deletions(-)

    diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
    index 87bbb8b..d701956 100755
    --- a/scripts/checkpatch.pl
    +++ b/scripts/checkpatch.pl
    @@ -150,7 +150,8 @@ our $Attribute = qr{
    ____cacheline_aligned|
    ____cacheline_aligned_in_smp|
    ____cacheline_internodealigned_in_smp|
    - __weak
    + __weak|
    + __percpu
    }x;
    our $Modifier;
    our $Inline = qr{inline|__always_inline|noinline};
    diff --git a/tests/t/t7005-attr-matcher b/tests/t/t7005-attr-matcher
    index a50405f..738da4c 100755
    --- a/tests/t/t7005-attr-matcher
    +++ b/tests/t/t7005-attr-matcher
    @@ -31,6 +31,8 @@ attr "____cacheline_internodealigned_in_smp"

    attr "__weak"

    +attr "__percpu"
    +
    attr "__user"
    attr "__kernel"
    attr "__force"
    --
    1.6.0.3


    \
     
     \ /
      Last update: 2010-06-18 20:19    [W:0.020 / U:30.504 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site