Discussion:
[cifs:for-next 6/8] fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
(too old to reply)
kbuild test robot via samba-technical
2018-05-06 19:04:32 UTC
Permalink
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: bcfd761d3ddda672e8bd541c385426735ea7b847
commit: 94fb5e2a30ddef974f3d52a75908a9ee0c6aaf53 [6/8] cifs: update calc_size to take a server argument
config: i386-randconfig-x018-201818 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 94fb5e2a30ddef974f3d52a75908a9ee0c6aaf53
# save the attached .config to linux build tree
make ARCH=i386

All error/warnings (new ones prefixed by >>):

In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:54:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc("%s: " \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:357:17: note: in definition of macro 'printk_once'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_once'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:60:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc(fmt, ##__VA_ARGS__); \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:425:17: note: in definition of macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_ratelimited'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c: In function 'cifs_dump_mids':
fs/cifs/cifs_debug.c:87:4: error: too few arguments to function 'cifs_dump_detail'
cifs_dump_detail(mid_entry->resp_buf);
^~~~~~~~~~~~~~~~
fs/cifs/cifs_debug.c:45:6: note: declared here
void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
^~~~~~~~~~~~~~~~
--
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:54:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc("%s: " \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:357:17: note: in definition of macro 'printk_once'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_once'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:60:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc(fmt, ##__VA_ARGS__); \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:425:17: note: in definition of macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_ratelimited'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~

vim +54 fs/cifs/cifs_debug.c

^1da177e4 Linus Torvalds 2005-04-16 @22 #include <linux/fs.h>
^1da177e4 Linus Torvalds 2005-04-16 23 #include <linux/string.h>
^1da177e4 Linus Torvalds 2005-04-16 24 #include <linux/ctype.h>
^1da177e4 Linus Torvalds 2005-04-16 25 #include <linux/module.h>
^1da177e4 Linus Torvalds 2005-04-16 26 #include <linux/proc_fs.h>
7c0f6ba68 Linus Torvalds 2016-12-24 27 #include <linux/uaccess.h>
^1da177e4 Linus Torvalds 2005-04-16 28 #include "cifspdu.h"
^1da177e4 Linus Torvalds 2005-04-16 29 #include "cifsglob.h"
^1da177e4 Linus Torvalds 2005-04-16 30 #include "cifsproto.h"
^1da177e4 Linus Torvalds 2005-04-16 31 #include "cifs_debug.h"
6c91d362f Steve French 2005-04-28 32 #include "cifsfs.h"
d8ec913b1 Long Li 2017-11-07 33 #ifdef CONFIG_CIFS_SMB_DIRECT
d8ec913b1 Long Li 2017-11-07 34 #include "smbdirect.h"
d8ec913b1 Long Li 2017-11-07 35 #endif
^1da177e4 Linus Torvalds 2005-04-16 36
^1da177e4 Linus Torvalds 2005-04-16 37 void
^1da177e4 Linus Torvalds 2005-04-16 38 cifs_dump_mem(char *label, void *data, int length)
^1da177e4 Linus Torvalds 2005-04-16 39 {
0b456f04b Andy Shevchenko 2014-08-27 40 pr_debug("%s: dump of %d bytes of data at 0x%p\n", label, length, data);
55d83e0db Andy Shevchenko 2014-08-27 41 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
55d83e0db Andy Shevchenko 2014-08-27 42 data, length, true);
^1da177e4 Linus Torvalds 2005-04-16 43 }
^1da177e4 Linus Torvalds 2005-04-16 44
003051451 Ronnie Sahlberg 2018-04-22 45 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
3979877e5 Steve French 2006-05-31 46 {
8aa26f3ed Pavel Shilovsky 2012-05-17 47 #ifdef CONFIG_CIFS_DEBUG2
d4e4854fd Pavel Shilovsky 2012-03-23 48 struct smb_hdr *smb = (struct smb_hdr *)buf;
d4e4854fd Pavel Shilovsky 2012-03-23 49
f96637be0 Joe Perches 2013-05-04 50 cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d\n",
3979877e5 Steve French 2006-05-31 51 smb->Command, smb->Status.CifsError,
b6b38f704 Joe Perches 2010-04-21 52 smb->Flags, smb->Flags2, smb->Mid, smb->Pid);
003051451 Ronnie Sahlberg 2018-04-22 @53 cifs_dbg(VFS, "smb buf %p len %u\n", smb,
003051451 Ronnie Sahlberg 2018-04-22 @54 server->ops->calc_smb_size(smb));
8aa26f3ed Pavel Shilovsky 2012-05-17 55 #endif /* CONFIG_CIFS_DEBUG2 */
3979877e5 Steve French 2006-05-31 56 }
3979877e5 Steve French 2006-05-31 57

:::::: The code at line 54 was first introduced by commit
:::::: 00305145145f62b9eea2508813c9c7a4e078e093 cifs: add server argument to the dump_detail method

