[cifs:for-next 29/29] fs//cifs/transport.c:120:3: error: implicit declaration of function 'trace_slow_rsp'
kbuild test robot
lkp at intel.com
Wed Aug 1 22:51:51 UTC 2018
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: 29ce9f49d423152ce2defa12b7d558d5f6245eb0
commit: 29ce9f49d423152ce2defa12b7d558d5f6245eb0 [29/29] smb3: add tracepoint for slow responses
config: openrisc-allyesconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 29ce9f49d423152ce2defa12b7d558d5f6245eb0
# save the attached .config to linux build tree
make.cross ARCH=openrisc
All errors (new ones prefixed by >>):
fs//cifs/transport.c: In function 'DeleteMidQEntry':
>> fs//cifs/transport.c:120:3: error: implicit declaration of function 'trace_slow_rsp' [-Werror=implicit-function-declaration]
trace_slow_rsp(le16_to_cpu(midEntry->command), midEntry->mid,
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/trace_slow_rsp +120 fs//cifs/transport.c
100
101 void
102 DeleteMidQEntry(struct mid_q_entry *midEntry)
103 {
104 #ifdef CONFIG_CIFS_STATS2
105 __le16 command = midEntry->server->vals->lock_cmd;
106 unsigned long now;
107 #endif
108 midEntry->mid_state = MID_FREE;
109 atomic_dec(&midCount);
110 if (midEntry->large_buf)
111 cifs_buf_release(midEntry->resp_buf);
112 else
113 cifs_small_buf_release(midEntry->resp_buf);
114 #ifdef CONFIG_CIFS_STATS2
115 now = jiffies;
116 /* commands taking longer than one second are indications that
117 something is wrong, unless it is quite a slow link or server */
118 if (time_after(now, midEntry->when_alloc + HZ) &&
119 (midEntry->command != command)) {
> 120 trace_slow_rsp(le16_to_cpu(midEntry->command), midEntry->mid,
121 midEntry->pid,
122 midEntry->when_sent, midEntry->when_received);
123 if (cifsFYI & CIFS_TIMER) {
124 pr_debug(" CIFS slow rsp: cmd %d mid %llu",
125 midEntry->command, midEntry->mid);
126 pr_info(" A: 0x%lx S: 0x%lx R: 0x%lx\n",
127 now - midEntry->when_alloc,
128 now - midEntry->when_sent,
129 now - midEntry->when_received);
130 }
131 }
132 #endif
133 cifs_mid_q_entry_release(midEntry);
134 }
135
---
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: 45468 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180802/4893d48e/config.gz>
More information about the samba-technical
mailing list