lkml.org 
[lkml]   [2005]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [2.6 patch] unexport do_settimeofday
    On Fri, Feb 25, 2005 at 01:55:04PM -0800, Andrew Morton wrote:
    >...
    > --- 25/include/linux/compiler.h~a 2005-02-25 13:53:32.000000000 -0800
    > +++ 25-akpm/include/linux/compiler.h 2005-02-25 13:54:45.000000000 -0800
    > @@ -86,6 +86,12 @@ extern void __chk_io_ptr(void __iomem *)
    > # define __deprecated /* unimplemented */
    > #endif
    >
    > +#ifdef MODULE
    > +#define __deprecated_in_modules __deprecated
    > +#else
    > +#define __deprecated_in_modules /* OK in non-modular code */
    > +#endif
    > +
    >...

    Looks good.


    One more question:

    You get a false positive if the file containing the symbol is itself a
    module.

    Is there any way to solve this without additional #define's and #ifdef's
    for each symbol?


    cu
    Adrian

    --

    "Is there not promise of rain?" Ling Tan asked suddenly out
    of the darkness. There had been need of rain for many days.
    "Only a promise," Lao Er said.
    Pearl S. Buck - Dragon Seed

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:10    [W:0.024 / U:208.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site