Skip to content

hashmap: don't initialize devt_hash_ops in the header#212

Merged
bbonev merged 1 commit intomasterfrom
fix/issue-191-devt_hash_ops
Nov 5, 2021
Merged

hashmap: don't initialize devt_hash_ops in the header#212
bbonev merged 1 commit intomasterfrom
fix/issue-191-devt_hash_ops

Conversation

@kaniini
Copy link
Member

@kaniini kaniini commented Nov 5, 2021

It is initialized in hashmap.c:338, and should not be initialized
in the header.

Fixes: #191
Signed-off-by: Ariadne Conill ariadne@dereferenced.org

It is initialized in hashmap.c:338, and should not be initialized
in the header.

Fixes: #191
Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
@kaniini kaniini requested a review from bbonev November 5, 2021 01:55
Copy link
Member

@bbonev bbonev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if SIZEOF_DEV_T != 8 is true on 32bit only, so this went unnoticed.

Good catch!

@bbonev bbonev merged commit 24bbbf7 into master Nov 5, 2021
@bbonev bbonev deleted the fix/issue-191-devt_hash_ops branch June 12, 2022 10:02
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

Successfully merging this pull request may close these issues.

error: redefinition of 'devt_hash_ops' const struct hash_ops devt_hash_ops

2 participants