:::::: TO: Ronnie Sahlberg <***@redhat.com>
:::::: CC: Steve French <***@gmail.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Steve French via samba-technical
2018-05-06 21:02:13 UTC
Permalink
fixed in cifs-2.6.git for-next and repushed
Post by kbuild test robot via samba-technical
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: bcfd761d3ddda672e8bd541c385426735ea7b847
commit: 94fb5e2a30ddef974f3d52a75908a9ee0c6aaf53 [6/8] cifs: update calc_size to take a server argument
config: i386-randconfig-x018-201818 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
git checkout 94fb5e2a30ddef974f3d52a75908a9ee0c6aaf53
# save the attached .config to linux build tree
make ARCH=i386
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:54:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc("%s: " \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:357:17: note: in definition of macro 'printk_once'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_once'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:60:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc(fmt, ##__VA_ARGS__); \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:425:17: note: in definition of macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_ratelimited'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c:54:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(smb));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/cifs_debug.c:53:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", smb,
^~~~~~~~
fs/cifs/cifs_debug.c:87:4: error: too few arguments to function 'cifs_dump_detail'
cifs_dump_detail(mid_entry->resp_buf);
^~~~~~~~~~~~~~~~
fs/cifs/cifs_debug.c:45:6: note: declared here
void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
^~~~~~~~~~~~~~~~
--
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:54:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc("%s: " \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:357:17: note: in definition of macro 'printk_once'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_once'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:136:17: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:60:3: note: in expansion of macro 'pr_debug_once'
pr_debug_ ## ratefunc(fmt, ##__VA_ARGS__); \
^~~~~~~~~
fs/cifs/cifs_debug.h:67:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(once, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
In file included from include/linux/kernel.h:14:0,
from include/asm-generic/bug.h:18,
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,
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:425:17: note: in definition of macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:57:3: note: in expansion of macro 'pr_err_ratelimited'
pr_err_ ## ratefunc("CIFS VFS: " \
^~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
fs/cifs/smb2ops.c:224:4: error: too few arguments to function 'server->ops->calc_smb_size'
server->ops->calc_smb_size(buf));
^
include/linux/printk.h:467:50: note: in definition of macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:70:3: note: in expansion of macro 'cifs_dbg_func'
cifs_dbg_func(ratelimited, \
^~~~~~~~~~~~~
fs/cifs/smb2ops.c:223:2: note: in expansion of macro 'cifs_dbg'
cifs_dbg(VFS, "smb buf %p len %u\n", buf,
^~~~~~~~
vim +54 fs/cifs/cifs_debug.c
^1da177e4 Linus Torvalds 2005-04-16 23 #include <linux/string.h>
^1da177e4 Linus Torvalds 2005-04-16 24 #include <linux/ctype.h>
^1da177e4 Linus Torvalds 2005-04-16 25 #include <linux/module.h>
^1da177e4 Linus Torvalds 2005-04-16 26 #include <linux/proc_fs.h>
7c0f6ba68 Linus Torvalds 2016-12-24 27 #include <linux/uaccess.h>
^1da177e4 Linus Torvalds 2005-04-16 28 #include "cifspdu.h"
^1da177e4 Linus Torvalds 2005-04-16 29 #include "cifsglob.h"
^1da177e4 Linus Torvalds 2005-04-16 30 #include "cifsproto.h"
^1da177e4 Linus Torvalds 2005-04-16 31 #include "cifs_debug.h"
6c91d362f Steve French 2005-04-28 32 #include "cifsfs.h"
d8ec913b1 Long Li 2017-11-07 33 #ifdef CONFIG_CIFS_SMB_DIRECT
d8ec913b1 Long Li 2017-11-07 34 #include "smbdirect.h"
d8ec913b1 Long Li 2017-11-07 35 #endif
^1da177e4 Linus Torvalds 2005-04-16 36
^1da177e4 Linus Torvalds 2005-04-16 37 void
^1da177e4 Linus Torvalds 2005-04-16 38 cifs_dump_mem(char *label, void *data, int length)
^1da177e4 Linus Torvalds 2005-04-16 39 {
0b456f04b Andy Shevchenko 2014-08-27 40 pr_debug("%s: dump of %d bytes of data at 0x%p\n", label, length, data);
55d83e0db Andy Shevchenko 2014-08-27 41 print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
55d83e0db Andy Shevchenko 2014-08-27 42 data, length, true);
^1da177e4 Linus Torvalds 2005-04-16 43 }
^1da177e4 Linus Torvalds 2005-04-16 44
003051451 Ronnie Sahlberg 2018-04-22 45 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server)
3979877e5 Steve French 2006-05-31 46 {
8aa26f3ed Pavel Shilovsky 2012-05-17 47 #ifdef CONFIG_CIFS_DEBUG2
d4e4854fd Pavel Shilovsky 2012-03-23 48 struct smb_hdr *smb = (struct smb_hdr *)buf;
d4e4854fd Pavel Shilovsky 2012-03-23 49
f96637be0 Joe Perches 2013-05-04 50 cifs_dbg(VFS, "Cmd: %d Err: 0x%x Flags: 0x%x Flgs2: 0x%x Mid: %d Pid: %d\n",
3979877e5 Steve French 2006-05-31 51 smb->Command, smb->Status.CifsError,
b6b38f704 Joe Perches 2010-04-21 52 smb->Flags, smb->Flags2, smb->Mid, smb->Pid);
8aa26f3ed Pavel Shilovsky 2012-05-17 55 #endif /* CONFIG_CIFS_DEBUG2 */
3979877e5 Steve French 2006-05-31 56 }
3979877e5 Steve French 2006-05-31 57
:::::: The code at line 54 was first introduced by commit
:::::: 00305145145f62b9eea2508813c9c7a4e078e093 cifs: add server argument to the dump_detail method
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
Thanks,

Steve
Loading...