Re: +mutex-subsystem-synchro-test-module-add-missing-header-file.patchadded to -mm tree

From: Ingo Molnar
Date: Tue Oct 13 2009 - 01:59:14 EST



* akpm@xxxxxxxxxxxxxxxxxxxx <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> Subject: synchro-test: add missing header file
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Fix build errors, add <sched.h> header file:
>
> kernel/synchro-test.c: In function 'sched':
> kernel/synchro-test.c:220: error: implicit declaration of function 'schedule'
> kernel/synchro-test.c: In function 'mutexer':
> kernel/synchro-test.c:227: error: implicit declaration of function 'daemonize'
> kernel/synchro-test.c:228: error: implicit declaration of function 'set_user_nice'
> kernel/synchro-test.c:241: error: dereferencing pointer to incomplete type
> kernel/synchro-test.c: In function 'semaphorer':
> kernel/synchro-test.c:263: error: dereferencing pointer to incomplete type
> kernel/synchro-test.c: In function 'reader':
> kernel/synchro-test.c:287: error: dereferencing pointer to incomplete type
> kernel/synchro-test.c: In function 'writer':
> kernel/synchro-test.c:311: error: dereferencing pointer to incomplete type
> kernel/synchro-test.c: In function 'downgrader':
> kernel/synchro-test.c:340: error: dereferencing pointer to incomplete type
>
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> Acked-by: David Howells <dhowells@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
>
> kernel/synchro-test.c | 1 +
> 1 file changed, 1 insertion(+)

Btw., locking related tests generally live in lib/.

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