ksmbd: fix sparc build with atomic work state
Subsystems (2)
Namjae Jeon
maintainerPATCH 1/1 ksmbd: fix sparc build with atomic work state
Use an unsigned int for the work state so xchg() uses a supported 4-byte operation on sparc.
Fixes d12168084c8c ("ksmbd: safely drain sessions during logoff")
Reported-by kernel test robot <[email protected]>
Signed-off-by Namjae Jeon <[email protected]>
--- fs/smb/server/ksmbd_work.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/server/ksmbd_work.h +1 -1
@@ -82,7 +82,7 @@ struct ksmbd_work {/* Contiguous SMB2 compression transform owned by this work item. */ void *compress_buf; -unsigned char state; +unsigned int state;/* No response for cancelled request */ bool send_no_response:1;/* Request is encrypted */
Signature · 1 line
2.25.1