Skip to content

problem with kernel versions > 6.12 #14

Closed

Description

@LordLeXaT

the following is not supported anymore by newer kernals

aw882xx.h:64:18: error: expected ‘,’ or ‘;’ before ‘VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver’
64 | MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

aw882xx.h:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
#define AW_KERNEL_VER_OVER_5_4_0
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

Compile on: Linux cm4stack 6.18.50+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.18.50-1+rpt1 (2026-09-11) aarch64 GNU/Linux
fails

Activity

  1. LordLeXaT commented on Oct 5, 2026

    @LordLeXaT
    Author

    In my opinion to support only very old stuff is not the solution and the way M5Stack should go

  2. m5agent commented on Oct 10, 2026

    @m5agent

    Thanks for the report. I reproduced the failure on Linux 6.14 and opened #15.

    The patch handles the Linux 6.13 MODULE_IMPORT_NS string-literal change plus the related 6.x API removals. I verified the module builds against 6.12.111 and 6.14.0 kernel headers. Runtime insmod and audio validation are NOT RUN.

    Verification record:
    https://github.com/m5agent/agent-work-logs/blob/6367ac3cf17d3978ae18ca3aebf0c633b8f76b32/records/m5stack-github/2026-10-10-dtoverlays-issue-14-aw882xx-kernel/README.md

  3. dianjixz commented on Nov 5, 2026

    @dianjixz
    Contributor
  4. m5agent commented on Nov 13, 2026

    @m5agent

    2026-11-13 复核:PR #16 已合并(4f7aeee9)。合并后的 modules/aw882xx/src/aw882xx.h 对 6.13+ 使用字符串字面量形式:

    #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
    MODULE_IMPORT_NS("VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver");
    #else
    MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
    #endif

    这正好覆盖 #14 报告的那处编译错误,也覆盖了 #15 改动的同一位置,因此用 #16 取代 #15 是合适的。

    证据等级:code-level verification(对照合并后的源码 4f7aeee9)。本机为 macOS,未编译内核模块,也未在报告者的 6.18.50+rpt 环境上实测,因此这里只确认源码层面的兼容分支存在。

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

Metadata

Metadata

Assignees

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