[PATCH] cmd/misc: Stop using a function pointer
Tom Rini
trini at konsulko.com
Thu Jun 23 14:18:58 CEST 2022
On Wed, Jun 22, 2022 at 04:10:18PM -0400, Tom Rini wrote:
> Currently, enabling CMD_MISC gives:
> cmd/misc.c:67:25: warning: assignment to 'int (*)(struct udevice *, int, void *, int)' from incompatible pointer type 'int (*)(struct udevice *, int, const void *, int)' [-Wincompatible-pointer-types]
>
> Because 'misc_read' takes a void * and 'misc_write' takes a const void
> *, both of which make sense for their operation. Given there's one
> place we make use of the function pointer, just call read or write
> directly for the operation we're called with.
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Sean Anderson <seanga2 at gmail.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220623/3513a4c7/attachment.sig>
More information about the U-Boot
mailing list