Adrian Bunk <[EMAIL PROTECTED]> wrote: > > On Thu, Feb 24, 2005 at 09:24:48PM -0800, Andrew Morton wrote: > > Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > > > > > > > I haven't found any possible modular usage of do_settimeofday in the > > > kernel. > > > > Please, > > > > - Add deprecated_if_module > >... > > What's the correct header file for __deprecated_if_module ?
Actually, __deprecated_in_modules would be a better name. > module.h ? compiler.h, I guess. --- 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 + #ifndef __must_check #define __must_check #endif _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/