mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ksmbd: fixes build on kernel 6.1
Fixes: #10604 Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
This commit is contained in:
parent
e6f5ad32af
commit
74a3f1191b
14
package/kernel/ksmbd/patches/010-fixes-build-on-6.1.patch
Normal file
14
package/kernel/ksmbd/patches/010-fixes-build-on-6.1.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- a/smb1pdu.c
|
||||
+++ b/smb1pdu.c
|
||||
@@ -5851,7 +5851,11 @@ static int smb_populate_readdir_entry(struct ksmbd_conn *conn, int info_level,
|
||||
*
|
||||
* Return: 0 on success, otherwise -EINVAL
|
||||
*/
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
+static bool ksmbd_fill_dirent(struct dir_context *ctx, const char *name, int namlen,
|
||||
+#else
|
||||
static int ksmbd_fill_dirent(struct dir_context *ctx, const char *name, int namlen,
|
||||
+#endif
|
||||
loff_t offset, u64 ino, unsigned int d_type)
|
||||
{
|
||||
struct ksmbd_readdir_data *buf =
|
Loading…
Reference in New Issue
Block a user