Insert module ,the driver complain follow message.
insmod drv_tapi.ko
module drv_tapi: relocation overflow
insmod: error inserting 'drv_tapi.ko': -1 Invalid module format
(1) trace to driver source , check Kbuild ,the CFLAGS_MODULE (which is my kernel module build's cflags ,some other linux kernel may be using EXTRA_CFLAGS)
it indedded lacking " -mlong-calls" .
(2) check the configure option ,find i using wrong configure switch to add driver cflags
(3) using correct configure option to add driver's cflags , check Kbuild again,
now it include the "-mlong-calls" mips gcc option.
Ok~ bug fixed.