Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 545320 - x11-drivers/nvidia-drivers-349.12 - .../work/kernel/nv.c:701:65: error: ‘SLAB_USERCOPY’ undeclared (first use in this function)
Summary: x11-drivers/nvidia-drivers-349.12 - .../work/kernel/nv.c:701:65: error: ‘SLAB...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-02 12:56 UTC by Toralf Förster
Modified: 2019-01-16 10:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
 *