Re: [RFC PATCH 06/23] Add IEEE1275_ADDR helper

2014-04-01 Thread Andrey Borzenkov
В Wed, 26 Feb 2014 10:31:05 -0800 Ram Pai пишет: > From: Anton Blanchard > > If the target pointer size doesn't match the IEEE1275 cell size, we > need to cast twice to avoid a warning. > > > > +#define IEEE1275_ADDR(x) (grub_uint32_t)(grub_addr_t)(x) > + Should not this be conditi

[RFC PATCH 06/23] Add IEEE1275_ADDR helper

2014-02-26 Thread Ram Pai
From: Anton Blanchard If the target pointer size doesn't match the IEEE1275 cell size, we need to cast twice to avoid a warning. Signed-off-by: Ram Pai From: Anton Blanchard --- grub-core/disk/ieee1275/ofdisk.c | 4 ++-- grub-core/kern/ieee1275/ieee1275.c | 30 +++--