What is in include/linux/kernel.h line 158

Sam Sharpe lists.redhat at samsharpe.net
Sun Apr 11 13:23:26 UTC 2010


On 10 April 2010 21:29, Antonio Olivares <olivares14031 at yahoo.com> wrote:
> Dear folks,
>
> I have encountered this so called sleeping function several times in a good while
> (kernel 2.6.27, 2.6.29, 2.6.30, 2.6.31, 2.6.32) Fedora based kernels and compiled
> kernels from kernel.org,
>
> I am asking this because I see this again and again.  I would like to know what is
> in there so if I can do something about it, or just live with it since it appears to be
> harmless, but anyhow it is annoying :(

[sam at samlap ~ ]$ tail -n +152 /usr/src/kernels/`uname
-r`/include/linux/kernel.h | head -n8
#ifdef CONFIG_PROVE_LOCKING
void might_fault(void);
#else
static inline void might_fault(void)
{
	might_sleep();
}
#endif

--
Sam


More information about the users mailing list