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

Compilation error with kernel 6.13.2-arch1-1: dev_base_lock undeclared #298

Open
gleb-kun opened this issue Feb 11, 2025 · 1 comment
Open

Comments

@gleb-kun
Copy link

gleb-kun commented Feb 11, 2025

I am trying to build the vmware-host-modules (branch 17.5.1) for kernel version 6.13.2-arch1-1, but I am encountering errors during the compilation process. The following error messages appear:

error: ‘dev_base_lock’ undeclared (first use in this function); did you mean ‘device_lock’?

It seems that the code references dev_base_lock, which is no longer available in the newer kernel versions, and suggests replacing it with device_lock.

@gleb-kun
Copy link
Author

In addition to the information given in #295, I received an error (#295):

bridge.c: In function ‘VNetBridgeReceiveFromVNet’:
bridge.c:587:4: error: implicit declaration of function ‘dev_lock_list’; did you mean ‘read_lock_list’? [-Wimplicit-function-declaration]
  587 |    dev_lock_list();
      |    ^~~~~~~~~~~~~
      |    read_lock_list
bridge.c:590:7: error: implicit declaration of function ‘dev_unlock_list’; did you mean ‘read_unlock_list’? [-Wimplicit-function-declaration]
  590 |       dev_unlock_list();
      |       ^~~~~~~~~~~~~~~
      |       read_unlock_list

It is corrected (in my case) in the following way:
Change in bridge.c:

  • dev_lock_list() to read_lock_list()
  • dev_unlock_list() to read_unlock_list()

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

No branches or pull requests

1 participant