[lkml]   [2012]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH RFC tip/core/rcu 5/6] rcu: Make __kfree_rcu() less dependent on compiler choices
    On Thu, 2012-04-26 at 15:29 +0200, Jan Engelhardt wrote:
    > On Thursday 2012-04-26 14:48, Peter Zijlstra wrote:
    > >On Mon, 2012-04-23 at 09:42 -0700, Paul E. McKenney wrote:
    > >> Currently, __kfree_rcu() is implemented as an inline function, and
    > >> contains a BUILD_BUG_ON() that malfunctions if __kfree_rcu() is compiled
    > >> as an out-of-line function. Unfortunately, there are compiler settings
    > >> (e.g., -O0) that can result in __kfree_rcu() being compiled out of line,
    > >> resulting in annoying build breakage. This commit therefore converts
    > >> both __kfree_rcu() and __is_kfree_rcu_offset() from inline functions to
    > >> macros to prevent such misbehavior on the part of the compiler.
    > >
    > >The kernel very explicitly doesn't support being compiled with -O0, so
    > >this is a non-issue, I think you can make it work if you add
    > >-finline-functions.
    > >
    > >I'd drop this, either make the entire kernel compile or don't bother.
    > It was not originally meant to make the entire kernel compile with -O0,
    > but only select modules/.c files.

    Same problem, who cares about select modules/.c files? Why should they
    have different rules?

    > That, or __always_inline just does not always inline.

    It does indeed not without -finline-functions.

     \ /
      Last update: 2012-04-26 15:53    [W:0.022 / U:73.784 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site