Skip to content

MODULE_IMPORT_NS() changed to accept string literals in kernel 6.13 #39

@chrBrd

Description

@chrBrd

Builds break with kernel 6.13 as MODULE_IMPORT_NS() has been changed to accept string literals instead of constants:

[   25s] gasket_page_table.c:57:18: error: expected ‘,’ or ‘;’ before ‘DMA_BUF’
[   25s]    57 | MODULE_IMPORT_NS(DMA_BUF);
[   25s]       |                  ^~~~~~~
[   25s] /usr/src/linux-6.13.0-1/include/linux/moduleparam.h:26:61: note: in definition of macro ‘__MODULE_INFO’
[   25s]    26 |                 = __MODULE_INFO_PREFIX __stringify(tag) "=" info
[   25s]       |                                                             ^~~~
[   25s] /usr/src/linux-6.13.0-1/include/linux/module.h:299:33: note: in expansion of macro ‘MODULE_INFO’
[   25s]   299 | #define MODULE_IMPORT_NS(ns)    MODULE_INFO(import_ns, ns)
[   25s]       |                                 ^~~~~~~~~~~
[   25s] gasket_page_table.c:57:1: note: in expansion of macro ‘MODULE_IMPORT_NS’
[   25s]    57 | MODULE_IMPORT_NS(DMA_BUF);
[   25s]       | ^~~~~~~~~~~~~~~~

This is simple enough to fix, as seen in torvalds/linux@cdd30eb.

I'll have a PR up shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions