sim: bfin: fix build warnings w/newer gcc

The bfin_otp_write_page_val func wants a pointer to an bu64[2] array,
but this code passes it a pointer to a single bu64.  It's in a struct
with a known compatible layout:
	bu64 data0, data1, data2, data3;
But gcc doesn't allow these kinds of tricks anymore.  Use the more
verbose form to make the compiler happy since this is not performance
sensitive code.
This commit is contained in:
Mike Frysinger
2021-05-23 21:35:32 -04:00
parent 98591adf69
commit 3cc4ee83ad
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-05-23 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_otp.c (bfin_otp_write_page): Call bfin_otp_write_page_val2.
2021-05-23 Mike Frysinger <vapier@gentoo.org> 2021-05-23 Mike Frysinger <vapier@gentoo.org>
* dv-bfin_cec.c: Include strings.h. * dv-bfin_cec.c: Include strings.h.

View File

@ -91,7 +91,7 @@ bfin_otp_write_page_val2 (struct bfin_otp *otp, bu16 page, bu64 lo, bu64 hi)
static void static void
bfin_otp_write_page (struct bfin_otp *otp, bu16 page) bfin_otp_write_page (struct bfin_otp *otp, bu16 page)
{ {
bfin_otp_write_page_val (otp, page, (void *)&otp->data0); bfin_otp_write_page_val2 (otp, page, otp->data0, otp->data1);
} }
static unsigned static unsigned