Fix some issues that showed up as compiler warnings with mingw64
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
This commit is contained in:
parent
9a3d62aa0c
commit
4564e7822b
@ -198,7 +198,7 @@ void print_boot_file_head(boot_file_head_t *hdr)
|
|||||||
|
|
||||||
void print_boot_dram_para(boot_dram_para_t *dram)
|
void print_boot_dram_para(boot_dram_para_t *dram)
|
||||||
{
|
{
|
||||||
pprintf(&dram->dram_baseaddr, "DRAM base : %p\n", (void *)(long)dram->dram_baseaddr);
|
pprintf(&dram->dram_baseaddr, "DRAM base : %p\n", (void *)(uintptr_t)dram->dram_baseaddr);
|
||||||
pprintf(&dram->dram_clk, "DRAM clk : %d\n", dram->dram_clk);
|
pprintf(&dram->dram_clk, "DRAM clk : %d\n", dram->dram_clk);
|
||||||
pprintf(&dram->dram_type, "DRAM type : %d\n", dram->dram_type);
|
pprintf(&dram->dram_type, "DRAM type : %d\n", dram->dram_type);
|
||||||
pprintf(&dram->dram_rank_num, "DRAM rank : %d\n", dram->dram_rank_num);
|
pprintf(&dram->dram_rank_num, "DRAM rank : %d\n", dram->dram_rank_num);
|
||||||
|
|||||||
2
fel.c
2
fel.c
@ -325,7 +325,7 @@ void hexdump(void *data, uint32_t offset, size_t size)
|
|||||||
unsigned char *buf = data;
|
unsigned char *buf = data;
|
||||||
for (j = 0; j < size; j+=16) {
|
for (j = 0; j < size; j+=16) {
|
||||||
size_t i;
|
size_t i;
|
||||||
printf("%08lx: ",(long int)offset + j);
|
printf("%08zx: ", offset + j);
|
||||||
for (i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
if (j + i < size)
|
if (j + i < size)
|
||||||
printf("%02x ", buf[j+i]);
|
printf("%02x ", buf[j+i]);
|
||||||
|
|||||||
@ -257,7 +257,7 @@ static void encode_bch(struct bch_control *bch, const uint8_t *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* process first unaligned data bytes */
|
/* process first unaligned data bytes */
|
||||||
m = ((unsigned long)data) & 3;
|
m = ((uintptr_t)data) & 3;
|
||||||
if (m) {
|
if (m) {
|
||||||
mlen = (len < (4-m)) ? len : 4-m;
|
mlen = (len < (4-m)) ? len : 4-m;
|
||||||
encode_bch_unaligned(bch, data, mlen, bch->ecc_buf);
|
encode_bch_unaligned(bch, data, mlen, bch->ecc_buf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user