[v4 01/33] gpio: mpc8xxx_gpio: Fix for litte endian
Priyanka Jain
priyanka.jain at nxp.com
Fri Feb 5 09:47:40 CET 2021
>-----Original Message-----
>From: Biwen Li <biwen.li at oss.nxp.com>
>Sent: Tuesday, February 2, 2021 1:56 PM
>To: Priyanka Jain <priyanka.jain at nxp.com>
>Cc: Jiafei Pan <jiafei.pan at nxp.com>; u-boot at lists.denx.de; Xiaobo Xie
><xiaobo.xie at nxp.com>; Biwen Li <biwen.li at nxp.com>
>Subject: [v4 01/33] gpio: mpc8xxx_gpio: Fix for litte endian
>
>From: Biwen Li <biwen.li at nxp.com>
>
>Update gpio driver to use same logic for big-endian and little-endian
>
>Signed-off-by: Biwen Li <biwen.li at nxp.com>
>---
<snip>
Kindly fix build error for gazerbeam. Getting build error with the series.
2021-02-04T15:07:29.7741949Z +drivers/gpio/mpc8xxx_gpio.c: In function 'mpc8xxx_gpio_get_val':
2021-02-04T15:07:29.7742663Z +drivers/gpio/mpc8xxx_gpio.c:50:29: error: dereferencing pointer to incomplete type 'struct ccsr_gpio'
2021-02-04T15:07:29.7743291Z + 50 | return in_le32(&data->base->gpdat) & mask;
2021-02-04T15:07:29.7743629Z + | ^~
2021-02-04T15:07:29.7744194Z +drivers/gpio/mpc8xxx_gpio.c: In function 'mpc8xxx_gpio_get_dir':
2021-02-04T15:07:29.7745133Z +drivers/gpio/mpc8xxx_gpio.c:63:1: error: control reaches end of non-void function [-Werror=return-type]
2021-02-04T15:07:29.7746283Z + 63 | }
2021-02-04T15:07:29.7746512Z + | ^
2021-02-04T15:07:29.7747146Z +drivers/gpio/mpc8xxx_gpio.c:53:1: error: control reaches end of non-void function [-Werror=return-type]
2021-02-04T15:07:29.7747526Z + 53 | }
2021-02-04T15:07:29.7747820Z +cc1: all warnings being treated as errors
2021-02-04T15:07:29.7748161Z +make[2]: *** [drivers/gpio/mpc8xxx_gpio.o] Error 1
2021-02-04T15:07:29.7748511Z +make[1]: *** [drivers/gpio] Error 2
2021-02-04T15:07:29.7748954Z +make: *** [sub-make] Error 2
Regards
Priyanka
More information about the U-Boot
mailing list