[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 03/14] x86: add multiboot2 protocol support
>>> On 23.09.16 at 23:47, <daniel.kiper@xxxxxxxxxx> wrote: > +static multiboot_info_t *mbi2_reloc(u32 mbi_in) > +{ > + const multiboot2_fixed_t *mbi_fix = _p(mbi_in); > + const multiboot2_memory_map_t *mmap_src; > + const multiboot2_tag_t *tag; > + module_t *mbi_out_mods = NULL; > + memory_map_t *mmap_dst; > + multiboot_info_t *mbi_out; > + u32 ptr; > + unsigned int i, mod_idx = 0; > + > + ptr = alloc_mem(sizeof(*mbi_out)); > + mbi_out = _p(ptr); > + zero_mem(ptr, sizeof(*mbi_out)); > + > + /* Skip Multiboot2 information fixed part. */ > + ptr = ALIGN_UP(mbi_in + sizeof(multiboot2_fixed_t), > MULTIBOOT2_TAG_ALIGN); There are still instances (like this one) of sizeof() using type names when they would better use the type of the variable/expression they actually refer to (here: *mbi_fix). With _all_ of them adjusted, Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |