Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvidia340: broken with linux5.4 #19199

Closed
Hoshpak opened this issue Feb 16, 2020 · 0 comments · Fixed by #19210
Closed

nvidia340: broken with linux5.4 #19199

Hoshpak opened this issue Feb 16, 2020 · 0 comments · Fixed by #19210
Labels
bug Something isn't working

Comments

@Hoshpak
Copy link
Member

Hoshpak commented Feb 16, 2020

System

  • xuname:
    Void 5.4.17_1 i686 GenuineIntel uptodate rrDDFFF
  • package:
    nvidia340-340.108_2

Expected behavior

The module should compile with linux5.4 since it's the last version that is officially supported and worked before.

Actual behavior

Compilation fails with:

In file included from ./include/linux/efi.h:20,
                 from /var/lib/dkms/nvidia/340.108/build/nv-linux.h:173,
                 from /var/lib/dkms/nvidia/340.108/build/nv.c:13:
./include/linux/rtc.h: In function 'rtc_tv_nsec_ok':
./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare]
  238 |  if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) {
      |                      ^
./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare]
  243 |  if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) {
      |                      ^
/var/lib/dkms/nvidia/340.108/build/nv.c: In function 'nvidia_init_module':
/var/lib/dkms/nvidia/340.108/build/nv.c:755:88: error: macro "NV_KMEM_CACHE_CREATE_FULL_USERCOPY" requires 7 arguments, but only 3 given
  755 |     NV_KMEM_CACHE_CREATE_FULL_USERCOPY(nv_stack_t_cache, NV_STACK_CACHE_STR, nv_stack_t);
      |                                                                                        ^
In file included from /var/lib/dkms/nvidia/340.108/build/nv.c:13:
/var/lib/dkms/nvidia/340.108/build/nv-linux.h:1193: note: macro "NV_KMEM_CACHE_CREATE_FULL_USERCOPY" defined here
 1193 | #define NV_KMEM_CACHE_CREATE_FULL_USERCOPY(name, size, align, flags, useroffset, usersize, ctor) \
      | 
/var/lib/dkms/nvidia/340.108/build/nv.c:755:5: error: 'NV_KMEM_CACHE_CREATE_FULL_USERCOPY' undeclared (first use in this function)
  755 |     NV_KMEM_CACHE_CREATE_FULL_USERCOPY(nv_stack_t_cache, NV_STACK_CACHE_STR, nv_stack_t);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/nvidia/340.108/build/nv.c:755:5: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/340.108/build/nv.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet....
make[1]: *** [Makefile:1652: /var/lib/dkms/nvidia/340.108/build] Fehler 2
make[1]: Verzeichnis „/usr/src/kernel-headers-5.4.19_1“ wird verlassen
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:197: nvidia.ko] Fehler 1

Steps to reproduce the behavior

  1. Install linux5.4 and linux5.4-headers
  2. Install nvidia340

@jbenden @xtraeme

@Hoshpak Hoshpak added the bug Something isn't working label Feb 16, 2020
jbenden added a commit to jbenden/void-packages that referenced this issue Feb 16, 2020
Fixes: void-linux#19199 (nvidia340: broken with linux5.4)
Signed-off-by: Joseph Benden <joe@benden.us>
Hoshpak pushed a commit that referenced this issue Feb 16, 2020
Fixes: #19199 (nvidia340: broken with linux5.4)
Signed-off-by: Joseph Benden <joe@benden.us>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant