-
Notifications
You must be signed in to change notification settings - Fork 56
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
fix in nvram definition #105
base: next
Are you sure you want to change the base?
fix in nvram definition #105
Conversation
Signed-off-by: Aditi Mishra <[email protected]>
a792053
to
bdc22c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct. Thanks.
This is failing to build with our CI which does use -Werror. The problem is that there is no Further, if we are correcting the function parameter lists we should also update the return types to match as well. |
@@ -903,9 +903,9 @@ dump_rtas_event_entry(char *data, int len) | |||
{ | |||
void *rtas_event; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be struct rtas_event *rtas_event
void *(*parse_rtas_event)(); | ||
void (*rtas_print_event)(); | ||
void (*cleanup_rtas_event)(); | ||
void *(*parse_rtas_event)(char*, int); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parse_rtas_event
returns a struct rtas_event *
void (*rtas_print_event)(); | ||
void (*cleanup_rtas_event)(); | ||
void *(*parse_rtas_event)(char*, int); | ||
void (*rtas_print_event)(FILE *, struct rtas_event *, int); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rtas_print_event
returns and int
void (*cleanup_rtas_event)(); | ||
void *(*parse_rtas_event)(char*, int); | ||
void (*rtas_print_event)(FILE *, struct rtas_event *, int); | ||
void (*cleanup_rtas_event)(struct rtas_event *); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup_rtas_event
also returns int
I'll resubmit my patch then, thanks. |
Fix errors related to nvram functions in src/nvram.c while building the powerpc-utils package in Fedora (Mentioned below), this is due to old C syntax present in powerpc-utls package code base.
Fixing definition of regressed functions are able to solve the issue.
Issue that I was getting: