• Randy Dunlap's avatar
    Fix build errors, add <sched.h> header file: · a794ff33
    Randy Dunlap authored
    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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
    Acked-by: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    a794ff33
synchro-test.c 11.5 KB