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:
.config.gz
Description: application/gzip