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

MODULE_IMPORT_NS should use string literal on Linux kernel 6.13-rc2+ #751

Open
1 task
xtexChooser opened this issue Dec 14, 2024 · 0 comments
Open
1 task

Comments

@xtexChooser
Copy link

NVIDIA Open GPU Kernel Modules Version

565.77

Operating System and Version

AOSC OS

Kernel Release

6.13.0-aosc-main

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

dkms install

Terminal output/Build Log

In file included from /usr/src/linux-headers-6.13.0-aosc-main/include/linux/module.h:22,
                 from nvidia/nv.c:24:
nvidia/nv.c:130:18: error: expected ‘,’ or ‘;’ before ‘DMA_BUF’
  130 | MODULE_IMPORT_NS(DMA_BUF);
      |                  ^~~~~~~
/usr/src/linux-headers-6.13.0-aosc-main/include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’
   26 |                 = __MODULE_INFO_PREFIX __stringify(tag) "=" info
      |                                                             ^~~~
/usr/src/linux-headers-6.13.0-aosc-main/include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’
  299 | #define MODULE_IMPORT_NS(ns)    MODULE_INFO(import_ns, ns)
      |                                 ^~~~~~~~~~~
nvidia/nv.c:130:1: note: in expansion of macro ‘MODULE_IMPORT_NS’
  130 | MODULE_IMPORT_NS(DMA_BUF);
      | ^~~~~~~~~~~~~~~~

More Info

The parameter of MODULE_IMPORT_NS has been changed from constants to string literal: torvalds/linux@cdd30eb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant