aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-12-08 22:23:11 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-12-16 14:50:56 +1100
commite04a34af200a31a29d83162a46dedbeb59ae917e (patch)
tree8af57c0447671bc273c0ffc792e09161163e4008 /include
parent5178691d0ad8d684f061d596dc6e025823fc0fec (diff)
downloadskiboot-e04a34af200a31a29d83162a46dedbeb59ae917e.zip
skiboot-e04a34af200a31a29d83162a46dedbeb59ae917e.tar.gz
skiboot-e04a34af200a31a29d83162a46dedbeb59ae917e.tar.bz2
fix simple sparse warnings
Should be no real code change, these mostly update type declarations that sparse complains about. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/device.h3
-rw-r--r--include/skiboot.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/device.h b/include/device.h
index 4f7a098..f17b089 100644
--- a/include/device.h
+++ b/include/device.h
@@ -118,7 +118,8 @@ struct dt_property *__dt_add_property_u64s(struct dt_node *node,
static inline struct dt_property *dt_add_property_u64(struct dt_node *node,
const char *name, u64 val)
{
- return dt_add_property_cells(node, name, (u32)(val >> 32), (u32)val);
+ return dt_add_property_cells(node, name, (u32)(val >> 32),
+ (u32)(val & 0xffffffffUL));
}
void dt_del_property(struct dt_node *node, struct dt_property *prop);
diff --git a/include/skiboot.h b/include/skiboot.h
index e9d57de..6946b80 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -318,7 +318,7 @@ extern void fake_rtc_init(void);
struct stack_frame;
extern void exception_entry(struct stack_frame *stack);
extern void exception_entry_pm_sreset(void);
-extern void exception_entry_pm_mce(void);
+extern void __noreturn exception_entry_pm_mce(void);
/* Assembly in head.S */
extern void disable_machine_check(void);