lkml.org 
[lkml]   [2020]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH net-next 06/11] rtlwifi: fix -Wpointer-sign warning
Date
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]




\
 
 \ /
  Last update: 2020-10-27 02:31    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog