[cifs:for-next 8/9] fs//cifs/smb2ops.c:1542:2: note: in expansion of macro 'if'
Steve French
smfrench at gmail.com
Sat Jun 23 00:56:08 UTC 2018
fixed now - cifs-2.6.git for-next updated. Aurelien reviewed.
On Fri, Jun 22, 2018 at 2:25 PM kbuild test robot <lkp at intel.com> wrote:
>
> tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
> head: 37a0fd808c8d8c2ad7d10275068d1c36dde14daf
> commit: 1393fc1253e31e99cc4104f9b2019569c8487dd8 [8/9] smb3: add support for statfs for smb3.1.1 posix extensions
> config: i386-randconfig-x011-201824 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> git checkout 1393fc1253e31e99cc4104f9b2019569c8487dd8
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/asm-generic/bug.h:5:0,
> from arch/x86/include/asm/bug.h:83,
> from include/linux/bug.h:5,
> from include/linux/mmdebug.h:5,
> from include/linux/mm.h:9,
> from include/linux/pagemap.h:8,
> from fs//cifs/smb2ops.c:20:
> fs//cifs/smb2ops.c: In function 'smb311_queryfs':
> fs//cifs/smb2ops.c:1542:11: error: 'struct cifs_tcon' has no member named 'posix_extensions'
> if (!tcon->posix_extensions)
> ^
> include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
> if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
> ^~~~
> >> fs//cifs/smb2ops.c:1542:2: note: in expansion of macro 'if'
> if (!tcon->posix_extensions)
> ^~
> fs//cifs/smb2ops.c:1542:11: error: 'struct cifs_tcon' has no member named 'posix_extensions'
> if (!tcon->posix_extensions)
> ^
> include/linux/compiler.h:58:42: note: in definition of macro '__trace_if'
> if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
> ^~~~
> >> fs//cifs/smb2ops.c:1542:2: note: in expansion of macro 'if'
> if (!tcon->posix_extensions)
> ^~
> fs//cifs/smb2ops.c:1542:11: error: 'struct cifs_tcon' has no member named 'posix_extensions'
> if (!tcon->posix_extensions)
> ^
> include/linux/compiler.h:69:16: note: in definition of macro '__trace_if'
> ______r = !!(cond); \
> ^~~~
> >> fs//cifs/smb2ops.c:1542:2: note: in expansion of macro 'if'
> if (!tcon->posix_extensions)
> ^~
> At top level:
> fs//cifs/smb2ops.c:1533:1: warning: 'smb311_queryfs' defined but not used [-Wunused-function]
> smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
> ^~~~~~~~~~~~~~
>
> vim +/if +1542 fs//cifs/smb2ops.c
>
> 1531
> 1532 static int
> 1533 smb311_queryfs(const unsigned int xid, struct cifs_tcon *tcon,
> 1534 struct kstatfs *buf)
> 1535 {
> 1536 int rc;
> 1537 __le16 srch_path = 0; /* Null - open root of share */
> 1538 u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
> 1539 struct cifs_open_parms oparms;
> 1540 struct cifs_fid fid;
> 1541
> > 1542 if (!tcon->posix_extensions)
> 1543 return smb2_queryfs(xid, tcon, buf);
> 1544
> 1545 oparms.tcon = tcon;
> 1546 oparms.desired_access = FILE_READ_ATTRIBUTES;
> 1547 oparms.disposition = FILE_OPEN;
> 1548 oparms.create_options = 0;
> 1549 oparms.fid = &fid;
> 1550 oparms.reconnect = false;
> 1551
> 1552 rc = SMB2_open(xid, &oparms, &srch_path, &oplock, NULL, NULL, NULL);
> 1553 if (rc)
> 1554 return rc;
> 1555
> 1556 rc = SMB311_posix_qfs_info(xid, tcon, fid.persistent_fid,
> 1557 fid.volatile_fid, buf);
> 1558 buf->f_type = SMB2_MAGIC_NUMBER;
> 1559 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid);
> 1560 return rc;
> 1561 }
> 1562
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
Thanks,
Steve
More information about the samba-technical
mailing list