[cifs:for-next 2/13] fs/cifs/cifs_debug.c:87:4: error: too few arguments to function 'cifs_dump_detail'

kbuild test robot lkp at intel.com
Sun May 20 07:36:17 UTC 2018


tree:   git://git.samba.org/sfrench/cifs-2.6.git for-next
head:   0527c9033ad8574ffc04a68328eb67ad9455eb2a
commit: 1032101bd095f8b49dcf100fe763c4b6c1e6f7b0 [2/13] cifs: add server argument to the dump_detail method
config: x86_64-randconfig-x012-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 1032101bd095f8b49dcf100fe763c4b6c1e6f7b0
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the cifs/for-next HEAD 0527c9033ad8574ffc04a68328eb67ad9455eb2a builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   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)
         ^~~~~~~~~~~~~~~~
--
   fs/cifs/connect.c: In function 'cifs_demultiplex_thread':
>> fs/cifs/connect.c:954:5: error: too few arguments to function 'server->ops->dump_detail'
        server->ops->dump_detail(buf);
        ^~~~~~

vim +/cifs_dump_detail +87 fs/cifs/cifs_debug.c

3979877e5 Steve French    2006-05-31  57  
3979877e5 Steve French    2006-05-31  58  void cifs_dump_mids(struct TCP_Server_Info *server)
3979877e5 Steve French    2006-05-31  59  {
8aa26f3ed Pavel Shilovsky 2012-05-17  60  #ifdef CONFIG_CIFS_DEBUG2
3979877e5 Steve French    2006-05-31  61  	struct list_head *tmp;
3979877e5 Steve French    2006-05-31  62  	struct mid_q_entry *mid_entry;
3979877e5 Steve French    2006-05-31  63  
3979877e5 Steve French    2006-05-31  64  	if (server == NULL)
3979877e5 Steve French    2006-05-31  65  		return;
3979877e5 Steve French    2006-05-31  66  
f96637be0 Joe Perches     2013-05-04  67  	cifs_dbg(VFS, "Dump pending requests:\n");
3979877e5 Steve French    2006-05-31  68  	spin_lock(&GlobalMid_Lock);
3979877e5 Steve French    2006-05-31  69  	list_for_each(tmp, &server->pending_mid_q) {
3979877e5 Steve French    2006-05-31  70  		mid_entry = list_entry(tmp, struct mid_q_entry, qhead);
f96637be0 Joe Perches     2013-05-04  71  		cifs_dbg(VFS, "State: %d Cmd: %d Pid: %d Cbdata: %p Mid %llu\n",
7c9421e1a Pavel Shilovsky 2012-03-23  72  			 mid_entry->mid_state,
7c9421e1a Pavel Shilovsky 2012-03-23  73  			 le16_to_cpu(mid_entry->command),
3979877e5 Steve French    2006-05-31  74  			 mid_entry->pid,
2b84a36c5 Jeff Layton     2011-01-11  75  			 mid_entry->callback_data,
b6b38f704 Joe Perches     2010-04-21  76  			 mid_entry->mid);
3979877e5 Steve French    2006-05-31  77  #ifdef CONFIG_CIFS_STATS2
f96637be0 Joe Perches     2013-05-04  78  		cifs_dbg(VFS, "IsLarge: %d buf: %p time rcv: %ld now: %ld\n",
7c9421e1a Pavel Shilovsky 2012-03-23  79  			 mid_entry->large_buf,
3979877e5 Steve French    2006-05-31  80  			 mid_entry->resp_buf,
3979877e5 Steve French    2006-05-31  81  			 mid_entry->when_received,
b6b38f704 Joe Perches     2010-04-21  82  			 jiffies);
3979877e5 Steve French    2006-05-31  83  #endif /* STATS2 */
f96637be0 Joe Perches     2013-05-04  84  		cifs_dbg(VFS, "IsMult: %d IsEnd: %d\n",
f96637be0 Joe Perches     2013-05-04  85  			 mid_entry->multiRsp, mid_entry->multiEnd);
3979877e5 Steve French    2006-05-31  86  		if (mid_entry->resp_buf) {
3979877e5 Steve French    2006-05-31 @87  			cifs_dump_detail(mid_entry->resp_buf);
3979877e5 Steve French    2006-05-31  88  			cifs_dump_mem("existing buf: ",
ad7a2926b Steve French    2008-02-07  89  				mid_entry->resp_buf, 62);
3979877e5 Steve French    2006-05-31  90  		}
3979877e5 Steve French    2006-05-31  91  	}
3979877e5 Steve French    2006-05-31  92  	spin_unlock(&GlobalMid_Lock);
3979877e5 Steve French    2006-05-31  93  #endif /* CONFIG_CIFS_DEBUG2 */
8aa26f3ed Pavel Shilovsky 2012-05-17  94  }
3979877e5 Steve French    2006-05-31  95  

:::::: The code at line 87 was first introduced by commit
:::::: 3979877e5606ecc58c5a31bd0078c6d80ba9cbe7 [CIFS] Support for setting up SMB sessions to legacy lanman servers

:::::: TO: Steve French <sfrench at us.ibm.com>
:::::: CC: Steve French <sfrench at us.ibm.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33018 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180520/42fa035d/config.gz>


More information about the samba-technical mailing list