Issuing a stack dump feels ergonomically wrong when entering due to NMI.
Entering due to NMI is a normally reaction to a user request, either the
NMI button on a server or a "magic knock" on a UART. Therefore the
backtrace behaviour on entry due to NMI should be like SysRq-g (no stack
dump) rather than like oops.
Note also that the stack dump does not offer any information that
cannot be trivial retrieved using the 'bt' command.
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
Cc: Jason Wessel <jason.wessel(a)windriver.com>
Cc: Mike Travis <travis(a)sgi.com>
Cc: Ingo Molnar <mingo(a)redhat.com>
Cc: kgdb-bugreport(a)lists.sourceforge.net
---
kernel/debug/kdb/kdb_main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
index 49f2425..6d19905 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
@@ -1207,7 +1207,6 @@ static int kdb_local(kdb_reason_t reason, int error, struct pt_regs *regs,
kdb_printf("due to NonMaskable Interrupt @ "
kdb_machreg_fmt "\n",
instruction_pointer(regs));
- kdb_dumpregs(regs);
break;
case KDB_REASON_SSTEP:
case KDB_REASON_BREAK:
--
1.9.3
Currently when kdb traps printk messages then the log level prefix
does not get stripped off before the message is issued to the various
I/O handlers supported by kdb. This results in annoying visual noise
and problems with grepping for ^.
This patch addresses the problem by stripping log levels from messages
before they are issued to the I/O handlers.
printk(), which is used as an I/O handler for logging purposes, is
handled as a special case; if the caller provided a log level then this
will be preserved.
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
Cc: Jason Wessel <jason.wessel(a)windriver.com>
Cc: Mike Travis <travis(a)sgi.com>
Cc: Ingo Molnar <mingo(a)redhat.com>
Cc: Andrew Morton <akpm(a)linux-foundation.org>
---
kernel/debug/kdb/kdb_io.c | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c
index 7c70812..381f297 100644
--- a/kernel/debug/kdb/kdb_io.c
+++ b/kernel/debug/kdb/kdb_io.c
@@ -691,19 +691,22 @@ kdb_printit:
* Write to all consoles.
*/
retlen = strlen(kdb_buffer);
+ cp = kdb_buffer;
+ if (cp[0] == KERN_SOH_ASCII && cp[1] != '\0')
+ cp += 2;
if (!dbg_kdb_mode && kgdb_connected) {
- gdbstub_msg_write(kdb_buffer, retlen);
+ gdbstub_msg_write(cp, retlen - (cp - kdb_buffer));
} else {
if (dbg_io_ops && !dbg_io_ops->is_console) {
- len = retlen;
- cp = kdb_buffer;
+ len = retlen - (cp - kdb_buffer);
+ cp2 = cp;
while (len--) {
- dbg_io_ops->write_char(*cp);
- cp++;
+ dbg_io_ops->write_char(*cp2);
+ cp2++;
}
}
while (c) {
- c->write(c, kdb_buffer, retlen);
+ c->write(c, cp, retlen - (cp - kdb_buffer));
touch_nmi_watchdog();
c = c->next;
}
@@ -711,7 +714,10 @@ kdb_printit:
if (logging) {
saved_loglevel = console_loglevel;
console_loglevel = CONSOLE_LOGLEVEL_SILENT;
- printk(KERN_INFO "%s", kdb_buffer);
+ if (cp == kdb_buffer)
+ printk(KERN_INFO "%s", kdb_buffer);
+ else
+ printk("%s", kdb_buffer);
}
if (KDB_STATE(PAGER)) {
--
1.9.3
Tree/Branch: next-20150107
Git describe: next-20150107
Commit: 7e3619a6de Add linux-next specific files for 20150107
Build Time: 18 min 18 sec
Passed: 4 / 8 ( 50.00 %)
Failed: 4 / 8 ( 50.00 %)
Errors: 10
Warnings: 34
Section Mismatches: 0
Failed defconfigs:
arm64-allnoconfig
arm64-allmodconfig
arm-allmodconfig
arm64-defconfig
Errors:
arm64-allnoconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
arm64-allmodconfig
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
arm-allmodconfig
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
arm64-defconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
15 warnings 0 mismatches : arm64-allmodconfig
3 warnings 0 mismatches : arm-multi_v7_defconfig
20 warnings 0 mismatches : arm-allmodconfig
1 warnings 0 mismatches : arm-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 10
18 ../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
3 ../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
1 ../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
1 ../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
Warnings Summary: 34
4 <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
2 ../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
2 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
2 ../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
2 ../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
1 ../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
1 ../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
1 ../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
1 ../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : FAIL, 9 errors, 0 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 24 errors, 15 warnings, 0 section mismatches
Errors:
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 1 errors, 20 warnings, 0 section mismatches
Errors:
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm64-defconfig : FAIL, 19 errors, 3 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
x86_64-defconfig
I tried to verify kgdb in vanilla kernel on fast model, but it seems that
the single stepping with kgdb doesn't work correctly since its first
appearance at v3.15.
On v3.15, 'stepi' command after breaking the kernel at some breakpoint
steps forward to the next instruction, but the succeeding 'stepi' never
goes beyond that.
On v3.16, 'stepi' moves forward and stops at the next instruction just
after enable_dbg in el1_dbg, and never goes beyond that. This variance of
behavior seems to come in with the following patch in v3.16:
commit 2a2830703a23 ("arm64: debug: avoid accessing mdscr_el1 on fault
paths where possible")
This patch
(1) moves kgdb_disable_single_step() from 'c' command handling to single
step handler.
This makes sure that single stepping gets effective at every 's' command.
Please note that, under the current implementation, single step bit in
spsr, which is cleared by the first single stepping, will not be set
again for the consecutive 's' commands because single step bit in mdscr
is still kept on (that is, kernel_active_single_step() in
kgdb_arch_handle_exception() is true).
(2) re-implements kgdb_roundup_cpus() because the current implementation
enabled interrupts naively. See below.
(3) removes 'enable_dbg' in el1_dbg.
Single step bit in mdscr is turned on in do_handle_exception()->
kgdb_handle_expection() before returning to debugged context, and if
debug exception is enabled in el1_dbg, we will see unexpected single-
stepping in el1_dbg.
Since v3.18, the following patch does the same:
commit 1059c6bf8534 ("arm64: debug: don't re-enable debug exceptions
on return from el1_dbg)
(4) masks interrupts while single-stepping one instruction.
If an interrupt is caught during processing a single-stepping, debug
exception is unintentionally enabled by el1_irq's 'enable_dbg' before
returning to debugged context.
Thus, like in (2), we will see unexpected single-stepping in el1_irq.
Basically (1) and (2) are for v3.15, (3) and (4) for v3.1[67].
* issue fixed by (2):
Without (2), we would see another problem if a breakpoint is set at
interrupt-sensible places, like gic_handle_irq():
KGDB: re-enter error: breakpoint removed ffffffc000081258
------------[ cut here ]------------
WARNING: CPU: 0 PID: 650 at kernel/debug/debug_core.c:435
kgdb_handle_exception+0x1dc/0x1f4()
Modules linked in:
CPU: 0 PID: 650 Comm: sh Not tainted 3.17.0-rc2+ #177
Call trace:
[<ffffffc000087fac>] dump_backtrace+0x0/0x130
[<ffffffc0000880ec>] show_stack+0x10/0x1c
[<ffffffc0004d683c>] dump_stack+0x74/0xb8
[<ffffffc0000ab824>] warn_slowpath_common+0x8c/0xb4
[<ffffffc0000ab90c>] warn_slowpath_null+0x14/0x20
[<ffffffc000121bfc>] kgdb_handle_exception+0x1d8/0x1f4
[<ffffffc000092ffc>] kgdb_brk_fn+0x18/0x28
[<ffffffc0000821c8>] brk_handler+0x9c/0xe8
[<ffffffc0000811e8>] do_debug_exception+0x3c/0xac
Exception stack(0xffffffc07e027650 to 0xffffffc07e027770)
...
[<ffffffc000083cac>] el1_dbg+0x14/0x68
[<ffffffc00012178c>] kgdb_cpu_enter+0x464/0x5c0
[<ffffffc000121bb4>] kgdb_handle_exception+0x190/0x1f4
[<ffffffc000092ffc>] kgdb_brk_fn+0x18/0x28
[<ffffffc0000821c8>] brk_handler+0x9c/0xe8
[<ffffffc0000811e8>] do_debug_exception+0x3c/0xac
Exception stack(0xffffffc07e027ac0 to 0xffffffc07e027be0)
...
[<ffffffc000083cac>] el1_dbg+0x14/0x68
[<ffffffc00032e4b4>] __handle_sysrq+0x11c/0x190
[<ffffffc00032e93c>] write_sysrq_trigger+0x4c/0x60
[<ffffffc0001e7d58>] proc_reg_write+0x54/0x84
[<ffffffc000192fa4>] vfs_write+0x98/0x1c8
[<ffffffc0001939b0>] SyS_write+0x40/0xa0
Once some interrupt occurs, a breakpoint at gic_handle_irq() triggers kgdb.
Kgdb then calls kgdb_roundup_cpus() to sync with other cpus.
Current kgdb_roundup_cpus() unmasks interrupts temporarily to
use smp_call_function().
This eventually allows another interrupt to occur and likely results in
hitting a breakpoint at gic_handle_irq() again since debug exception is
always enabled in el1_irq.
We can avoid this issue by specifying "nokgdbroundup" in kernel parameter,
but this will also leave other cpus be in unknown state in terms of kgdb,
and may result in interfering with kgdb activity.
Signed-off-by: AKASHI Takahiro <takahiro.akashi(a)linaro.org>
---
arch/arm64/kernel/kgdb.c | 60 +++++++++++++++++++++++++++++++++++-----------
1 file changed, 46 insertions(+), 14 deletions(-)
diff --git a/arch/arm64/kernel/kgdb.c b/arch/arm64/kernel/kgdb.c
index a0d10c5..81b5910 100644
--- a/arch/arm64/kernel/kgdb.c
+++ b/arch/arm64/kernel/kgdb.c
@@ -19,9 +19,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/cpumask.h>
#include <linux/irq.h>
+#include <linux/irq_work.h>
#include <linux/kdebug.h>
#include <linux/kgdb.h>
+#include <linux/percpu.h>
+#include <asm/ptrace.h>
#include <asm/traps.h>
struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = {
@@ -95,6 +99,9 @@ struct dbg_reg_def_t dbg_reg_def[DBG_MAX_REG_NUM] = {
{ "fpcr", 4, -1 },
};
+static DEFINE_PER_CPU(unsigned int, kgdb_pstate);
+static DEFINE_PER_CPU(struct irq_work, kgdb_irq_work);
+
char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
{
if (regno >= DBG_MAX_REG_NUM || regno < 0)
@@ -176,18 +183,14 @@ int kgdb_arch_handle_exception(int exception_vector, int signo,
* over and over again.
*/
kgdb_arch_update_addr(linux_regs, remcom_in_buffer);
- atomic_set(&kgdb_cpu_doing_single_step, -1);
- kgdb_single_step = 0;
-
- /*
- * Received continue command, disable single step
- */
- if (kernel_active_single_step())
- kernel_disable_single_step();
err = 0;
break;
case 's':
+ /* mask interrupts while single stepping */
+ __this_cpu_write(kgdb_pstate, linux_regs->pstate);
+ linux_regs->pstate |= PSR_I_BIT;
+
/*
* Update step address value with address passed
* with step packet.
@@ -198,8 +201,6 @@ int kgdb_arch_handle_exception(int exception_vector, int signo,
*/
kgdb_arch_update_addr(linux_regs, remcom_in_buffer);
atomic_set(&kgdb_cpu_doing_single_step, raw_smp_processor_id());
- kgdb_single_step = 1;
-
/*
* Enable single step handling
*/
@@ -229,6 +230,18 @@ static int kgdb_compiled_brk_fn(struct pt_regs *regs, unsigned int esr)
static int kgdb_step_brk_fn(struct pt_regs *regs, unsigned int esr)
{
+ unsigned int pstate;
+
+ kernel_disable_single_step();
+ atomic_set(&kgdb_cpu_doing_single_step, -1);
+
+ /* restore interrupt mask status */
+ pstate = __this_cpu_read(kgdb_pstate);
+ if (pstate & PSR_I_BIT)
+ regs->pstate |= PSR_I_BIT;
+ else
+ regs->pstate &= ~PSR_I_BIT;
+
kgdb_handle_exception(1, SIGTRAP, 0, regs);
return 0;
}
@@ -249,16 +262,27 @@ static struct step_hook kgdb_step_hook = {
.fn = kgdb_step_brk_fn
};
-static void kgdb_call_nmi_hook(void *ignored)
+static void kgdb_roundup_hook(struct irq_work *work)
{
kgdb_nmicallback(raw_smp_processor_id(), get_irq_regs());
}
void kgdb_roundup_cpus(unsigned long flags)
{
- local_irq_enable();
- smp_call_function(kgdb_call_nmi_hook, NULL, 0);
- local_irq_disable();
+ int cpu;
+ struct cpumask mask;
+ struct irq_work *work;
+
+ mask = *cpu_online_mask;
+ cpumask_clear_cpu(smp_processor_id(), &mask);
+ cpu = cpumask_first(&mask);
+ if (cpu >= nr_cpu_ids)
+ return;
+
+ for_each_cpu(cpu, &mask) {
+ work = per_cpu_ptr(&kgdb_irq_work, cpu);
+ irq_work_queue_on(work, cpu);
+ }
}
static int __kgdb_notify(struct die_args *args, unsigned long cmd)
@@ -299,6 +323,8 @@ static struct notifier_block kgdb_notifier = {
int kgdb_arch_init(void)
{
int ret = register_die_notifier(&kgdb_notifier);
+ int cpu;
+ struct irq_work *work;
if (ret != 0)
return ret;
@@ -306,6 +332,12 @@ int kgdb_arch_init(void)
register_break_hook(&kgdb_brkpt_hook);
register_break_hook(&kgdb_compiled_brkpt_hook);
register_step_hook(&kgdb_step_hook);
+
+ for_each_possible_cpu(cpu) {
+ work = per_cpu_ptr(&kgdb_irq_work, cpu);
+ init_irq_work(work, kgdb_roundup_hook);
+ }
+
return 0;
}
--
1.7.9.5
If the overflow threshold for a counter is set above or near the
0xffffffff boundary then the kernel may lose track of the overflow
causing only events that occur *after* the overflow to be recorded.
Specifically the problem occurs when the value of the performance counter
overtakes its original programmed value due to wrap around.
Typical solutions to this problem are either to avoid programming in
values likely to be overtaken or to treat the overflow bit as the 33rd
bit of the counter.
Its somewhat fiddly to refactor the code to correctly handle the 33rd bit
during irqsave sections (context switches for example) so instead we take
the simpler approach of avoiding values likely to be overtaken.
We set the limit to half of max_period because this matches the limit
imposed in __hw_perf_event_init(). This causes a doubling of the interrupt
rate for large threshold values, however even with a very fast counter
ticking at 4GHz the interrupt rate would only be ~1Hz.
Signed-off-by: Daniel Thompson <daniel.thompson(a)linaro.org>
---
Notes:
There is similar code in the arm64 tree which retains the assumptions of
the original arm code regarding 32-bit wide performance counters. If
this patch doesn't get beaten up during review I'll also share a similar
patch for arm64.
arch/arm/kernel/perf_event.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index 266cba46db3e..b50a770f8c99 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -115,8 +115,14 @@ int armpmu_event_set_period(struct perf_event *event)
ret = 1;
}
- if (left > (s64)armpmu->max_period)
- left = armpmu->max_period;
+ /*
+ * Limit the maximum period to prevent the counter value
+ * from overtaking the one we are about to program. In
+ * effect we are reducing max_period to account for
+ * interrupt latency (and we are being very conservative).
+ */
+ if (left > (s64)(armpmu->max_period >> 1))
+ left = armpmu->max_period >> 1;
local64_set(&hwc->prev_count, (u64)-left);
--
1.9.3
Tree/Branch: next-20150106
Git describe: next-20150106
Commit: dc0bee272d Add linux-next specific files for 20150106
Build Time: 17 min 0 sec
Passed: 4 / 8 ( 50.00 %)
Failed: 4 / 8 ( 50.00 %)
Errors: 11
Warnings: 34
Section Mismatches: 0
Failed defconfigs:
arm64-allnoconfig
arm64-allmodconfig
arm-allmodconfig
arm64-defconfig
Errors:
arm64-allnoconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
arm64-allmodconfig
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
arm-allmodconfig
../arch/arm/mach-imx/cpuidle-imx6sx.c:69:13: error: 'CPUIDLE_FLAG_TIME_VALID' undeclared here (not in a function)
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
arm64-defconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
15 warnings 0 mismatches : arm64-allmodconfig
3 warnings 0 mismatches : arm-multi_v7_defconfig
20 warnings 0 mismatches : arm-allmodconfig
1 warnings 0 mismatches : arm-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 11
18 ../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
3 ../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
1 ../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
1 ../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
1 ../arch/arm/mach-imx/cpuidle-imx6sx.c:69:13: error: 'CPUIDLE_FLAG_TIME_VALID' undeclared here (not in a function)
Warnings Summary: 34
4 <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
2 ../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
2 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
2 ../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
2 ../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
1 ../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
1 ../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
1 ../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
1 ../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : FAIL, 9 errors, 0 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 24 errors, 15 warnings, 0 section mismatches
Errors:
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 2 errors, 20 warnings, 0 section mismatches
Errors:
../arch/arm/mach-imx/cpuidle-imx6sx.c:69:13: error: 'CPUIDLE_FLAG_TIME_VALID' undeclared here (not in a function)
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm64-defconfig : FAIL, 19 errors, 3 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
x86_64-defconfig
This is a resend of cpufreq stats cleanups I had for sometime. Few issues were
reported from Fenguang's bot and are all fixed now and are stable..
V1->V2:
- Reviewed-by Prarit
- Replaced lock with mutex as we may sleep from within critical region and so a
new patch "cpufreq: stats: replace spinlock with mutex".
Pushed here:
git://git.linaro.org/people/viresh.kumar/linux.git cpufreq/stats/cleanups
Viresh Kumar (14):
cpufreq: stats: don't break strings into multiple lines
cpufreq: stats: return -EEXIST when stats are already allocated
cpufreq: stats: don't check for freq table while freeing stats
cpufreq: stats: pass 'stat' to cpufreq_stats_update()
cpufreq: stats: get rid of per-cpu cpufreq_stats_table
cpufreq: Remove (now) unused 'last_cpu' from struct cpufreq_policy
cpufreq: stats: remove cpufreq_stats_update_policy_cpu()
cpufreq: remove CPUFREQ_UPDATE_POLICY_CPU notifications
cpufreq: stats: create sysfs group once we are ready
cpufreq: stats: don't update stats from show_trans_table()
cpufreq: stats: don't update stats on false notifiers
cpufreq: stats: replace spinlock with mutex
cpufreq: stats: Fix locking
cpufreq: stats: call cpufreq_stats_update() with locks held
drivers/cpufreq/cpufreq.c | 6 --
drivers/cpufreq/cpufreq_stats.c | 148 ++++++++++++++++++----------------------
include/linux/cpufreq.h | 10 +--
3 files changed, 73 insertions(+), 91 deletions(-)
--
2.2.0
Tree/Branch: next-20150105
Git describe: next-20150105
Commit: 35393dcb2e Add linux-next specific files for 20150105
Build Time: 19 min 18 sec
Passed: 4 / 8 ( 50.00 %)
Failed: 4 / 8 ( 50.00 %)
Errors: 10
Warnings: 34
Section Mismatches: 0
Failed defconfigs:
arm64-allnoconfig
arm64-allmodconfig
arm-allmodconfig
arm64-defconfig
Errors:
arm64-allnoconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
arm64-allmodconfig
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
arm-allmodconfig
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
arm64-defconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
15 warnings 0 mismatches : arm64-allmodconfig
3 warnings 0 mismatches : arm-multi_v7_defconfig
20 warnings 0 mismatches : arm-allmodconfig
1 warnings 0 mismatches : arm-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 10
18 ../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
3 ../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
1 ../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
1 ../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
Warnings Summary: 34
4 <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
2 ../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
2 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
2 ../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
2 ../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
1 ../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
1 ../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
1 ../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
1 ../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : FAIL, 9 errors, 0 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 24 errors, 15 warnings, 0 section mismatches
Errors:
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 1 errors, 20 warnings, 0 section mismatches
Errors:
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm64-defconfig : FAIL, 19 errors, 3 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
x86_64-defconfig
Tree/Branch: next-20150103
Git describe: next-20150103
Commit: 0062c94620 Add linux-next specific files for 20150103
Build Time: 19 min 6 sec
Passed: 4 / 8 ( 50.00 %)
Failed: 4 / 8 ( 50.00 %)
Errors: 10
Warnings: 34
Section Mismatches: 0
Failed defconfigs:
arm64-allnoconfig
arm64-allmodconfig
arm-allmodconfig
arm64-defconfig
Errors:
arm64-allnoconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
arm64-allmodconfig
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
arm-allmodconfig
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
arm64-defconfig
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
defconfigs with issues (other than build errors):
15 warnings 0 mismatches : arm64-allmodconfig
3 warnings 0 mismatches : arm-multi_v7_defconfig
20 warnings 0 mismatches : arm-allmodconfig
1 warnings 0 mismatches : arm-allnoconfig
3 warnings 0 mismatches : arm64-defconfig
-------------------------------------------------------------------------------
Errors summary: 10
18 ../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
11 ../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
3 ../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
2 ../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
1 ../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
1 ../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
Warnings Summary: 34
4 <stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
2 ../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
2 ../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
2 ../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
2 ../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
2 ../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
1 ../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
1 ../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
1 ../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
1 ../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
1 ../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1 ../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
1 ../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
1 ../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1 ../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
1 ../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
1 ../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
1 ../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
1 ../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
===============================================================================
Detailed per-defconfig build reports below:
-------------------------------------------------------------------------------
arm64-allnoconfig : FAIL, 9 errors, 0 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
-------------------------------------------------------------------------------
arm64-allmodconfig : FAIL, 24 errors, 15 warnings, 0 section mismatches
Errors:
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/mm/dump.c:55:20: error: 'PCI_IOBASE' undeclared here (not in a function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/processor.h:47:32: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
../drivers/block/drbd/drbd_bitmap.c:483:0: warning: "BITS_PER_PAGE_MASK" redefined
../drivers/gpio/gpio-74xx-mmio.c:132:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../sound/soc/samsung/dmaengine.c:53:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../sound/soc/samsung/dmaengine.c:60:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/infiniband/hw/qib/qib_qp.c:44:0: warning: "BITS_PER_PAGE" redefined
../include/linux/kernel.h:717:17: warning: comparison of distinct pointer types lacks a cast
../drivers/spi/spi-s3c64xx.c:327:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/spi/spi-s3c64xx.c:336:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/dec/tulip/tulip_core.c:101:2: warning: #warning Processor architecture undefined! [-Wcpp]
../drivers/usb/renesas_usbhs/common.c:471:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/usb/gadget/udc/udc-xilinx.c:2135:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
-------------------------------------------------------------------------------
arm-multi_v7_defconfig : PASS, 0 errors, 3 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm-allmodconfig : FAIL, 1 errors, 20 warnings, 0 section mismatches
Errors:
../drivers/dma/k3dma.c:823:12: error: conflicting types for 'k3_dma_resume'
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
../arch/arm/mach-cns3xxx/pcie.c:298:1: warning: the frame size of 1080 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../arch/arm/mach-imx/mach-imx6sx.c:59:20: warning: 'imx6sx_enet_plt_init' defined but not used [-Wunused-function]
../include/linux/dynamic_debug.h:64:16: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
../fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]
../lib/lz4/lz4hc_compress.c:514:1: warning: the frame size of 1480 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../net/rds/iw_rdma.c:200:1: warning: the frame size of 1056 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/kernel.h:711:17: warning: comparison of distinct pointer types lacks a cast
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../include/linux/dynamic_debug.h:78:3: warning: unsupported argument to '__builtin_return_address'
../drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
../include/linux/dynamic_debug.h:64:16: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=]
../drivers/net/ethernet/dec/tulip/winbond-840.c:910:2: warning: #warning Processor architecture undefined [-Wcpp]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:303:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:307:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
../drivers/net/ethernet/mellanox/mlx5/core/debugfs.c:467:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../drivers/net/ethernet/rocker/rocker.c:809:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../include/uapi/linux/swab.h:13:15: warning: integer overflow in expression [-Woverflow]
../drivers/scsi/ips.c:210:2: warning: #warning "This driver has only been tested on the x86/ia64/x86_64 platforms" [-Wcpp]
-------------------------------------------------------------------------------
arm-allnoconfig : PASS, 0 errors, 1 warnings, 0 section mismatches
Warnings:
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
-------------------------------------------------------------------------------
arm64-defconfig : FAIL, 19 errors, 3 warnings, 0 section mismatches
Errors:
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../arch/arm64/include/asm/arch_timer.h:112:2: error: implicit declaration of function 'BUG' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/module.c:408:4: error: implicit declaration of function 'apply_alternatives' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:80:2: error: implicit declaration of function 'ioremap_cache' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:92:2: error: implicit declaration of function 'writeq_relaxed' [-Werror=implicit-function-declaration]
../arch/arm64/kernel/smp_spin_table.c:101:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:188:10: error: 'PHYS_MASK' undeclared (first use in this function)
../include/linux/bootmem.h:196:10: error: 'PHYS_MASK' undeclared (first use in this function)
Warnings:
../arch/arm64/kernel/smp_spin_table.c:80:15: warning: assignment makes pointer from integer without a cast
../arch/arm64/kernel/efi.c:276:20: warning: 'free_end' may be used uninitialized in this function [-Wmaybe-uninitialized]
../drivers/irqchip/irq-gic-v3-its.c:1056:5206: warning: comparison of distinct pointer types lacks a cast
-------------------------------------------------------------------------------
Passed with no errors, warnings or mismatches:
x86_64-allnoconfig
x86_64-defconfig