mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 01:54:51 +08:00
2db72604f3
Fix version mismatch with out of tree, This updated version will be matched with ksmbd-tools. Cc: Tom Talpey <tom@talpey.com> Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Cc: Ralph Böhme <slow@samba.org> Cc: Steve French <smfrench@gmail.com> Cc: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2016 Namjae Jeon <linkinjeon@kernel.org>
|
|
* Copyright (C) 2018 Samsung Electronics Co., Ltd.
|
|
*/
|
|
|
|
#ifndef __KSMBD_GLOB_H
|
|
#define __KSMBD_GLOB_H
|
|
|
|
#include <linux/ctype.h>
|
|
|
|
#include "unicode.h"
|
|
#include "vfs_cache.h"
|
|
|
|
#define KSMBD_VERSION "3.4.2"
|
|
|
|
extern int ksmbd_debug_types;
|
|
|
|
#define KSMBD_DEBUG_SMB BIT(0)
|
|
#define KSMBD_DEBUG_AUTH BIT(1)
|
|
#define KSMBD_DEBUG_VFS BIT(2)
|
|
#define KSMBD_DEBUG_OPLOCK BIT(3)
|
|
#define KSMBD_DEBUG_IPC BIT(4)
|
|
#define KSMBD_DEBUG_CONN BIT(5)
|
|
#define KSMBD_DEBUG_RDMA BIT(6)
|
|
#define KSMBD_DEBUG_ALL (KSMBD_DEBUG_SMB | KSMBD_DEBUG_AUTH | \
|
|
KSMBD_DEBUG_VFS | KSMBD_DEBUG_OPLOCK | \
|
|
KSMBD_DEBUG_IPC | KSMBD_DEBUG_CONN | \
|
|
KSMBD_DEBUG_RDMA)
|
|
|
|
#ifdef pr_fmt
|
|
#undef pr_fmt
|
|
#endif
|
|
|
|
#ifdef SUBMOD_NAME
|
|
#define pr_fmt(fmt) "ksmbd: " SUBMOD_NAME ": " fmt
|
|
#else
|
|
#define pr_fmt(fmt) "ksmbd: " fmt
|
|
#endif
|
|
|
|
#define ksmbd_debug(type, fmt, ...) \
|
|
do { \
|
|
if (ksmbd_debug_types & KSMBD_DEBUG_##type) \
|
|
pr_info(fmt, ##__VA_ARGS__); \
|
|
} while (0)
|
|
|
|
#define UNICODE_LEN(x) ((x) * 2)
|
|
|
|
#endif /* __KSMBD_GLOB_H */
|