Search Linux Wireless

Re: [PATCH v2 6/6] wifi: rtw89: 8852bt: add 8852BE-VT to Makefile and Kconfig

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

 



On Sat, 2024-07-20 at 08:09 +0800, kernel test robot wrote:
> 
> > > drivers/net/wireless/realtek/rtw89/rtw8852bt_rfk.c:1827:46: warning: operator '?:' has lower
> > > precedence than '&'; '&' will be evaluated first [-Wbitwise-conditional-parentheses]
>     1827 |                     kidx, dpk->is_dpk_enable & off_reverse ? "enable" : "disable");
>          |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
>    drivers/net/wireless/realtek/rtw89/rtw8852bt_rfk.c:1827:46: note: place parentheses around the
> '&' expression to silence this warning
>     1827 |                     kidx, dpk->is_dpk_enable & off_reverse ? "enable" : "disable");
>          |                                                            ^
>          |                           (                               )
>    drivers/net/wireless/realtek/rtw89/rtw8852bt_rfk.c:1827:46: note: place parentheses around the
> '?:' expression to evaluate it first
>     1827 |                     kidx, dpk->is_dpk_enable & off_reverse ? "enable" : "disable");
>          |                                                            ^
>          |                                                (                                 )
>    1 warning generated.

In v3, I will correct this by 'str_enable_disable(dpk->is_dpk_enable & off_reverse)'
with a new patch.






[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux