tree: git://git.samba.org/sfrench/cifs-2.6.git for-next head: 0993a0c9c281b516fe97dc77646b87d45c3fbf17 commit: b69c063066231af65879321fd53cd371c106fa82 [19/27] cifs: cleanup misc.c config: x86_64-randconfig-s021-20201209 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.3-179-ga00755aa-dirty git remote add cifs git://git.samba.org/sfrench/cifs-2.6.git git fetch --no-tags cifs for-next git checkout b69c063066231af65879321fd53cd371c106fa82 # save the attached .config to linux build tree make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): In file included from fs/cifs/unc.c:11: >> fs/cifs/cifsproto.h:44:28: warning: 'struct TCP_Server_Info' declared inside parameter list will not be visible outside of this definition or declaration 44 | extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *, | ^~~~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:77:17: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 77 | struct cifs_tcon *tcon, | ^~~~~~~~~ >> fs/cifs/cifsproto.h:76:17: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 76 | struct cifs_sb_info *cifs_sb, | ^~~~~~~~~~~~ >> fs/cifs/cifsproto.h:81:38: warning: 'struct dfs_info3_param' declared inside parameter list will not be visible outside of this definition or declaration 81 | const char *fullpath, const struct dfs_info3_param *ref); | ^~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:84:13: warning: 'struct TCP_Server_Info' declared inside parameter list will not be visible outside of this definition or declaration 84 | struct TCP_Server_Info *server); | ^~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:89:40: warning: 'struct TCP_Server_Info' declared inside parameter list will not be visible outside of this definition or declaration 89 | extern int cifs_handle_standard(struct TCP_Server_Info *server, | ^~~~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:92:38: warning: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration 92 | extern bool cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs); | ^~~~~~~~ fs/cifs/cifsproto.h:93:47: warning: 'struct TCP_Server_Info' declared inside parameter list will not be visible outside of this definition or declaration 93 | extern int cifs_discard_remaining_data(struct TCP_Server_Info *server); | ^~~~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:96:4: error: unknown type name 'mid_receive_t' 96 | mid_receive_t *receive, mid_callback_t *callback, | ^~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:96:28: error: unknown type name 'mid_callback_t'; did you mean 'rcu_callback_t'? 96 | mid_receive_t *receive, mid_callback_t *callback, | ^~~~~~~~~~~~~~ | rcu_callback_t >> fs/cifs/cifsproto.h:97:4: error: unknown type name 'mid_handle_t' 97 | mid_handle_t *handle, void *cbdata, const int flags, | ^~~~~~~~~~~~ >> fs/cifs/cifsproto.h:99:57: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 99 | extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses); | ^~~~~~~~ >> fs/cifs/cifsproto.h:103:30: warning: 'struct kvec' declared inside parameter list will not be visible outside of this definition or declaration 103 | const int flags, struct kvec *resp_iov); | ^~~~ fs/cifs/cifsproto.h:100:58: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 100 | extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:108:17: warning: 'struct kvec' declared inside parameter list will not be visible outside of this definition or declaration 108 | struct kvec *resp_iov); | ^~~~ fs/cifs/cifsproto.h:104:62: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 104 | extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:109:62: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 109 | extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *, | ^~~~~~~~ fs/cifs/cifsproto.h:113:60: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 113 | extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:115:54: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 115 | extern struct mid_q_entry *cifs_setup_request(struct cifs_ses *, | ^~~~~~~~ >> fs/cifs/cifsproto.h:124:13: warning: 'struct cifs_credits' declared inside parameter list will not be visible outside of this definition or declaration 124 | struct cifs_credits *credits); | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:126:11: warning: 'struct kvec' declared inside parameter list will not be visible outside of this definition or declaration 126 | struct kvec *, int /* nvec to send */, | ^~~~ fs/cifs/cifsproto.h:125:63: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 125 | extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *, | ^~~~~~~~ fs/cifs/cifsproto.h:130:11: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 130 | struct cifs_tcon *ptcon, | ^~~~~~~~~ fs/cifs/cifsproto.h:137:32: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 137 | extern bool backup_cred(struct cifs_sb_info *); | ^~~~~~~~~~~~ >> fs/cifs/cifsproto.h:138:43: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 138 | extern bool is_size_safe_to_change(struct cifsInodeInfo *, __u64 eof); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:139:36: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 139 | extern void cifs_update_eof(struct cifsInodeInfo *cifsi, loff_t offset, | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:141:55: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 141 | extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:142:42: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 142 | extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:145:42: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 145 | extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name, | ^~~~~~~~~ fs/cifs/cifsproto.h:148:55: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 148 | extern struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *, bool); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:149:42: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 149 | extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name, | ^~~~~~~~~ fs/cifs/cifsproto.h:154:40: warning: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration 154 | extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len); | ^~~~~~~~ fs/cifs/cifsproto.h:155:34: warning: 'struct sockaddr' declared inside parameter list will not be visible outside of this definition or declaration 155 | extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port); | ^~~~~~~~ fs/cifs/cifsproto.h:159:21: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 159 | const struct cifs_tcon *, int /* length of | ^~~~~~~~~ fs/cifs/cifsproto.h:162:12: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 162 | struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:166:58: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 166 | extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:172:42: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 172 | extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:173:35: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 173 | extern int cifs_get_writer(struct cifsInodeInfo *cinode); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:174:36: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 174 | extern void cifs_put_writer(struct cifsInodeInfo *cinode); | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:175:43: warning: 'struct cifsInodeInfo' declared inside parameter list will not be visible outside of this definition or declaration 175 | extern void cifs_done_oplock_break(struct cifsInodeInfo *cinode); | ^~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:177:16: warning: 'struct file_lock' declared inside parameter list will not be visible outside of this definition or declaration 177 | struct file_lock *flock, const unsigned int xid); | ^~~~~~~~~ >> fs/cifs/cifsproto.h:183:19: warning: 'struct tcon_link' declared inside parameter list will not be visible outside of this definition or declaration 183 | struct tcon_link *tlink, | ^~~~~~~~~ >> fs/cifs/cifsproto.h:181:54: warning: 'struct cifs_fid' declared inside parameter list will not be visible outside of this definition or declaration 181 | extern struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid, | ^~~~~~~~ >> fs/cifs/cifsproto.h:189:56: warning: 'struct cifs_fattr' declared inside parameter list will not be visible outside of this definition or declaration 189 | void cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr); | ^~~~~~~~~~ >> fs/cifs/cifsproto.h:191:10: error: unknown type name 'FILE_UNIX_BASIC_INFO' 191 | FILE_UNIX_BASIC_INFO *info, | ^~~~~~~~~~~~~~~~~~~~ >> fs/cifs/cifsproto.h:193:57: error: unknown type name 'FILE_DIRECTORY_INFO' 193 | extern void cifs_dir_info_to_fattr(struct cifs_fattr *, FILE_DIRECTORY_INFO *, | ^~~~~~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:195:61: warning: 'struct cifs_fattr' declared inside parameter list will not be visible outside of this definition or declaration 195 | extern void cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); | ^~~~~~~~~~ fs/cifs/cifsproto.h:197:18: warning: 'struct cifs_fattr' declared inside parameter list will not be visible outside of this definition or declaration 197 | struct cifs_fattr *fattr); | ^~~~~~~~~~ >> fs/cifs/cifsproto.h:200:11: error: unknown type name 'FILE_ALL_INFO' 200 | FILE_ALL_INFO *data, struct super_block *sb, | ^~~~~~~~~~~~~ fs/cifs/cifsproto.h:213:12: warning: 'struct cifs_fattr' declared inside parameter list will not be visible outside of this definition or declaration 213 | struct cifs_fattr *fattr, uint sidtype); | ^~~~~~~~~~ >> fs/cifs/cifsproto.h:212:59: warning: 'struct cifs_sid' declared inside parameter list will not be visible outside of this definition or declaration 212 | extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, | ^~~~~~~~ fs/cifs/cifsproto.h:212:29: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 212 | extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:217:41: warning: 'struct cifs_fid' declared inside parameter list will not be visible outside of this definition or declaration 217 | const char *path, const struct cifs_fid *pfid); | ^~~~~~~~ fs/cifs/cifsproto.h:215:17: warning: 'struct cifs_fattr' declared inside parameter list will not be visible outside of this definition or declaration 215 | struct cifs_fattr *fattr, struct inode *inode, | ^~~~~~~~~~ fs/cifs/cifsproto.h:214:37: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 214 | extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:220:46: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 220 | extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *, | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:223:20: warning: 'struct cifs_fid' declared inside parameter list will not be visible outside of this definition or declaration 223 | const struct cifs_fid *, u32 *); | ^~~~~~~~ fs/cifs/cifsproto.h:222:53: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 222 | extern struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *, | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:226:48: warning: 'struct cifs_ace' declared inside parameter list will not be visible outside of this definition or declaration 226 | extern unsigned int setup_authusers_ACE(struct cifs_ace *pace); | ^~~~~~~~ fs/cifs/cifsproto.h:227:51: warning: 'struct cifs_ace' declared inside parameter list will not be visible outside of this definition or declaration 227 | extern unsigned int setup_special_mode_ACE(struct cifs_ace *pace, __u64 nmode); | ^~~~~~~~ fs/cifs/cifsproto.h:228:57: warning: 'struct cifs_ace' declared inside parameter list will not be visible outside of this definition or declaration 228 | extern unsigned int setup_special_user_owner_ACE(struct cifs_ace *pace); | ^~~~~~~~ fs/cifs/cifsproto.h:238:18: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 238 | struct cifs_sb_info *cifs_sb); | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:241:30: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 241 | extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx); | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:242:32: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 242 | extern void cifs_umount(struct cifs_sb_info *); | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:243:49: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 243 | extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon); | ^~~~~~~~~ fs/cifs/cifsproto.h:244:51: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 244 | extern void cifs_reopen_persistent_handles(struct cifs_tcon *tcon); | ^~~~~~~~~ fs/cifs/cifsproto.h:248:16: warning: 'struct cifsLockInfo' declared inside parameter list will not be visible outside of this definition or declaration 248 | struct cifsLockInfo **conf_lock, | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:252:14: warning: 'struct cifs_pending_open' declared inside parameter list will not be visible outside of this definition or declaration 252 | struct cifs_pending_open *open); | ^~~~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:251:14: warning: 'struct tcon_link' declared inside parameter list will not be visible outside of this definition or declaration 251 | struct tcon_link *tlink, | ^~~~~~~~~ fs/cifs/cifsproto.h:250:42: warning: 'struct cifs_fid' declared inside parameter list will not be visible outside of this definition or declaration 250 | extern void cifs_add_pending_open(struct cifs_fid *fid, | ^~~~~~~~ fs/cifs/cifsproto.h:255:14: warning: 'struct cifs_pending_open' declared inside parameter list will not be visible outside of this definition or declaration 255 | struct cifs_pending_open *open); | ^~~~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:254:14: warning: 'struct tcon_link' declared inside parameter list will not be visible outside of this definition or declaration 254 | struct tcon_link *tlink, | ^~~~~~~~~ fs/cifs/cifsproto.h:253:49: warning: 'struct cifs_fid' declared inside parameter list will not be visible outside of this definition or declaration 253 | extern void cifs_add_pending_open_locked(struct cifs_fid *fid, | ^~~~~~~~ fs/cifs/cifsproto.h:256:42: warning: 'struct cifs_pending_open' declared inside parameter list will not be visible outside of this definition or declaration 256 | extern void cifs_del_pending_open(struct cifs_pending_open *open); | ^~~~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:260:34: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 260 | extern void cifs_put_tcon(struct cifs_tcon *tcon); | ^~~~~~~~~ fs/cifs/cifsproto.h:273:42: warning: 'struct cifsLockInfo' declared inside parameter list will not be visible outside of this definition or declaration 273 | extern void cifs_del_lock_waiters(struct cifsLockInfo *lock); | ^~~~~~~~~~~~ fs/cifs/cifsproto.h:275:61: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 275 | extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon, | ^~~~~~~~~ fs/cifs/cifsproto.h:279:15: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 279 | struct cifs_ses *ses); | ^~~~~~~~ fs/cifs/cifsproto.h:280:62: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 280 | extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:283:60: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 283 | extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); | ^~~~~~~~ fs/cifs/cifsproto.h:286:32: warning: 'struct cifs_tcon' declared inside parameter list will not be visible outside of this definition or declaration 286 | const char *tree, struct cifs_tcon *tcon, | ^~~~~~~~~ fs/cifs/cifsproto.h:285:52: warning: 'struct cifs_ses' declared inside parameter list will not be visible outside of this definition or declaration 285 | extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, | ^~~~~~~~ fs/cifs/cifsproto.h:292:10: warning: 'struct cifs_search_info' declared inside parameter list will not be visible outside of this definition or declaration 292 | struct cifs_search_info *psrch_inf, | ^~~~~~~~~~~~~~~~ fs/cifs/cifsproto.h:290:34: warning: 'struct cifs_sb_info' declared inside parameter list will not be visible outside of this definition or declaration 290 | const char *searchName, struct cifs_sb_info *cifs_sb, vim +/mid_receive_t +96 fs/cifs/cifsproto.h ^1da177e4c3f415 Linus Torvalds 2005-04-16 32 ^1da177e4c3f415 Linus Torvalds 2005-04-16 33 /* ^1da177e4c3f415 Linus Torvalds 2005-04-16 34 ***************************************************************** ^1da177e4c3f415 Linus Torvalds 2005-04-16 35 * All Prototypes ^1da177e4c3f415 Linus Torvalds 2005-04-16 36 ***************************************************************** ^1da177e4c3f415 Linus Torvalds 2005-04-16 37 */ ^1da177e4c3f415 Linus Torvalds 2005-04-16 38 ^1da177e4c3f415 Linus Torvalds 2005-04-16 39 extern struct smb_hdr *cifs_buf_get(void); ^1da177e4c3f415 Linus Torvalds 2005-04-16 40 extern void cifs_buf_release(void *); ^1da177e4c3f415 Linus Torvalds 2005-04-16 41 extern struct smb_hdr *cifs_small_buf_get(void); ^1da177e4c3f415 Linus Torvalds 2005-04-16 42 extern void cifs_small_buf_release(void *); 6d81ed1ec22dbe9 Sachin Prabhu 2014-06-16 43 extern void free_rsp_buf(int, void *); 0496e02d8791e7f Jeff Layton 2008-12-30 @44 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *, 0496e02d8791e7f Jeff Layton 2008-12-30 45 unsigned int /* length */); 6d5786a34d98bff Pavel Shilovsky 2012-06-20 46 extern unsigned int _get_xid(void); 6d5786a34d98bff Pavel Shilovsky 2012-06-20 47 extern void _free_xid(unsigned int); 6d5786a34d98bff Pavel Shilovsky 2012-06-20 48 #define get_xid() \ b6b38f704a8193d Joe Perches 2010-04-21 49 ({ \ 6d5786a34d98bff Pavel Shilovsky 2012-06-20 50 unsigned int __xid = _get_xid(); \ a0a3036b81f1f66 Joe Perches 2020-04-14 51 cifs_dbg(FYI, "VFS: in %s as Xid: %u with uid: %d\n", \ dbfb98af18194cf Eric W. Biederman 2013-02-06 52 __func__, __xid, \ dbfb98af18194cf Eric W. Biederman 2013-02-06 53 from_kuid(&init_user_ns, current_fsuid())); \ d683bcd3e5d1575 Steve French 2018-05-19 54 trace_smb3_enter(__xid, __func__); \ b6b38f704a8193d Joe Perches 2010-04-21 55 __xid; \ b6b38f704a8193d Joe Perches 2010-04-21 56 }) b6b38f704a8193d Joe Perches 2010-04-21 57 6d5786a34d98bff Pavel Shilovsky 2012-06-20 58 #define free_xid(curr_xid) \ b6b38f704a8193d Joe Perches 2010-04-21 59 do { \ 6d5786a34d98bff Pavel Shilovsky 2012-06-20 60 _free_xid(curr_xid); \ a0a3036b81f1f66 Joe Perches 2020-04-14 61 cifs_dbg(FYI, "VFS: leaving %s (xid = %u) rc = %d\n", \ b6b38f704a8193d Joe Perches 2010-04-21 62 __func__, curr_xid, (int)rc); \ d683bcd3e5d1575 Steve French 2018-05-19 63 if (rc) \ d683bcd3e5d1575 Steve French 2018-05-19 64 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \ d683bcd3e5d1575 Steve French 2018-05-19 65 else \ d683bcd3e5d1575 Steve French 2018-05-19 66 trace_smb3_exit_done(curr_xid, __func__); \ b6b38f704a8193d Joe Perches 2010-04-21 67 } while (0) 4d79dba0e00749f Shirish Pargaonkar 2011-04-27 68 extern int init_cifs_idmap(void); 4d79dba0e00749f Shirish Pargaonkar 2011-04-27 69 extern void exit_cifs_idmap(void); b74cb9a80268be5 Sachin Prabhu 2016-05-17 70 extern int init_cifs_spnego(void); b74cb9a80268be5 Sachin Prabhu 2016-05-17 71 extern void exit_cifs_spnego(void); 7f57356b70dda01 Steve French 2005-08-30 72 extern char *build_path_from_dentry(struct dentry *); 268a635d414df45 Aurelien Aptel 2017-02-13 73 extern char *build_path_from_dentry_optional_prefix(struct dentry *direntry, 268a635d414df45 Aurelien Aptel 2017-02-13 74 bool prefix); 2727ef44ea4615d Ronnie Sahlberg 2020-12-09 75 extern char *cifs_build_path_to_root(struct smb3_fs_context *ctx, 6d3ea7e4975aed4 Steve French 2012-11-28 @76 struct cifs_sb_info *cifs_sb, 374402a2a1dfbbe Sachin Prabhu 2016-12-15 @77 struct cifs_tcon *tcon, 374402a2a1dfbbe Sachin Prabhu 2016-12-15 78 int add_treename); ^1da177e4c3f415 Linus Torvalds 2005-04-16 79 extern char *build_wildcard_path_from_dentry(struct dentry *direntry); c6c00919ab16717 Steve French 2009-03-18 80 extern char *cifs_compose_mount_options(const char *sb_mountdata, 75df213664c3e17 Ronnie Sahlberg 2020-12-10 @81 const char *fullpath, const struct dfs_info3_param *ref); 99ee4dbd7c99c27 Steve French 2007-02-27 82 /* extern void renew_parental_timestamps(struct dentry *direntry);*/ a6827c184ea9f54 Jeff Layton 2011-01-11 83 extern struct mid_q_entry *AllocMidQEntry(const struct smb_hdr *smb_buffer, a6827c184ea9f54 Jeff Layton 2011-01-11 84 struct TCP_Server_Info *server); 766fdbb57fdb1e5 Jeff Layton 2011-01-11 85 extern void DeleteMidQEntry(struct mid_q_entry *midEntry); 3c1bf7e48e9e463 Pavel Shilovsky 2012-09-18 86 extern void cifs_delete_mid(struct mid_q_entry *mid); 696e420bb2a6624 Lars Persson 2018-06-25 87 extern void cifs_mid_q_entry_release(struct mid_q_entry *midEntry); 2dc7e1c03316940 Pavel Shilovsky 2011-12-26 88 extern void cifs_wake_up_task(struct mid_q_entry *mid); 4326ed2f6a16ae9 Pavel Shilovsky 2016-11-17 89 extern int cifs_handle_standard(struct TCP_Server_Info *server, 4326ed2f6a16ae9 Pavel Shilovsky 2016-11-17 90 struct mid_q_entry *mid); 46711d0f0e67bd0 Ronnie Sahlberg 2020-11-05 91 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx); e4af35fa55b0721 Paulo Alcantara 2020-05-19 @92 extern bool cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs); 350be257ea83029 Pavel Shilovsky 2017-04-10 93 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server); fec344e3f31aa91 Jeff Layton 2012-09-18 94 extern int cifs_call_async(struct TCP_Server_Info *server, fec344e3f31aa91 Jeff Layton 2012-09-18 95 struct smb_rqst *rqst, fec344e3f31aa91 Jeff Layton 2012-09-18 @96 mid_receive_t *receive, mid_callback_t *callback, 3349c3a79fb5d76 Pavel Shilovsky 2019-01-15 @97 mid_handle_t *handle, void *cbdata, const int flags, 3349c3a79fb5d76 Pavel Shilovsky 2019-01-15 98 const struct cifs_credits *exist_credits); 5f68ea4aa98bcdd Aurelien Aptel 2020-04-22 @99 extern struct TCP_Server_Info *cifs_pick_channel(struct cifs_ses *ses); b8f57ee8aad414a Pavel Shilovsky 2016-11-23 100 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, 352d96f3acc6e02 Aurelien Aptel 2020-05-31 101 struct TCP_Server_Info *server, b8f57ee8aad414a Pavel Shilovsky 2016-11-23 102 struct smb_rqst *rqst, int *resp_buf_type, b8f57ee8aad414a Pavel Shilovsky 2016-11-23 @103 const int flags, struct kvec *resp_iov); e0bba0b8548179b Ronnie Sahlberg 2018-08-01 104 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses, 352d96f3acc6e02 Aurelien Aptel 2020-05-31 105 struct TCP_Server_Info *server, e0bba0b8548179b Ronnie Sahlberg 2018-08-01 106 const int flags, const int num_rqst, e0bba0b8548179b Ronnie Sahlberg 2018-08-01 107 struct smb_rqst *rqst, int *resp_buf_type, e0bba0b8548179b Ronnie Sahlberg 2018-08-01 108 struct kvec *resp_iov); 96daf2b09178d8e Steve French 2011-05-27 109 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *, ^1da177e4c3f415 Linus Torvalds 2005-04-16 110 struct smb_hdr * /* input */ , ^1da177e4c3f415 Linus Torvalds 2005-04-16 111 struct smb_hdr * /* out */ , a891f0f895f4a76 Pavel Shilovsky 2012-05-23 112 int * /* bytes returned */ , const int); 96daf2b09178d8e Steve French 2011-05-27 113 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, 792af7b05b8a78d Pavel Shilovsky 2012-03-23 114 char *in_buf, int flags); fec344e3f31aa91 Jeff Layton 2012-09-18 115 extern struct mid_q_entry *cifs_setup_request(struct cifs_ses *, f780bd3fef17c4f Aurelien Aptel 2019-09-20 116 struct TCP_Server_Info *, fec344e3f31aa91 Jeff Layton 2012-09-18 117 struct smb_rqst *); fec344e3f31aa91 Jeff Layton 2012-09-18 118 extern struct mid_q_entry *cifs_setup_async_request(struct TCP_Server_Info *, fec344e3f31aa91 Jeff Layton 2012-09-18 119 struct smb_rqst *); 2c8f981d93f830c Jeff Layton 2011-05-19 120 extern int cifs_check_receive(struct mid_q_entry *mid, 2c8f981d93f830c Jeff Layton 2011-05-19 121 struct TCP_Server_Info *server, bool log_error); cb7e9eabb2b5848 Pavel Shilovsky 2014-06-05 122 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server, cb7e9eabb2b5848 Pavel Shilovsky 2014-06-05 123 unsigned int size, unsigned int *num, 335b7b62ffb69d1 Pavel Shilovsky 2019-01-16 @124 struct cifs_credits *credits); 96daf2b09178d8e Steve French 2011-05-27 125 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *, 84afc29b185334f Steve French 2005-12-02 126 struct kvec *, int /* nvec to send */, da502f7df03d2d0 Pavel Shilovsky 2016-10-25 127 int * /* type of buf returned */, const int flags, da502f7df03d2d0 Pavel Shilovsky 2016-10-25 128 struct kvec * /* resp vec */); ad7a2926b9e53cf Steve French 2008-02-07 129 extern int SendReceiveBlockingLock(const unsigned int xid, 96daf2b09178d8e Steve French 2011-05-27 130 struct cifs_tcon *ptcon, ad7a2926b9e53cf Steve French 2008-02-07 131 struct smb_hdr *in_buf , ad7a2926b9e53cf Steve French 2008-02-07 132 struct smb_hdr *out_buf, ad7a2926b9e53cf Steve French 2008-02-07 133 int *bytes_returned); 28ea5290d78a7fc Pavel Shilovsky 2012-05-23 134 extern int cifs_reconnect(struct TCP_Server_Info *server); 373512ec5c105ed Steve French 2015-12-18 135 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr); d4e4854fd1c85ac Pavel Shilovsky 2012-03-23 136 extern bool is_valid_oplock_break(char *, struct TCP_Server_Info *); 3d3ea8e64efbeb3 Shirish Pargaonkar 2011-09-26 137 extern bool backup_cred(struct cifs_sb_info *); 4b18f2a9c3964f7 Steve French 2008-04-29 @138 extern bool is_size_safe_to_change(struct cifsInodeInfo *, __u64 eof); 72432ffcf555dec Pavel Shilovsky 2011-01-24 139 extern void cifs_update_eof(struct cifsInodeInfo *cifsi, loff_t offset, 72432ffcf555dec Pavel Shilovsky 2011-01-24 140 unsigned int bytes_written); 86f740f2aed5ea7 Aurelien Aptel 2020-02-21 141 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int); fe768d51c832ebd Pavel Shilovsky 2019-01-29 142 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode, 86f740f2aed5ea7 Aurelien Aptel 2020-02-21 143 int flags, fe768d51c832ebd Pavel Shilovsky 2019-01-29 144 struct cifsFileInfo **ret_file); 8de9e86c67baa71 Ronnie Sahlberg 2019-08-30 145 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name, 86f740f2aed5ea7 Aurelien Aptel 2020-02-21 146 int flags, 8de9e86c67baa71 Ronnie Sahlberg 2019-08-30 147 struct cifsFileInfo **ret_file); 6508d904e6fb66c Jeff Layton 2010-09-29 148 extern struct cifsFileInfo *find_readable_file(struct cifsInodeInfo *, bool); 496902dc173dead Ronnie Sahlberg 2019-09-09 149 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name, 496902dc173dead Ronnie Sahlberg 2019-09-09 150 struct cifsFileInfo **ret_file); 9ec672bd17131fe Ronnie Sahlberg 2018-04-22 151 extern unsigned int smbCalcSize(void *buf, struct TCP_Server_Info *server); ^1da177e4c3f415 Linus Torvalds 2005-04-16 152 extern int decode_negTokenInit(unsigned char *security_blob, int length, 26efa0bac9dc358 Jeff Layton 2010-04-24 153 struct TCP_Server_Info *server); 67b7626a0512d12 David Howells 2010-07-22 154 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len); b979aaa17772593 Jeff Layton 2012-11-26 155 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port); 5ffef7bf1dd582e Pavel Shilovsky 2012-03-23 156 extern int map_smb_to_linux_error(char *buf, bool logErr); a3713ec3d775ff9 Roberto Bergantinos Corpas 2020-07-03 157 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr); ^1da177e4c3f415 Linus Torvalds 2005-04-16 158 extern void header_assemble(struct smb_hdr *, char /* command */ , 96daf2b09178d8e Steve French 2011-05-27 159 const struct cifs_tcon *, int /* length of 1982c344f1bf081 Steve French 2005-08-17 160 fixed section (word count) in two byte units */); 5815449d1bfcb22 Steve French 2006-02-14 161 extern int small_smb_init_no_tc(const int smb_cmd, const int wct, 96daf2b09178d8e Steve French 2011-05-27 162 struct cifs_ses *ses, 12b3b8ffb5fd591 Steve French 2006-02-09 163 void **request_buf); 3f618223dc0bdcb Jeff Layton 2013-06-12 164 extern enum securityEnum select_sectype(struct TCP_Server_Info *server, 3f618223dc0bdcb Jeff Layton 2013-06-12 165 enum securityEnum requested); 58c45c58a1cbc8d Pavel Shilovsky 2012-05-25 166 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses, 5815449d1bfcb22 Steve French 2006-02-14 167 const struct nls_table *nls_cp); 95390201e7d8dd1 Arnd Bergmann 2018-06-19 168 extern struct timespec64 cifs_NTtimeToUnix(__le64 utc_nanoseconds_since_1601); 95390201e7d8dd1 Arnd Bergmann 2018-06-19 169 extern u64 cifs_UnixTimeToNT(struct timespec64); 95390201e7d8dd1 Arnd Bergmann 2018-06-19 170 extern struct timespec64 cnvrtDosUnixTm(__le16 le_date, __le16 le_time, c4a2c08db7d976c Jeff Layton 2009-05-27 171 int offset); c67236281c5d749 Pavel Shilovsky 2010-11-03 172 extern void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock); c11f1df5003d534 Sachin Prabhu 2014-03-11 173 extern int cifs_get_writer(struct cifsInodeInfo *cinode); c11f1df5003d534 Sachin Prabhu 2014-03-11 174 extern void cifs_put_writer(struct cifsInodeInfo *cinode); c11f1df5003d534 Sachin Prabhu 2014-03-11 175 extern void cifs_done_oplock_break(struct cifsInodeInfo *cinode); d39a4f710b7a7be Pavel Shilovsky 2012-09-19 176 extern int cifs_unlock_range(struct cifsFileInfo *cfile, d39a4f710b7a7be Pavel Shilovsky 2012-09-19 @177 struct file_lock *flock, const unsigned int xid); d39a4f710b7a7be Pavel Shilovsky 2012-09-19 178 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile); 1bd5bbcb6531776 Steve French 2006-09-28 179 d46b0da7a33dd8c Dave Wysochanski 2019-10-23 180 extern void cifs_down_write(struct rw_semaphore *sem); fb1214e48f735cd Pavel Shilovsky 2012-09-18 @181 extern struct cifsFileInfo *cifs_new_fileinfo(struct cifs_fid *fid, fb1214e48f735cd Pavel Shilovsky 2012-09-18 182 struct file *file, fb1214e48f735cd Pavel Shilovsky 2012-09-18 @183 struct tcon_link *tlink, 7a16f1961a5c61d Steve French 2010-10-18 184 __u32 oplock); 6d5786a34d98bff Pavel Shilovsky 2012-06-20 185 extern int cifs_posix_open(char *full_path, struct inode **inode, 6d5786a34d98bff Pavel Shilovsky 2012-06-20 186 struct super_block *sb, int mode, 6d5786a34d98bff Pavel Shilovsky 2012-06-20 187 unsigned int f_flags, __u32 *oplock, __u16 *netfid, 6d5786a34d98bff Pavel Shilovsky 2012-06-20 188 unsigned int xid); 4065c802da7484f Jeff Layton 2010-05-17 @189 void cifs_fill_uniqueid(struct super_block *sb, struct cifs_fattr *fattr); cc0bad7552308e8 Jeff Layton 2009-06-25 190 extern void cifs_unix_basic_to_fattr(struct cifs_fattr *fattr, cc0bad7552308e8 Jeff Layton 2009-06-25 @191 FILE_UNIX_BASIC_INFO *info, cc0bad7552308e8 Jeff Layton 2009-06-25 192 struct cifs_sb_info *cifs_sb); c052e2b423f3eab Shirish Pargaonkar 2012-09-28 @193 extern void cifs_dir_info_to_fattr(struct cifs_fattr *, FILE_DIRECTORY_INFO *, c052e2b423f3eab Shirish Pargaonkar 2012-09-28 194 struct cifs_sb_info *); cc0bad7552308e8 Jeff Layton 2009-06-25 195 extern void cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr); cc0bad7552308e8 Jeff Layton 2009-06-25 196 extern struct inode *cifs_iget(struct super_block *sb, cc0bad7552308e8 Jeff Layton 2009-06-25 197 struct cifs_fattr *fattr); cc0bad7552308e8 Jeff Layton 2009-06-25 198 1208ef1f76540b6 Pavel Shilovsky 2012-05-27 199 extern int cifs_get_inode_info(struct inode **inode, const char *full_path, 1208ef1f76540b6 Pavel Shilovsky 2012-05-27 @200 FILE_ALL_INFO *data, struct super_block *sb, 42eacf9e57b65ff Steve French 2014-02-10 201 int xid, const struct cifs_fid *fid); 6a5f6592a0b606e Steve French 2020-06-11 202 extern int smb311_posix_get_inode_info(struct inode **pinode, const char *search_path, 6a5f6592a0b606e Steve French 2020-06-11 203 struct super_block *sb, unsigned int xid); ^1da177e4c3f415 Linus Torvalds 2005-04-16 204 extern int cifs_get_inode_info_unix(struct inode **pinode, ^1da177e4c3f415 Linus Torvalds 2005-04-16 205 const unsigned char *search_path, 6d5786a34d98bff Pavel Shilovsky 2012-06-20 206 struct super_block *sb, unsigned int xid); ed6875e0d6c28e4 Pavel Shilovsky 2012-09-18 207 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs, ed6875e0d6c28e4 Pavel Shilovsky 2012-09-18 208 unsigned int xid, char *full_path, __u32 dosattr); ed6875e0d6c28e4 Pavel Shilovsky 2012-09-18 209 extern int cifs_rename_pending_delete(const char *full_path, ed6875e0d6c28e4 Pavel Shilovsky 2012-09-18 210 struct dentry *dentry, ed6875e0d6c28e4 Pavel Shilovsky 2012-09-18 211 const unsigned int xid); 9934430e2178d51 Steve French 2020-10-20 @212 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, 9934430e2178d51 Steve French 2020-10-20 213 struct cifs_fattr *fattr, uint sidtype); 987b21d7d91d033 Shirish Pargaonkar 2010-11-10 214 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb, 0b8f18e358384a5 Jeff Layton 2009-07-09 215 struct cifs_fattr *fattr, struct inode *inode, e2f8fbfb8d09c06 Steve French 2019-07-19 216 bool get_mode_from_special_sid, 42eacf9e57b65ff Steve French 2014-02-10 217 const char *path, const struct cifs_fid *pfid); 672f807bec7d793 Shyam Prasad N 2020-08-17 218 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode, 672f807bec7d793 Shyam Prasad N 2020-08-17 219 kuid_t uid, kgid_t gid); fbeba8bb16d7c50 Shirish Pargaonkar 2010-11-27 220 extern struct cifs_ntsd *get_cifs_acl(struct cifs_sb_info *, struct inode *, fbeba8bb16d7c50 Shirish Pargaonkar 2010-11-27 221 const char *, u32 *); 42eacf9e57b65ff Steve French 2014-02-10 222 extern struct cifs_ntsd *get_cifs_acl_by_fid(struct cifs_sb_info *, 42eacf9e57b65ff Steve French 2014-02-10 223 const struct cifs_fid *, u32 *); b73b9a4ba753dfd Steve French 2011-04-19 224 extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *, a5ff376966c079b Shirish Pargaonkar 2011-10-13 225 const char *, int); 643fbceef48e5b2 Steve French 2020-01-16 @226 extern unsigned int setup_authusers_ACE(struct cifs_ace *pace); fdef665ba44ad5e Steve French 2019-12-06 227 extern unsigned int setup_special_mode_ACE(struct cifs_ace *pace, __u64 nmode); 975221eca5fbfdb Steve French 2020-06-12 228 extern unsigned int setup_special_user_owner_ACE(struct cifs_ace *pace); 953f868138dbf43 Steve French 2007-10-31 229 e28bc5b1fdbd6e8 Jeff Layton 2011-10-19 230 extern void dequeue_mid(struct mid_q_entry *mid, bool malformed); e28bc5b1fdbd6e8 Jeff Layton 2011-10-19 231 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, e28bc5b1fdbd6e8 Jeff Layton 2011-10-19 232 unsigned int to_read); 71335664c38f03d Al Viro 2016-01-09 233 extern int cifs_read_page_from_socket(struct TCP_Server_Info *server, 1dbe3466b4d2607 Long Li 2018-05-30 234 struct page *page, 1dbe3466b4d2607 Long Li 2018-05-30 235 unsigned int page_offset, 1dbe3466b4d2607 Long Li 2018-05-30 236 unsigned int to_read); 2727ef44ea4615d Ronnie Sahlberg 2020-12-09 237 extern int cifs_setup_cifs_sb(struct smb3_fs_context *ctx, 724d9f1cfba0cb1 Pavel Shilovsky 2011-05-05 238 struct cifs_sb_info *cifs_sb); 724d9f1cfba0cb1 Pavel Shilovsky 2011-05-05 239 extern int cifs_match_super(struct super_block *, void *); 2727ef44ea4615d Ronnie Sahlberg 2020-12-09 240 extern void cifs_cleanup_volume_info(struct smb3_fs_context *ctx); 2727ef44ea4615d Ronnie Sahlberg 2020-12-09 241 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx); 2a9b99516c662d1 Al Viro 2011-06-17 242 extern void cifs_umount(struct cifs_sb_info *); aa24d1e9692411e Pavel Shilovsky 2011-12-27 243 extern void cifs_mark_open_files_invalid(struct cifs_tcon *tcon); 52ace1ef1259e11 Steve French 2016-09-22 244 extern void cifs_reopen_persistent_handles(struct cifs_tcon *tcon); 52ace1ef1259e11 Steve French 2016-09-22 245 579f9053236c796 Pavel Shilovsky 2012-09-19 246 extern bool cifs_find_lock_conflict(struct cifsFileInfo *cfile, __u64 offset, 9645759ce6b3901 Ronnie Sahlberg 2018-10-04 247 __u64 length, __u8 type, __u16 flags, 579f9053236c796 Pavel Shilovsky 2012-09-19 @248 struct cifsLockInfo **conf_lock, 081c0414dcdfd13 Pavel Shilovsky 2012-11-27 249 int rw_check); 233839b1df65a24 Pavel Shilovsky 2012-09-19 250 extern void cifs_add_pending_open(struct cifs_fid *fid, 233839b1df65a24 Pavel Shilovsky 2012-09-19 251 struct tcon_link *tlink, 233839b1df65a24 Pavel Shilovsky 2012-09-19 @252 struct cifs_pending_open *open); 233839b1df65a24 Pavel Shilovsky 2012-09-19 253 extern void cifs_add_pending_open_locked(struct cifs_fid *fid, 233839b1df65a24 Pavel Shilovsky 2012-09-19 254 struct tcon_link *tlink, 233839b1df65a24 Pavel Shilovsky 2012-09-19 255 struct cifs_pending_open *open); 233839b1df65a24 Pavel Shilovsky 2012-09-19 256 extern void cifs_del_pending_open(struct cifs_pending_open *open); 2727ef44ea4615d Ronnie Sahlberg 2020-12-09 257 extern struct TCP_Server_Info *cifs_get_tcp_session(struct smb3_fs_context *ctx); 53e0e11efe92895 Pavel Shilovsky 2016-11-04 258 extern void cifs_put_tcp_session(struct TCP_Server_Info *server, 53e0e11efe92895 Pavel Shilovsky 2016-11-04 259 int from_reconnect); 53e0e11efe92895 Pavel Shilovsky 2016-11-04 260 extern void cifs_put_tcon(struct cifs_tcon *tcon); 815465c4d724e85 Jeff Layton 2012-03-21 261 815465c4d724e85 Jeff Layton 2012-03-21 262 #if IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) 78d31a3a87f84cf Igor Mammedov 2008-04-24 263 extern void cifs_dfs_release_automount_timer(void); 815465c4d724e85 Jeff Layton 2012-03-21 264 #else /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ 815465c4d724e85 Jeff Layton 2012-03-21 265 #define cifs_dfs_release_automount_timer() do { } while (0) 815465c4d724e85 Jeff Layton 2012-03-21 266 #endif /* ! IS_ENABLED(CONFIG_CIFS_DFS_UPCALL) */ 815465c4d724e85 Jeff Layton 2012-03-21 267 ^1da177e4c3f415 Linus Torvalds 2005-04-16 268 void cifs_proc_init(void); ^1da177e4c3f415 Linus Torvalds 2005-04-16 269 void cifs_proc_clean(void); ^1da177e4c3f415 Linus Torvalds 2005-04-16 270 f7ba7fe685bc3ed Pavel Shilovsky 2012-09-19 271 extern void cifs_move_llist(struct list_head *source, struct list_head *dest); f7ba7fe685bc3ed Pavel Shilovsky 2012-09-19 272 extern void cifs_free_llist(struct list_head *llist); f7ba7fe685bc3ed Pavel Shilovsky 2012-09-19 273 extern void cifs_del_lock_waiters(struct cifsLockInfo *lock); f7ba7fe685bc3ed Pavel Shilovsky 2012-09-19 274 565674d613d7f45 Stefan Metzmacher 2020-07-21 275 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon, 565674d613d7f45 Stefan Metzmacher 2020-07-21 276 const struct nls_table *nlsc); 565674d613d7f45 Stefan Metzmacher 2020-07-21 277 286170aa241819f Pavel Shilovsky 2012-05-25 278 extern int cifs_negotiate_protocol(const unsigned int xid, 96daf2b09178d8e Steve French 2011-05-27 279 struct cifs_ses *ses); 58c45c58a1cbc8d Pavel Shilovsky 2012-05-25 280 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, ^1da177e4c3f415 Linus Torvalds 2005-04-16 281 struct nls_table *nls_info); 38d77c50b4f4e3e Jeff Layton 2013-05-26 282 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required); 286170aa241819f Pavel Shilovsky 2012-05-25 283 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses); ^1da177e4c3f415 Linus Torvalds 2005-04-16 284 2e6e02ab6ddbd53 Pavel Shilovsky 2012-05-25 285 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses, 96daf2b09178d8e Steve French 2011-05-27 286 const char *tree, struct cifs_tcon *tcon, ^1da177e4c3f415 Linus Torvalds 2005-04-16 287 const struct nls_table *); ^1da177e4c3f415 Linus Torvalds 2005-04-16 288 6d5786a34d98bff Pavel Shilovsky 2012-06-20 289 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon, c052e2b423f3eab Shirish Pargaonkar 2012-09-28 290 const char *searchName, struct cifs_sb_info *cifs_sb, 2608bee744a92d6 Shirish Pargaonkar 2012-05-15 291 __u16 *searchHandle, __u16 search_flags, 2608bee744a92d6 Shirish Pargaonkar 2012-05-15 @292 struct cifs_search_info *psrch_inf, c052e2b423f3eab Shirish Pargaonkar 2012-09-28 293 bool msearch); ^1da177e4c3f415 Linus Torvalds 2005-04-16 294 :::::: The code at line 96 was first introduced by commit :::::: fec344e3f31aa911297cd3a4639432d983b1f324 cifs: change cifs_call_async to use smb_rqst structs :::::: TO: Jeff Layton <jlayton@xxxxxxxxxx> :::::: CC: Steve French <smfrench@xxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip