Skip to contentSkip to conversation

ksmbd: fix sparc build with atomic work state

PATCH New Namjae Jeon 1 participant 1 message Sep 2

Subsystems (2)
lore
Share & tools
lore

Namjae Jeon

author maintainer
#0 lore raw

PATCH 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")
---
 fs/smb/server/ksmbd_work.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/smb/server/ksmbd_work.h +1 -1
index 5f1d3ebab4fb..0844aa929f55 100644
@@ -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