Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build fails for non-DIAGNOSTIC kernel with awingpio(4)



On Tue, May 24, 2016 at 10:57:46PM +0900, Rin Okuyama wrote:
> Hi,
> 
> Build fails for non-DIAGNOSTIC kernel with awingpio(4):
> 
> src/sys/arch/arm/allwinner/awin_gpio.c: In function 'awin_gpio_pin_irqen':
> src/sys/arch/arm/allwinner/awin_gpio.c:937:37: error: unused variable 'grp' [-Werror=unused-variable]
>   struct awin_gpio_pin_group * const grp = cookie;
>                                      ^
> 
> This is because variable "grp" is only used as an argument for
> KASSERT(9). Please apply the attached patch.

I commited a different fix, which is to remove the KASSERT and the grp
variable. 
Thanks for the report !

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index