-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is an error to invoke the container_of() macro with a `ptr` parameter that is not of type pointer-to-`member`. But the macro hides that error by ignoring the 'ptr' type. Make the macro safer by requiring `ptr` to have the correct type. Also, rename it to er_container_of(), to avoid potential name collisions with other container_of() macros.
- Loading branch information
1 parent
dbad9f5
commit 77e273e
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters