You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
net: usb: lan78xx: annotate checksum assignment to silence sparse warnings
sparse warns about suspicious type casts in checksum assignment:
drivers/net/usb/lan78xx.c:3865:29: warning: cast to restricted __be16
drivers/net/usb/lan78xx.c:3865:27: warning: incorrect type in assignment
(different base types) expected restricted __wsum [usertype] csum
got unsigned short [usertype]
Use __force to annotate the casts from u16 to __be16 to __wsum.
This makes the type conversion explicit and silences the warnings.
The code is otherwise correct; this change only clarifies intent.
Signed-off-by: Oleksij Rempel <[email protected]>
Signed-off-by: NipaLocal <nipa@local>
0 commit comments