Message ID | 20190613031608.23975-1-stewart@linux.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | sparse: fix incorrect type assignment in core/ipmi.c | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch master (db3929ee4f0a98596938f05da2789686908ebfd4) |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot | fail | Test snowpatch/job/snowpatch-skiboot on branch master |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco | success | Signed-off-by present |
Stewart Smith <stewart@linux.ibm.com> writes: > core/ipmi.c:262:44: warning: incorrect type in assignment (different base types) > core/ipmi.c:262:44: expected unsigned long long [usertype] opal_event_ipmi_recv > core/ipmi.c:262:44: got restricted beint64_t > > Signed-off-by: Stewart Smith <stewart@linux.ibm.com> > --- > include/ipmi.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Merged to master as of dbf27b6c4af84addb36bd3be34f96580aba9c873
diff --git a/include/ipmi.h b/include/ipmi.h index b67d7e0a59fe..5310b57da55c 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -20,6 +20,7 @@ #include <stdint.h> #include <ccan/list/list.h> #include <stdbool.h> +#include <types.h> #define MAX_IPMI_SENSORS 255 @@ -176,7 +177,7 @@ struct ipmi_msg { }; struct ipmi_backend { - uint64_t opal_event_ipmi_recv; + __be64 opal_event_ipmi_recv; struct ipmi_msg *(*alloc_msg)(size_t, size_t); void (*free_msg)(struct ipmi_msg *); int (*queue_msg)(struct ipmi_msg *);
core/ipmi.c:262:44: warning: incorrect type in assignment (different base types) core/ipmi.c:262:44: expected unsigned long long [usertype] opal_event_ipmi_recv core/ipmi.c:262:44: got restricted beint64_t Signed-off-by: Stewart Smith <stewart@linux.ibm.com> --- include/ipmi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)