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

linuxkpi: chase spinlock_t in DECLARE_WAIT_QUEUE_HEAD #1396

Closed
wants to merge 1 commit into from

Commits on Aug 27, 2024

  1. linuxkpi: chase spinlock_t in DECLARE_WAIT_QUEUE_HEAD

    Remove member m to unbreak consumers, e.g. drm-kmod 5.10-lts branch.
    
    [...]
    /tmp/drm-kmod/drivers/gpu/drm/ttm/ttm_module.c:38:8: error: no member named 'm' in 'struct mtx'
       38 | static DECLARE_WAIT_QUEUE_HEAD(exit_q);
          |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /tmp/src/sys/compat/linuxkpi/common/include/linux/wait.h:113:33: note: expanded from macro 'DECLARE_WAIT_QUEUE_HEAD'
      113 |         MTX_SYSINIT(name, &(name).lock.m, spin_lock_name("wqhead"), MTX_DEF)
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /tmp/src/sys/sys/mutex.h:528:4: note: expanded from macro 'MTX_SYSINIT'
      528 |                 (mtx),                                                  \
          |                  ^~~
    /tmp/drm-kmod/drivers/gpu/drm/ttm/ttm_module.c:38:8: error: no member named 'm' in 'struct mtx'
       38 | static DECLARE_WAIT_QUEUE_HEAD(exit_q);
          |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /tmp/src/sys/compat/linuxkpi/common/include/linux/wait.h:113:33: note: expanded from macro 'DECLARE_WAIT_QUEUE_HEAD'
      113 |         MTX_SYSINIT(name, &(name).lock.m, spin_lock_name("wqhead"), MTX_DEF)
          |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [...]
    
    Fixes:		ae38a1a ("linuxkpi: spinlock: Simplify code")
    MFC after:	?
    ekhramtsov committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    f071f9e View commit details
    Browse the repository at this point in the history