View Single Post
Old 10-13-12, 08:03 PM   #2
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: Heads up - linux 3.7-rc* header file reorg

cc -Wp,-MD,/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/.nv-mmap.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.7/include -I/usr/src/XXX/linux-3.6.0/arch/x86/include -Iarch/x86/include/generated -I/usr/src/XXX/linux-3.6.0/include -Iinclude -I/usr/src/XXX/linux-3.6.0/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/XXX/linux-3.6.0/include/uapi -Iinclude/generated/uapi -include /usr/src/XXX/linux-3.6.0/include/linux/kconfig.h -I/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.51\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mmap)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.o /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c
In file included from /usr/src/XXX/linux-3.6.0/include/linux/kernel.h:10:0,
from /usr/src/XXX/linux-3.6.0/include/linux/sched.h:15,
from /usr/src/XXX/linux-3.6.0/include/linux/utsname.h:5,
from /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-linux.h:38,
from /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c:15:
/usr/src/XXX/linux-3.6.0/include/linux/bitops.h: In function ‘hweight_long’:
/usr/src/XXX/linux-3.6.0/include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/XXX/linux-3.6.0/arch/x86/include/asm/uaccess.h:594:0,
from /usr/src/XXX/linux-3.6.0/include/linux/poll.h:11,
from /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-linux.h:97,
from /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c:15:
/usr/src/XXX/linux-3.6.0/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/XXX/linux-3.6.0/arch/x86/include/asm/uaccess_64.h:62:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c: In function ‘nv_kern_mmap’:
/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c:466:47: error: ‘VM_RESERVED’ undeclared (first use in this function)
/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.c:466:47: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nv-mmap.o] Error 1
make[3]: *** [_module_/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [install] Error 2

sabre:/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel # grep -r VM_RESERVED /usr/src/XXX/linux-3.6.0/include/*
sabre:/usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel #
This is from the latest git.

Removed VM_RESERVED from nv-mmap.c and it builds OK.

In file included from /usr/src/XXX/linux-3.6.0/include/linux/kernel.h:10:0,
from /usr/src/XXX/linux-3.6.0/include/linux/cache.h:4,
from /usr/src/XXX/linux-3.6.0/include/linux/time.h:4,
from /usr/src/XXX/linux-3.6.0/include/linux/stat.h:18,
from /usr/src/XXX/linux-3.6.0/include/linux/module.h:10,
from /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nvidia.mod.c:1:
/usr/src/XXX/linux-3.6.0/include/linux/bitops.h: In function ‘hweight_long’:
/usr/src/XXX/linux-3.6.0/include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
ld -r -m elf_x86_64 -T /usr/src/XXX/linux-3.6.0/scripts/module-common.lds --build-id -o /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nvidia.ko /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nvidia.o /usr/src/YYY/NVIDIA-Linux-x86_64-304.51/kernel/nvidia.mod.o
NVIDIA: left KBUILD.
WARNING: -e needs -E or -F
nvidia.ko installed successfully.
siddly is offline   Reply With Quote