tree: git://git.samba.org/sfrench/cifs-2.6.git test-dfs-changes head: a9b2aa61e0eaa46d565a71a637935c1b124b8a3e commit: 8569b5b287d4ec69f09e33d77552ede35db4239b [4/8] CIFS: implement get_dfs_refer for SMB2+ config: i386-randconfig-x003-201709 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 8569b5b287d4ec69f09e33d77552ede35db4239b # save the attached .config to linux build tree make ARCH=i386 Note: the cifs/test-dfs-changes HEAD a9b2aa61e0eaa46d565a71a637935c1b124b8a3e builds fine. It only hurts bisectibility. All error/warnings (new ones prefixed by >>): fs/cifs/smb2ops.c: In function 'smb2_get_dfs_refer': >> fs/cifs/smb2ops.c:1158:26: warning: passing argument 7 of 'SMB2_ioctl' makes pointer from integer without a cast [-Wint-conversion] true /* is_fsctl */, true /* use_ipc */, ^~~~ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'char *' but argument is of type 'int' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ >> fs/cifs/smb2ops.c:1159:5: warning: passing argument 8 of 'SMB2_ioctl' makes integer from pointer without a cast [-Wint-conversion] (char *)dfs_req, dfs_req_size, ^ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'u32 {aka unsigned int}' but argument is of type 'char *' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ fs/cifs/smb2ops.c:1159:22: warning: passing argument 9 of 'SMB2_ioctl' makes pointer from integer without a cast [-Wint-conversion] (char *)dfs_req, dfs_req_size, ^~~~~~~~~~~~ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'char **' but argument is of type 'u32 {aka unsigned int}' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ >> fs/cifs/smb2ops.c:1160:5: error: passing argument 10 of 'SMB2_ioctl' from incompatible pointer type [-Werror=incompatible-pointer-types] (char **)&dfs_rsp, &dfs_rsp_size); ^ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'u32 * {aka unsigned int *}' but argument is of type 'char **' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ >> fs/cifs/smb2ops.c:1156:8: error: too many arguments to function 'SMB2_ioctl' rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, ^~~~~~~~~~ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: declared here extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ fs/cifs/smb2ops.c:1166:6: warning: passing argument 8 of 'SMB2_ioctl' makes integer from pointer without a cast [-Wint-conversion] (char *)dfs_req, dfs_req_size, ^ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'u32 {aka unsigned int}' but argument is of type 'char *' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ fs/cifs/smb2ops.c:1166:23: warning: passing argument 9 of 'SMB2_ioctl' makes pointer from integer without a cast [-Wint-conversion] (char *)dfs_req, dfs_req_size, ^~~~~~~~~~~~ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'char **' but argument is of type 'u32 {aka unsigned int}' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ fs/cifs/smb2ops.c:1167:6: error: passing argument 10 of 'SMB2_ioctl' from incompatible pointer type [-Werror=incompatible-pointer-types] (char **)&dfs_rsp, &dfs_rsp_size); ^ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: expected 'u32 * {aka unsigned int *}' but argument is of type 'char **' extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ fs/cifs/smb2ops.c:1163:9: error: too many arguments to function 'SMB2_ioctl' rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, ^~~~~~~~~~ In file included from fs/cifs/smb2ops.c:27:0: fs/cifs/smb2proto.h:122:12: note: declared here extern int SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, ^~~~~~~~~~ cc1: some warnings being treated as errors vim +/SMB2_ioctl +1160 fs/cifs/smb2ops.c 1150 1151 /* Path to resolve in an UTF-16 null-terminated string */ 1152 memcpy(dfs_req->RequestFileName, utf16_path, utf16_path_len); 1153 1154 do { 1155 /* try first with IPC */ > 1156 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, 1157 FSCTL_DFS_GET_REFERRALS, > 1158 true /* is_fsctl */, true /* use_ipc */, > 1159 (char *)dfs_req, dfs_req_size, > 1160 (char **)&dfs_rsp, &dfs_rsp_size); 1161 if (rc == -ENOTCONN) { 1162 /* try with normal tcon */ 1163 rc = SMB2_ioctl(xid, tcon, NO_FILE_ID, NO_FILE_ID, --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip