[General Questions and Answers] vineetdev:
Kernel error help me

CC drivers/staging/prima/CORE/SVC/src/btc/wlan_btc_svc.o

CC drivers/staging/prima/CORE/SVC/src/ptt/wlan_ptt_sock_svc.o

CC drivers/staging/prima/CORE/SVC/src/logging/wlan_logging_sock_svc.o

CC drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.o

CC drivers/staging/prima/CORE/VOSS/src/vos_api.o

In file included from drivers/staging/prima/CORE/VOSS/inc/vos_api.h:71:0,

from drivers/staging/prima/CORE/WDA/inc/legacy/palTypes.h:48,

from drivers/staging/prima/CORE/WDA/inc/legacy/halTypes.h:48,

from drivers/staging/prima/CORE/MAC/inc/aniGlobal.h:53,

from drivers/staging/prima/CORE/MAC/inc/macTrace.h:47,

from drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:47:

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c: In function 'macTraceGetP2PConnState':

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:101:28: error: 'P2P_NOT_ACTIVE' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_NOT_ACTIVE);

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:101:9: note: in expansion of macro 'CASE_RETURN_STRING'

CASE_RETURN_STRING(P2P_NOT_ACTIVE);

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:101:28: note: each undeclared identifier is reported only once for each function it appears in

CASE_RETURN_STRING(P2P_NOT_ACTIVE);

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:101:9: note: in expansion of macro 'CASE_RETURN_STRING'

CASE_RETURN_STRING(P2P_NOT_ACTIVE);

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:102:28: error: 'P2P_GO_NEG_PROCESS' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_GO_NEG_PROCESS);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:103:28: error: 'P2P_GO_NEG_COMPLETED' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_GO_NEG_COMPLETED);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:104:28: error: 'P2P_CLIENT_CONNECTING_STATE_1' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_CLIENT_CONNECTING_STATE_1);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:105:28: error: 'P2P_GO_COMPLETED_STATE' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_GO_COMPLETED_STATE);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:106:28: error: 'P2P_CLIENT_CONNECTED_STATE_1' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_CLIENT_CONNECTED_STATE_1);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:107:28: error: 'P2P_CLIENT_DISCONNECTED_STATE' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_CLIENT_DISCONNECTED_STATE);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:108:28: error: 'P2P_CLIENT_CONNECTING_STATE_2' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_CLIENT_CONNECTING_STATE_2);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.c:109:28: error: 'P2P_CLIENT_COMPLETED_STATE' undeclared (first use in this function)

CASE_RETURN_STRING(P2P_CLIENT_COMPLETED_STATE);

^

drivers/staging/prima/CORE/VOSS/inc/vos_trace.h:101:14: note: in definition of macro 'CASE_RETURN_STRING'

case ( ( str ) ): return( (tANI_U8*)(#str) );

^

scripts/Makefile.build:308: recipe for target 'drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.o' failed

make[3]: *** [drivers/staging/prima/CORE/SYS/legacy/src/utils/src/macTrace.o] Error 1

make[3]: *** Waiting for unfinished jobs....

scripts/Makefile.build:455: recipe for target 'drivers/staging/prima' failed

make[2]: *** [drivers/staging/prima] Error 2

scripts/Makefile.build:455: recipe for target 'drivers/staging' failed

make[1]: *** [drivers/staging] Error 2

Makefile:834: recipe for target 'drivers' failed

make: *** [drivers] Error 2