diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:23:11 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | e04a34af200a31a29d83162a46dedbeb59ae917e (patch) | |
tree | 8af57c0447671bc273c0ffc792e09161163e4008 /hw/imc.c | |
parent | 5178691d0ad8d684f061d596dc6e025823fc0fec (diff) | |
download | skiboot-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 'hw/imc.c')
-rw-r--r-- | hw/imc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -455,8 +455,8 @@ static void imc_dt_update_nest_node(struct dt_node *dev) const struct dt_property *type; /* Add the base_addr and chip-id properties for the nest node */ - base_addr = malloc(sizeof(uint64_t) * nr_chip); - chipids = malloc(sizeof(uint32_t) * nr_chip); + base_addr = malloc(sizeof(u64) * nr_chip); + chipids = malloc(sizeof(u32) * nr_chip); for_each_chip(chip) { base_addr[i] = cpu_to_be64(chip->homer_base); chipids[i] = cpu_to_be32(chip->id); |