lkml.org 
[lkml]   [2017]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] NTB: ntb_pp: Add full multi-port NTB API support
Hi Serge,

I love your patch! Yet something to improve:

[auto build test ERROR on v4.15-rc1]
[cannot apply to ntb/ntb-next next-20171201]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Serge-Semin/NTB-ntb_pp-Add-full-multi-port-NTB-API-support/20171204-025207
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All errors (new ones prefixed by >>):

drivers/ntb/test/ntb_pingpong.c: In function 'pp_ping':
>> drivers/ntb/test/ntb_pingpong.c:185:2: error: implicit declaration of function 'ntb_peer_msg_write' [-Werror=implicit-function-declaration]
ntb_peer_msg_write(pp->ntb, pp->out_pidx, 0, count);
^
drivers/ntb/test/ntb_pingpong.c: In function 'pp_pong':
drivers/ntb/test/ntb_pingpong.c:202:13: warning: passing argument 2 of 'ntb_msg_read' makes integer from pointer without a cast
msg_data = ntb_msg_read(pp->ntb, &pidx, 0);
^
In file included from drivers/ntb/test/ntb_pingpong.c:85:0:
include/linux/ntb.h:1473:19: note: expected 'int' but argument is of type 'int *'
static inline int ntb_msg_read(struct ntb_dev *ntb, int midx, int *pidx,
^
drivers/ntb/test/ntb_pingpong.c:202:13: error: too few arguments to function 'ntb_msg_read'
msg_data = ntb_msg_read(pp->ntb, &pidx, 0);
^
In file included from drivers/ntb/test/ntb_pingpong.c:85:0:
include/linux/ntb.h:1473:19: note: declared here
static inline int ntb_msg_read(struct ntb_dev *ntb, int midx, int *pidx,
^
cc1: some warnings being treated as errors

vim +/ntb_peer_msg_write +185 drivers/ntb/test/ntb_pingpong.c

176
177 static void pp_ping(struct pp_ctx *pp)
178 {
179 u32 count;
180
181 count = atomic_read(&pp->count);
182
183 spin_lock(&pp->lock);
184 ntb_peer_spad_write(pp->ntb, pp->out_pidx, 0, count);
> 185 ntb_peer_msg_write(pp->ntb, pp->out_pidx, 0, count);
186
187 dev_dbg(&pp->ntb->dev, "Ping port %d spad %#x, msg %#x\n",
188 ntb_peer_port_number(pp->ntb, pp->out_pidx), count, count);
189
190 ntb_peer_db_set(pp->ntb, pp->out_db);
191 ntb_db_clear_mask(pp->ntb, pp->in_db);
192 spin_unlock(&pp->lock);
193 }
194

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-12-03 21:27    [W:0.106 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site