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
@ -25,14 +25,14 @@
|
||||
#define KSMBD_NO_FID (UINT_MAX)
|
||||
#define SMB2_NO_FID (0xFFFFFFFFFFFFFFFFULL)
|
||||
|
||||
#define FP_FILENAME(fp) fp->filp->f_path.dentry->d_name.name
|
||||
#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 FP_FILENAME(fp) ((fp)->filp->f_path.dentry->d_name.name)
|
||||
#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 ATTR_FP(fp) (fp->attrib_only && \
|
||||
(fp->cdoption != FILE_OVERWRITE_IF_LE && \
|
||||
fp->cdoption != FILE_OVERWRITE_LE && \
|
||||
fp->cdoption != FILE_SUPERSEDE_LE))
|
||||
#define ATTR_FP(fp) ((fp)->attrib_only && \
|
||||
((fp)->cdoption != FILE_OVERWRITE_IF_LE && \
|
||||
(fp)->cdoption != FILE_OVERWRITE_LE && \
|
||||
(fp)->cdoption != FILE_SUPERSEDE_LE))
|
||||
|
||||
struct ksmbd_conn;
|
||||
struct ksmbd_session;
|
||||
|
Loading…
x
Reference in New Issue
Block a user