[lkml]   [2005]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC,PATCH 2/4] Deprecate synchronize_kernel, GPL replacement
    On Sünndag 03 April 2005 20:50, Paul E. McKenney wrote:
    > I couldn't find any way to suppress the "deprecated" warning that is
    > generated by the "&sym" in the last line of the __EXPORT_SYMBOL()
    > macro.  Anyone know a way of doing this?  There doesn't seem to me
    > to be any point to giving the warning on the EXPORT_SYMBOL() -- and
    > it does clutter up compiler output with useless "deprecated" warnings.

    You can define an inline function that is marked __deprecated and calls
    the exported function:

    extern void __synchronize_kernel(void);
    static inline __deprecated synchronize_kernel(void)
    void __synchronize_kernel(void)

    You could even make __synchronize_kernel() static to let it only be used
    by modules, but that might create some confusion about the interface.

    Arnd <><
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-04-06 13:31    [W:0.023 / U:55.396 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site