Greetings,
We have an embeeded device with ARM Rockchip 3288 with kernel 3.10.79 with MC7304 onboard.
I’ve got an error, while cross compiling GobiNet driver:
root@user-virtual-machine:~/MC7304/S2.36N2.56/GobiNet# make
make -C /home/user/MC7304/kernel M=/home/user/MC7304/S2.36N2.56/GobiNet modules
make[1]: Entering directory ‘/home/user/MC7304/kernel’
CC [M] /home/user/MC7304/S2.36N2.56/GobiNet/GobiUSBNet.o
In file included from include/net/sock.h:57:0,
from include/net/inet_sock.h:27,
from include/net/ip.h:30,
from /home/user/MC7304/S2.36N2.56/GobiNet/GobiUSBNet.c:94:
include/linux/memcontrol.h: In function ‘task_in_memcg_oom’:
include/linux/memcontrol.h:141:2: warning: return makes integer from pointer without a cast [enabled by default]
error, forbidden warning: memcontrol.h:141
scripts/Makefile.build:308: recipe for target ‘/home/user/MC7304/S2.36N2.56/GobiNet/GobiUSBNet.o’ failed
make[2]: *** [/home/user/MC7304/S2.36N2.56/GobiNet/GobiUSBNet.o] Error 1
Makefile:1256: recipe for target ‘module/home/user/MC7304/S2.36N2.56/GobiNet’ failed
make[1]: *** [module/home/user/MC7304/S2.36N2.56/GobiNet] Error 2
make[1]: Leaving directory ‘/home/user/MC7304/kernel’
Makefile:44: recipe for target ‘all’ failed
make: *** [all] Error 2
I tried a lot of versions …
S2.28N2.42
S2.25N2.36
S2.30N2.48
S2.35N2.54
S2.36N2.56
… but still get same error.
Can anyone help me to resolve this error ?