[Android Software Development] rushabhp99@gmail.com:
As, by going previous issues i found solution of "tspdrv.h not found" by doing

#include to "tspdrv.h"

now it is giving error like shown below...

Device kernel: - Xiomi mi4i

CC drivers/misc/qcom/qdsp6v2/audio_amrnb.o

CC drivers/misc/qcom/qdsp6v2/audio_amrwb.o

CC drivers/misc/qcom/qdsp6v2/audio_amrwbplus.o

CC drivers/misc/qcom/qdsp6v2/audio_evrc.o

CC drivers/misc/qcom/qdsp6v2/audio_qcelp.o

CC drivers/misc/qcom/qdsp6v2/amrwb_in.o

LD drivers/misc/qcom/qdsp6v2/built-in.o

LD drivers/misc/qcom/built-in.o

CC drivers/misc/tspdrv/tspdrv.o

In file included from drivers/misc/tspdrv/tspdrv.c:43:0:

drivers/misc/tspdrv/tspdrv.h:90:9: note: #pragma message: ************ KERNEL ************

#pragma message "************ KERNEL ***********"

^

In file included from include/linux/kernel.h:14:0,

from include/linux/sched.h:15,

from /home/rushabh/KernelDevelopment/Xiaomi_Kernel_OpenSource-ferrari-l-oss/arch/arm64/include/asm/compat.h:25,

from /home/rushabh/KernelDevelopment/Xiaomi_Kernel_OpenSource-ferrari-l-oss/arch/arm64/include/asm/stat.h:23,

from include/linux/stat.h:5,

from include/linux/module.h:10,

from drivers/misc/tspdrv/tspdrv.c:34:

drivers/misc/tspdrv/ImmVibeSPI.c: In function 'isa1000_vib_set_level':

include/linux/dynamic_debug.h:64:16: error: implicit declaration of function 'KBUILD_STR' [-Werror=implicit-function-declaration]

static struct ddebug __aligned(8) \

^

include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'

DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \

^

include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'

dynamic_pr_debug(fmt, ##__VA_ARGS_)

^

drivers/misc/tspdrv/ImmVibeSPI.c:244:2: note: in expansion of macro 'pr_debug'

pr_debug("%s: level = %d\n", func, level);

^

:0:27: error: 'tspdrv' undeclared (first use in this function)

include/linux/dynamic_debug.h:66:14: note: in expansion of macro 'KBUILD_MODNAME'

.modname = KBUILD_MODNAME, \

^

include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'

DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \

^

include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'

dynamic_pr_debug(fmt, ##VA_ARGS)

^

drivers/misc/tspdrv/ImmVibeSPI.c:244:2: note: in expansion of macro 'pr_debug'

pr_debug("%s: level = %d\n", func, level);

^

:0:27: note: each undeclared identifier is reported only once for each function it appears in

include/linux/dynamic_debug.h:66:14: note: in expansion of macro 'KBUILD_MODNAME'

.modname = KBUILD_MODNAME, \

^

include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'

DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \

^

include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'

dynamic_pr_debug(fmt, ##VA_ARGS)

^

drivers/misc/tspdrv/ImmVibeSPI.c:244:2: note: in expansion of macro 'pr_debug'

pr_debug("%s: level = %d\n", func, level);

^

drivers/misc/tspdrv/ImmVibeSPI.c: In function 'ImmVibeSPI_ForceOut_SetSamples':

:0:27: error: 'tspdrv' undeclared (first use in this function)

include/linux/dynamic_debug.h:66:14: note: in expansion of macro 'KBUILD_MODNAME'

.modname = KBUILD_MODNAME, \

^

include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'

DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \

^

include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug'

dynamic_pr_debug(fmt, ##VA_ARGS)

^

drivers/misc/tspdrv/ImmVibeSPI.c:487:2: note: in expansion of macro 'pr_debug'

pr_debug("%s: level = %d\n", func, level);

^

cc1: some warnings being treated as errors

scripts/Makefile.build:308: recipe for target 'drivers/misc/tspdrv/tspdrv.o' failed

make[3]: ** [drivers/misc/tspdrv/tspdrv.o] Error 1

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

make[2]: *** [drivers/misc/tspdrv] Error 2

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

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

Makefile:815: recipe for target 'drivers' failed

make: *** [drivers] Error 2