mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
cifsd: enclose macro variables in parenthesis
checkpatch.pl complains as the following: CHECK: Macro argument 'fp' may be better as '(fp)' to avoid precedence issues. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
152de8c68d
commit
40c594b647
1 changed files with 7 additions and 7 deletions
|
@ -25,14 +25,14 @@
|
||||||
#define KSMBD_NO_FID (UINT_MAX)
|
#define KSMBD_NO_FID (UINT_MAX)
|
||||||
#define SMB2_NO_FID (0xFFFFFFFFFFFFFFFFULL)
|
#define SMB2_NO_FID (0xFFFFFFFFFFFFFFFFULL)
|
||||||
|
|
||||||
#define FP_FILENAME(fp) fp->filp->f_path.dentry->d_name.name
|
#define FP_FILENAME(fp) ((fp)->filp->f_path.dentry->d_name.name)
|
||||||
#define FP_INODE(fp) d_inode(fp->filp->f_path.dentry)
|
#define FP_INODE(fp) d_inode((fp)->filp->f_path.dentry)
|
||||||
#define PARENT_INODE(fp) d_inode(fp->filp->f_path.dentry->d_parent)
|
#define PARENT_INODE(fp) d_inode((fp)->filp->f_path.dentry->d_parent)
|
||||||
|
|
||||||
#define ATTR_FP(fp) (fp->attrib_only && \
|
#define ATTR_FP(fp) ((fp)->attrib_only && \
|
||||||
(fp->cdoption != FILE_OVERWRITE_IF_LE && \
|
((fp)->cdoption != FILE_OVERWRITE_IF_LE && \
|
||||||
fp->cdoption != FILE_OVERWRITE_LE && \
|
(fp)->cdoption != FILE_OVERWRITE_LE && \
|
||||||
fp->cdoption != FILE_SUPERSEDE_LE))
|
(fp)->cdoption != FILE_SUPERSEDE_LE))
|
||||||
|
|
||||||
struct ksmbd_conn;
|
struct ksmbd_conn;
|
||||||
struct ksmbd_session;
|
struct ksmbd_session;
|
||||||
|
|
Loading…
Reference in a new issue