Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: changed function argument to __le32

Fixed a sparse warning "cast to restricted __le32".
Function argument is of type __le32.

Signed-off-by: Jannik Becher <becher.jannik@gmail.com>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jannik Becher and committed by
Greg Kroah-Hartman
bcb91a5c e8cd841b

+2 -2
+1 -1
drivers/staging/rtl8712/rtl8712_cmd.c
··· 425 425 thread_exit(); 426 426 } 427 427 428 - void r8712_event_handle(struct _adapter *padapter, uint *peventbuf) 428 + void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf) 429 429 { 430 430 u8 evt_code, evt_seq; 431 431 u16 evt_sz;
+1 -1
drivers/staging/rtl8712/rtl8712_event.h
··· 26 26 #ifndef _RTL8712_EVENT_H_ 27 27 #define _RTL8712_EVENT_H_ 28 28 29 - void r8712_event_handle(struct _adapter *padapter, uint *peventbuf); 29 + void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf); 30 30 void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf); 31 31 32 32 enum rtl8712_c2h_event {