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, 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 3/3] ntb: Test client drivers for asynchronous NTB devices
Date: Mon, 1 Aug 2016 10:49:30 +0800 [thread overview]
Message-ID: <201608011020.ZLgTswM8%fengguang.wu@intel.com> (raw)
In-Reply-To: <1469700079-28377-4-git-send-email-fancer.lancer@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 5539 bytes --]
Hi Serge,
[auto build test WARNING on ntb/ntb-next]
[cannot apply to v4.7 next-20160729]
[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-Asynchronous-NTB-devices-support/20160728-183315
base: https://github.com/jonmason/ntb ntb-next
config: i386-randconfig-x011-08010912 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/ntb/test/ntb_mw_test.c: In function 'mw_set_outmw_addr':
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
dev_err(&ctx->ntb->dev, ## args)
^~~~
>> drivers/ntb/test/ntb_mw_test.c:419:3: note: in expansion of macro 'dev_err_mw'
dev_err_mw(ctx,
^~~~~~~~~~
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
dev_err(&ctx->ntb->dev, ## args)
^~~~
drivers/ntb/test/ntb_mw_test.c:429:3: note: in expansion of macro 'dev_err_mw'
dev_err_mw(ctx, "Failed to set the translated address %p of "
^~~~~~~~~~
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
>> include/linux/device.h:1206:41: note: in expansion of macro 'CAST_DMA_PTR'
dev_printk(KERN_DEBUG, dev, format, ##arg); \
^~~
drivers/ntb/test/ntb_mw_test.c:195:2: note: in expansion of macro 'dev_dbg'
dev_dbg(&ctx->ntb->dev, ## args)
^~~~~~~
drivers/ntb/test/ntb_mw_test.c:438:2: note: in expansion of macro 'dev_dbg_mw'
dev_dbg_mw(ctx, "Outbound memory window %d is initialized with "
^~~~~~~~~~
drivers/ntb/test/ntb_mw_test.c: In function 'mw_dbgfs_outmw_cfg_read':
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
drivers/ntb/test/ntb_mw_test.c:774:30: note: in expansion of macro 'CAST_DMA_PTR'
"DMA address\t\t- 0x%p\n", CAST_DMA_PTR(wrap->dma_addr));
^~~~~~~~~~~~
drivers/ntb/test/ntb_mw_test.c:779:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
"Physycal map address\t- 0x%p\n", (void *)wrap->phys_addr);
^
drivers/ntb/test/ntb_mw_test.c: In function 'mw_dbgfs_inmw_cfg_read':
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
drivers/ntb/test/ntb_mw_test.c:923:30: note: in expansion of macro 'CAST_DMA_PTR'
"DMA address\t\t- 0x%p\n", CAST_DMA_PTR(wrap->dma_addr));
^~~~~~~~~~~~
drivers/ntb/test/ntb_mw_test.c: In function 'mw_create_inmws':
drivers/ntb/test/ntb_mw_test.c:225:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
((void *)(phys_addr_t)(addr))
^
>> drivers/ntb/test/ntb_mw_test.c:189:29: note: in expansion of macro 'CAST_DMA_PTR'
dev_err(&ctx->ntb->dev, ## args)
^~~~
drivers/ntb/test/ntb_mw_test.c:1204:4: note: in expansion of macro 'dev_err_mw'
dev_err_mw(ctx, "DMA address %p of inbound mw %d isn't "
^~~~~~~~~~
vim +/CAST_DMA_PTR +189 drivers/ntb/test/ntb_mw_test.c
183 }
184
185 /*
186 * Wrapper dev_err/dev_warn/dev_info/dev_dbg macros
187 */
188 #define dev_err_mw(ctx, args...) \
> 189 dev_err(&ctx->ntb->dev, ## args)
190 #define dev_warn_mw(ctx, args...) \
191 dev_warn(&ctx->ntb->dev, ## args)
192 #define dev_info_mw(ctx, args...) \
193 dev_info(&ctx->ntb->dev, ## args)
194 #define dev_dbg_mw(ctx, args...) \
195 dev_dbg(&ctx->ntb->dev, ## args)
196
197 /*
198 * Some common constant used in the driver for better readability:
199 * @ON: Enable something
200 * @OFF: Disable something
201 * @SUCCESS: Success of a function execution
202 * @MIN_MW_CNT: Minimum memory windows count
203 * @MAX_MW_CNT: Maximum memory windows count
204 */
205 #define ON ((u32)0x1)
206 #define OFF ((u32)0x0)
207 #define SUCCESS 0
208 #define MIN_MW_CNT ((unsigned char)1)
209 #define MAX_MW_CNT ((unsigned char)255)
210
211 /*
212 * Shared data converter to support the different CPU architectures
213 */
214 #define to_sh32(data) \
215 cpu_to_le32((data))
216 #define from_sh32(data) \
217 le32_to_cpu((data))
218
219 /*
220 * Cast DMA address to real address pointer
221 *
222 * NOTE It's used in the printf's to get rid of warnings
223 */
224 #define CAST_DMA_PTR(addr) \
> 225 ((void *)(phys_addr_t)(addr))
226
227 /*
228 * Module parameters:
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 28404 bytes --]
prev parent reply other threads:[~2016-08-01 2:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 19:50 [PATCH 0/3] ntb: Asynchronous NTB devices support Serge Semin
2016-07-26 19:50 ` [PATCH 1/3] ntb: Add asynchronous devices support to NTB-bus interface Serge Semin
2016-07-26 19:50 ` [PATCH 2/3] ntb: IDT 89HPES*NT* PCIe-switches NTB device driver Serge Semin
2016-07-27 16:29 ` kbuild test robot
2016-07-26 19:50 ` [PATCH 3/3] ntb: Test client drivers for asynchronous NTB devices Serge Semin
2016-07-28 12:58 ` kbuild test robot
2016-07-28 10:01 ` [PATCH v2 0/3] ntb: Asynchronous NTB devices support Serge Semin
2016-07-28 10:01 ` [PATCH v2 1/3] ntb: Add asynchronous devices support to NTB-bus interface Serge Semin
2016-07-28 10:01 ` [PATCH v2 2/3] ntb: IDT 89HPES*NT* PCIe-switches NTB device driver Serge Semin
2016-07-28 10:01 ` [PATCH v2 3/3] ntb: Test client drivers for asynchronous NTB devices Serge Semin
2016-08-01 2:49 ` 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=201608011020.ZLgTswM8%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Allen.Hubbe@emc.com \
--cc=Sergey.Semin@t-platforms.ru \
--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®