lkml.org 
[lkml]   [2011]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRCU: how to suppress warnings from rcu_assign_pointer?
    Gcc now generates warnings from rcu_assign_pointer when passed the
    address of something for example:
    rcu_assign_pointer(dev_queue->qdisc, &noop_qdisc);
    This warning is harmless and should be surpressed but there maybe
    other cases where we want that Gcc warning.

    I tried various combinations of in rcu_assign_pointer macro
    #pragma GCC diagnostic push
    #pragma GCC diagnostic ignored "-Wlogical-op"
    ...
    #pragma GCC diagnostic pop
    but macro's and pragma's don't nest with the correct scope for
    this.

    Maybe some one with more Gcc foo and time to waste could take
    a crack at it.




    \
     
     \ /
      Last update: 2011-07-29 19:53    [W:2.991 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site