Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 545320

Summary: x11-drivers/nvidia-drivers-349.12 - .../work/kernel/nv.c:701:65: error: ‘SLAB_USERCOPY’ undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: David Seifert <soap>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2015-04-02 12:56:08 UTC
if (likely(sz < 0 || sz >= n))
                          ^
/usr/src/linux-4.0-rc6/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.c:13:0:
/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.c: In function ‘nvidia_init_module’:
/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.c:701:65: error: ‘SLAB_USERCOPY’ undeclared (first use in this function)
                                                 nvidia_stack_t, SLAB_USERCOPY);
                                                                 ^
/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv-linux.h:1426:46: note: in definition of macro ‘NV_KMEM_CACHE_CREATE’
     kmem_cache_create(name, sizeof(type), 0, flags, NULL)
                                              ^
/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.c:701:65: note: each undeclared identifier is reported only once for each function it appears in
                                                 nvidia_stack_t, SLAB_USERCOPY);
                                                                 ^
/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv-linux.h:1426:46: note: in definition of macro ‘NV_KMEM_CACHE_CREATE’
     kmem_cache_create(name, sizeof(type), 0, flags, NULL)
                                              ^
/usr/src/linux-4.0-rc6/scripts/Makefile.build:258: recipe for target '/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.o' failed
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel/nv.o] Error 1
/usr/src/linux-4.0-rc6/Makefile:1390: recipe for target '_module_/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel' failed
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-349.12/work/kernel] Error 2
make[2]: Leaving directory '/usr/src/linux-4.0-rc6'
Makefile:145: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.0-rc6'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
nvidia-modules-common.mk:248: recipe for target 'module' failed
make: *** [module] Error 1
 * ERROR: x11-drivers/nvidia-drivers-349.12::gentoo failed (compile phase):
 *   emake failed
 *