Menu

#3 compile error in test.c

closed-fixed
None
5
2001-07-31
2001-07-31
No

hi dear...

==================================================
gcc -D__KERNEL__ -DMODULE -I../../../include -
I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -
fomit-frame-pointer -fno-strength-reduce -
DMODVERSIONS -
include /usr/src/linux/include/linux/modversions.h -
MD -DCONFIG_BLUETOOTH_UNPLUG_TEST -c -o test.o test.c
In file included
from ../../../include/linux/bluetooth/btcommon.h:51,

from ../../../include/linux/bluetooth/test.h:48,
from test.c:48:
../../../include/linux/bluetooth/btconfig.h:59:3:
warning: "/*" within comment
test.c: In function `test_connect_ind':
test.c:219: warning: implicit declaration of function
`mark_bh'
test.c:219: `IMMEDIATE_BH' undeclared (first use in
this function)
test.c:219: (Each undeclared identifier is reported
only once
test.c:219: for each function it appears in.)
test.c: In function `test_process_cmd':
test.c:458: warning: implicit declaration of function
`process_test_cmd'
make: *** [test.o] Error 1
=======================================================

if you find this wrong messages
you must inset few lines in test.c

#ifdef __KERNEL__
#include <linux/malloc.h>
#include <linux/bluetooth/test.h>
#include <linux/bluetooth/btcommon.h>
#include <linux/bluetooth/btmem.h>
#include <linux/bluetooth/l2cap.h>
#ifndef _LINUX_INTERRUPT_H /* only used IMMEDIATE_BH */
#include <linux/interrupt.h>
#endif /* _LINUX_INTERRUPT_H */
#else

Discussion

  • Peter Kjellerstedt

    • assigned_to: nobody --> pkj
    • status: open --> closed-fixed
     
  • Peter Kjellerstedt

    Logged In: YES
    user_id=93108

    This has now been fixed in the latest version of test.c (1.19).

     

Log in to post a comment.