* [balbi-usb:testing/next 34/43] drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
@ 2017-10-17 9:16 kbuild test robot
[not found] ` <201710171728.UXKlCAtU%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2017-10-17 9:16 UTC (permalink / raw)
To: Chunfeng Yun
Cc: kbuild-all-JC7UmRfGjtg, linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA, Felipe Balbi
[-- Attachment #1: Type: text/plain, Size: 4496 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head: 39325b9a22301178ef684effade7c8bce04b5246
commit: 8706b37e87e58cd4d4dea593767d34447321610a [34/43] usb: mtu3: support 36-bit DMA address
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
git checkout 8706b37e87e58cd4d4dea593767d34447321610a
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:329:0,
from include/linux/kernel.h:13,
from include/asm-generic/bug.h:15,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:4,
from include/linux/scatterlist.h:6,
from include/linux/dmapool.h:14,
from drivers/usb/mtu3/mtu3_qmu.c:30:
drivers/usb/mtu3/mtu3_qmu.c: In function 'mtu3_prepare_tx_gpd':
include/linux/dynamic_debug.h:74:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1351:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
>> drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
^
drivers/usb/mtu3/mtu3_qmu.c: In function 'mtu3_prepare_rx_gpd':
include/linux/dynamic_debug.h:74:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
static struct _ddebug __aligned(8) \
^
include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
^
include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
^
include/linux/device.h:1351:2: note: in expansion of macro 'dynamic_dev_dbg'
dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
^
drivers/usb/mtu3/mtu3_qmu.c:300:2: note: in expansion of macro 'dev_dbg'
dev_dbg(mep->mtu->dev, "RX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
^
vim +/dev_dbg +261 drivers/usb/mtu3/mtu3_qmu.c
240
241 static int mtu3_prepare_tx_gpd(struct mtu3_ep *mep, struct mtu3_request *mreq)
242 {
243 struct qmu_gpd *enq;
244 struct mtu3_gpd_ring *ring = &mep->gpd_ring;
245 struct qmu_gpd *gpd = ring->enqueue;
246 struct usb_request *req = &mreq->request;
247 dma_addr_t enq_dma;
248 u16 ext_addr;
249
250 /* set all fields to zero as default value */
251 memset(gpd, 0, sizeof(*gpd));
252
253 gpd->buffer = cpu_to_le32(lower_32_bits(req->dma));
254 ext_addr = GPD_EXT_BUF(upper_32_bits(req->dma));
255 gpd->buf_len = cpu_to_le16(req->length);
256 gpd->flag |= GPD_FLAGS_IOC;
257
258 /* get the next GPD */
259 enq = advance_enq_gpd(ring);
260 enq_dma = gpd_virt_to_dma(ring, enq);
> 261 dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
262 mep->epnum, gpd, enq, enq_dma);
263
264 enq->flag &= ~GPD_FLAGS_HWO;
265 gpd->next_gpd = cpu_to_le32(lower_32_bits(enq_dma));
266 ext_addr |= GPD_EXT_NGP(upper_32_bits(enq_dma));
267 gpd->tx_ext_addr = cpu_to_le16(ext_addr);
268
269 if (req->zero)
270 gpd->ext_flag |= GPD_EXT_FLAG_ZLP;
271
272 gpd->chksum = qmu_calc_checksum((u8 *)gpd);
273 gpd->flag |= GPD_FLAGS_HWO;
274
275 mreq->gpd = gpd;
276
277 return 0;
278 }
279
---
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: 51615 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 34/43] drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
[not found] ` <201710171728.UXKlCAtU%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2017-10-17 9:37 ` Felipe Balbi
[not found] ` <87infejes0.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Felipe Balbi @ 2017-10-17 9:37 UTC (permalink / raw)
To: kbuild test robot, Chunfeng Yun
Cc: kbuild-all-JC7UmRfGjtg, linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 2279 bytes --]
Hi,
kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> writes:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
> head: 39325b9a22301178ef684effade7c8bce04b5246
> commit: 8706b37e87e58cd4d4dea593767d34447321610a [34/43] usb: mtu3: support 36-bit DMA address
> 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
> git checkout 8706b37e87e58cd4d4dea593767d34447321610a
> # save the attached .config to linux build tree
> make.cross ARCH=xtensa
>
> All warnings (new ones prefixed by >>):
>
> In file included from include/linux/printk.h:329:0,
> from include/linux/kernel.h:13,
> from include/asm-generic/bug.h:15,
> from ./arch/xtensa/include/generated/asm/bug.h:1,
> from include/linux/bug.h:4,
> from include/linux/scatterlist.h:6,
> from include/linux/dmapool.h:14,
> from drivers/usb/mtu3/mtu3_qmu.c:30:
> drivers/usb/mtu3/mtu3_qmu.c: In function 'mtu3_prepare_tx_gpd':
> include/linux/dynamic_debug.h:74:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
> static struct _ddebug __aligned(8) \
> ^
> include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
> DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
> ^
> include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
> DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
> ^
> include/linux/device.h:1351:2: note: in expansion of macro 'dynamic_dev_dbg'
> dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
> ^
>>> drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
> dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
> ^
fixed it myself. Changed to %pad.
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 34/43] drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
[not found] ` <87infejes0.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2017-10-17 9:47 ` Chunfeng Yun
2017-10-17 10:07 ` Chunfeng Yun
1 sibling, 0 replies; 4+ messages in thread
From: Chunfeng Yun @ 2017-10-17 9:47 UTC (permalink / raw)
To: Felipe Balbi
Cc: kbuild test robot, kbuild-all-JC7UmRfGjtg,
linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
On Tue, 2017-10-17 at 12:37 +0300, Felipe Balbi wrote:
> Hi,
>
> kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> writes:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
> > head: 39325b9a22301178ef684effade7c8bce04b5246
> > commit: 8706b37e87e58cd4d4dea593767d34447321610a [34/43] usb: mtu3: support 36-bit DMA address
> > 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
> > git checkout 8706b37e87e58cd4d4dea593767d34447321610a
> > # save the attached .config to linux build tree
> > make.cross ARCH=xtensa
> >
> > All warnings (new ones prefixed by >>):
> >
> > In file included from include/linux/printk.h:329:0,
> > from include/linux/kernel.h:13,
> > from include/asm-generic/bug.h:15,
> > from ./arch/xtensa/include/generated/asm/bug.h:1,
> > from include/linux/bug.h:4,
> > from include/linux/scatterlist.h:6,
> > from include/linux/dmapool.h:14,
> > from drivers/usb/mtu3/mtu3_qmu.c:30:
> > drivers/usb/mtu3/mtu3_qmu.c: In function 'mtu3_prepare_tx_gpd':
> > include/linux/dynamic_debug.h:74:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
> > static struct _ddebug __aligned(8) \
> > ^
> > include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
> > DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
> > ^
> > include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
> > DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
> > ^
> > include/linux/device.h:1351:2: note: in expansion of macro 'dynamic_dev_dbg'
> > dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
> > ^
> >>> drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
> > dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
> > ^
>
> fixed it myself. Changed to %pad.
Thank you
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [balbi-usb:testing/next 34/43] drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
[not found] ` <87infejes0.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-17 9:47 ` Chunfeng Yun
@ 2017-10-17 10:07 ` Chunfeng Yun
1 sibling, 0 replies; 4+ messages in thread
From: Chunfeng Yun @ 2017-10-17 10:07 UTC (permalink / raw)
To: Felipe Balbi
Cc: kbuild test robot, kbuild-all-JC7UmRfGjtg,
linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-omap-u79uwXL29TY76Z2rM5mHXA
On Tue, 2017-10-17 at 12:37 +0300, Felipe Balbi wrote:
> Hi,
>
> kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> writes:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
> > head: 39325b9a22301178ef684effade7c8bce04b5246
> > commit: 8706b37e87e58cd4d4dea593767d34447321610a [34/43] usb: mtu3: support 36-bit DMA address
> > 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
> > git checkout 8706b37e87e58cd4d4dea593767d34447321610a
> > # save the attached .config to linux build tree
> > make.cross ARCH=xtensa
> >
> > All warnings (new ones prefixed by >>):
> >
> > In file included from include/linux/printk.h:329:0,
> > from include/linux/kernel.h:13,
> > from include/asm-generic/bug.h:15,
> > from ./arch/xtensa/include/generated/asm/bug.h:1,
> > from include/linux/bug.h:4,
> > from include/linux/scatterlist.h:6,
> > from include/linux/dmapool.h:14,
> > from drivers/usb/mtu3/mtu3_qmu.c:30:
> > drivers/usb/mtu3/mtu3_qmu.c: In function 'mtu3_prepare_tx_gpd':
> > include/linux/dynamic_debug.h:74:16: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
> > static struct _ddebug __aligned(8) \
> > ^
> > include/linux/dynamic_debug.h:110:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
> > DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, 0, 0)
> > ^
> > include/linux/dynamic_debug.h:132:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
> > DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \
> > ^
> > include/linux/device.h:1351:2: note: in expansion of macro 'dynamic_dev_dbg'
> > dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
> > ^
> >>> drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg'
> > dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%llx\n",
> > ^
>
> fixed it myself. Changed to %pad.
> 261 dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p,
qdma=%llx\n",
262 mep->epnum, gpd, enq, enq_dma);
^
Need add '&' before enq_dam ?
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-17 10:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 9:16 [balbi-usb:testing/next 34/43] drivers/usb/mtu3/mtu3_qmu.c:261:2: note: in expansion of macro 'dev_dbg' kbuild test robot
[not found] ` <201710171728.UXKlCAtU%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-10-17 9:37 ` Felipe Balbi
[not found] ` <87infejes0.fsf-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2017-10-17 9:47 ` Chunfeng Yun
2017-10-17 10:07 ` Chunfeng Yun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).