-
Notifications
You must be signed in to change notification settings - Fork 140
SOF: ABI: fix implicit type overflow #2524
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,12 +31,12 @@ | |
|
|
||
| /* Global Message - Generic */ | ||
| #define SOF_GLB_TYPE_SHIFT 28 | ||
| #define SOF_GLB_TYPE_MASK (0xf << SOF_GLB_TYPE_SHIFT) | ||
| #define SOF_GLB_TYPE_MASK (0xfL << SOF_GLB_TYPE_SHIFT) | ||
cujomalainey marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While it's a bit uncommon on kernel side (for long types) -- there are a few instances of this (just in include/linux/sched.h for SCHED_FIXEDPOINT_SCALE). And if this allows to minimize delta in the header versus FW file (thesofproject/sof#3543 which is already merged), I think this is worth it. |
||
| #define SOF_GLB_TYPE(x) ((x) << SOF_GLB_TYPE_SHIFT) | ||
|
|
||
| /* Command Message - Generic */ | ||
| #define SOF_CMD_TYPE_SHIFT 16 | ||
| #define SOF_CMD_TYPE_MASK (0xfff << SOF_CMD_TYPE_SHIFT) | ||
| #define SOF_CMD_TYPE_MASK (0xfffL << SOF_CMD_TYPE_SHIFT) | ||
| #define SOF_CMD_TYPE(x) ((x) << SOF_CMD_TYPE_SHIFT) | ||
|
|
||
| /* Global Message Types */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.