Thread (25 messages) 25 messages, 9 authors, 2020-11-10

Re: [PATCH net-next 06/11] rtlwifi: fix -Wpointer-sign warning

From: Pkshih <pkshih@realtek.com>
Date: 2020-10-27 01:29:56
Also in: linux-wireless, lkml

On Mon, 2020-10-26 at 22:29 +0100, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>

There are thousands of warnings in a W=2 build from just one file:

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/table.c:3788:15: warning:
pointer targets in initialization of 'u8 *' {aka 'unsigned char *'} from 'char
*' differ in signedness [-Wpointer-sign]

Change the types to consistently use 'const char *' for the
strings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
---
 .../wireless/realtek/rtlwifi/rtl8821ae/phy.c  | 81 ++++++++++---------
 .../realtek/rtlwifi/rtl8821ae/table.c         |  4 +-
 .../realtek/rtlwifi/rtl8821ae/table.h         |  4 +-
 3 files changed, 45 insertions(+), 44 deletions(-)
[snip]



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help