From: kbuild test robot <fengguang.wu@intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: kbuild-all@01.org, linux-m68k@lists.linux-m68k.org
Subject: [m68k:printk 6/23] arch/m68k/include/asm/dma.h:373:23: error: 'dmabp' undeclared
Date: Fri, 9 Dec 2016 06:02:21 +0800 [thread overview]
Message-ID: <201612090619.fcgMCy8S%fengguang.wu@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4453 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git printk
head: 9d1d9d1ffdacef304e12669e3695b996fe357303
commit: a364f78f057a9066823e2e433ac138c93eea65ad [6/23] m68k/coldfire: Modernize printing of kernel messages
config: m68k-m5272c3_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a364f78f057a9066823e2e433ac138c93eea65ad
# save the attached .config to linux build tree
make.cross ARCH=m68k
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/module.h:9,
from init/main.c:15:
arch/m68k/include/asm/dma.h: In function 'set_dma_mode':
>> arch/m68k/include/asm/dma.h:373:23: error: 'dmabp' undeclared (first use in this function)
&dmalp[MCFDMA_DMR], dmabp[MCFDMA_DMR], &dmawp[MCFDMA_DIR],
^
include/linux/printk.h:121:18: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^
>> arch/m68k/include/asm/dma.h:372:3: note: in expansion of macro 'pr_dma'
pr_dma("%s(%u): dmanr=%d DMR[%p]=%x DIR[%p]=%x\n", __FILE__, __LINE__, dmanr,
^
arch/m68k/include/asm/dma.h:373:23: note: each undeclared identifier is reported only once for each function it appears in
&dmalp[MCFDMA_DMR], dmabp[MCFDMA_DMR], &dmawp[MCFDMA_DIR],
^
include/linux/printk.h:121:18: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^
>> arch/m68k/include/asm/dma.h:372:3: note: in expansion of macro 'pr_dma'
pr_dma("%s(%u): dmanr=%d DMR[%p]=%x DIR[%p]=%x\n", __FILE__, __LINE__, dmanr,
^
arch/m68k/include/asm/dma.h: In function 'set_dma_addr':
>> arch/m68k/include/asm/dma.h:400:21: error: 'dmawp' undeclared (first use in this function)
__LINE__, dmanr, &dmawp[MCFDMA_DMR], dmawp[MCFDMA_DMR],
^
include/linux/printk.h:121:18: note: in definition of macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
^
arch/m68k/include/asm/dma.h:399:3: note: in expansion of macro 'pr_dma'
pr_dma("%s(%u): dmanr=%d DMR[%p]=%x SAR[%p]=%08x DAR[%p]=%08x\n", __FILE__,
^
vim +/dmabp +373 arch/m68k/include/asm/dma.h
366 /* burst, 32 bit, 16 bit or 8 bit transfers are separately configurable on the MCF5272 */
367 (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_DSTS_OFF) |
368 (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_SRCS_OFF);
369
370 dmawp[MCFDMA_DIR] |= MCFDMA_DIR_ASCEN; /* Enable completion interrupts */
371
> 372 pr_dma("%s(%u): dmanr=%d DMR[%p]=%x DIR[%p]=%x\n", __FILE__, __LINE__, dmanr,
> 373 &dmalp[MCFDMA_DMR], dmabp[MCFDMA_DMR], &dmawp[MCFDMA_DIR],
374 dmawp[MCFDMA_DIR]);
375 }
376
377 /* Set transfer address for specific DMA channel */
378 static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
379 {
380 volatile unsigned int *dmalp;
381
382 pr_dma("set_dma_addr(dmanr=%d,a=%x)\n", dmanr, a);
383
384 dmalp = (unsigned int *) dma_base_addr[dmanr];
385
386 /* Determine which address registers are used for memory/device accesses */
387 if (dmalp[MCFDMA_DMR] & MCFDMA_DMR_SRCM) {
388 /* Source incrementing, must be memory */
389 dmalp[MCFDMA_DSAR] = a;
390 /* Set dest address, must be device */
391 dmalp[MCFDMA_DDAR] = dma_device_address[dmanr];
392 } else {
393 /* Destination incrementing, must be memory */
394 dmalp[MCFDMA_DDAR] = a;
395 /* Set source address, must be device */
396 dmalp[MCFDMA_DSAR] = dma_device_address[dmanr];
397 }
398
399 pr_dma("%s(%u): dmanr=%d DMR[%p]=%x SAR[%p]=%08x DAR[%p]=%08x\n", __FILE__,
> 400 __LINE__, dmanr, &dmawp[MCFDMA_DMR], dmawp[MCFDMA_DMR],
401 &dmalp[MCFDMA_DSAR], dmalp[MCFDMA_DSAR], &dmalp[MCFDMA_DDAR],
402 dmalp[MCFDMA_DDAR]);
403 }
---
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: 7736 bytes --]
reply other threads:[~2016-12-08 22:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=201612090619.fcgMCy8S%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=geert@linux-m68k.org \
--cc=kbuild-all@01.org \
--cc=linux-m68k@lists.linux-m68k.org \
/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