mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Serge Semin <fancer.lancer@gmail.com>
Cc: kbuild-all@01.org, jdmason@kudzu.us, dave.jiang@intel.com,
	Allen.Hubbe@emc.com, Shyam-sundar.S-k@amd.com,
	Xiangliang.Yu@amd.com, Sergey.Semin@t-platforms.ru,
	linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org,
	Serge Semin <fancer.lancer@gmail.com>
Subject: Re: [PATCH v2] NTB: ntb_tool: Add full multi-port NTB API support
Date: Sun, 3 Dec 2017 17:50:50 +0800	[thread overview]
Message-ID: <201712031747.Gbo6ZXfd%fengguang.wu@intel.com> (raw)
In-Reply-To: <20171130213707.20910-1-fancer.lancer@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3957 bytes --]

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_tool-Add-full-multi-port-NTB-API-support/20171203-171239
config: xtensa-allyesconfig (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_tool.c: In function 'tool_inmsg_read':
   drivers/ntb/test/ntb_tool.c:1276:9: warning: passing argument 2 of 'ntb_msg_read' makes integer from pointer without a cast
     data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx);
            ^
   In file included from drivers/ntb/test/ntb_tool.c:193: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_tool.c:1276:9: warning: passing argument 3 of 'ntb_msg_read' makes pointer from integer without a cast
     data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx);
            ^
   In file included from drivers/ntb/test/ntb_tool.c:193: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_tool.c:1276:9: error: too few arguments to function 'ntb_msg_read'
     data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx);
            ^
   In file included from drivers/ntb/test/ntb_tool.c:193:0:
   include/linux/ntb.h:1473:19: note: declared here
    static inline int ntb_msg_read(struct ntb_dev *ntb, int midx, int *pidx,
                      ^
   drivers/ntb/test/ntb_tool.c: In function 'tool_outmsg_write':
>> drivers/ntb/test/ntb_tool.c:1299:2: error: implicit declaration of function 'ntb_peer_msg_write' [-Werror=implicit-function-declaration]
     ret = ntb_peer_msg_write(msg->tc->ntb, msg->pidx, msg->midx, val);
     ^
   cc1: some warnings being treated as errors

vim +/ntb_peer_msg_write +1299 drivers/ntb/test/ntb_tool.c

  1261	
  1262	/*==============================================================================
  1263	 *                       Messages read/write methods
  1264	 *==============================================================================
  1265	 */
  1266	
  1267	static ssize_t tool_inmsg_read(struct file *filep, char __user *ubuf,
  1268				       size_t size, loff_t *offp)
  1269	{
  1270		struct tool_msg *msg = filep->private_data;
  1271		char buf[32];
  1272		ssize_t pos;
  1273		u32 data;
  1274		int pidx;
  1275	
> 1276		data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx);
  1277	
  1278		pos = scnprintf(buf, sizeof(buf), "0x%08x<-%d\n", data, pidx);
  1279	
  1280		return simple_read_from_buffer(ubuf, size, offp, buf, pos);
  1281	}
  1282	
  1283	static TOOL_FOPS_RDWR(tool_inmsg_fops,
  1284			      tool_inmsg_read,
  1285			      NULL);
  1286	
  1287	static ssize_t tool_outmsg_write(struct file *filep,
  1288					 const char __user *ubuf,
  1289					 size_t size, loff_t *offp)
  1290	{
  1291		struct tool_msg *msg = filep->private_data;
  1292		u32 val;
  1293		int ret;
  1294	
  1295		ret = kstrtou32_from_user(ubuf, size, 0, &val);
  1296		if (ret)
  1297			return ret;
  1298	
> 1299		ret = ntb_peer_msg_write(msg->tc->ntb, msg->pidx, msg->midx, val);
  1300	
  1301		return ret ? : size;
  1302	}
  1303	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52691 bytes --]

      parent reply	other threads:[~2017-12-03  9:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 10:11 [PATCH] " Serge Semin
2017-08-08 18:23 ` Logan Gunthorpe
2017-08-08 18:26 ` Logan Gunthorpe
2017-11-30 21:37 ` [PATCH v2] " Serge Semin
2017-11-30 22:23   ` Logan Gunthorpe
2017-12-03  9:45   ` kbuild test robot
2017-12-03  9:50   ` kbuild test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201712031747.Gbo6ZXfd%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Allen.Hubbe@emc.com \
    --cc=Sergey.Semin@t-platforms.ru \
    --cc=Shyam-sundar.S-k@amd.com \
    --cc=Xiangliang.Yu@amd.com \
    --cc=dave.jiang@intel.com \
    --cc=fancer.lancer@gmail.com \
    --cc=jdmason@kudzu.us \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-ntb@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®