* include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
@ 2015-06-01 22:08 kbuild test robot
2015-06-01 23:27 ` josh
0 siblings, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2015-06-01 22:08 UTC (permalink / raw)
To: Josh Triplett; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2703 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c65b99f046843d2455aa231747b5a07a999a9f3d
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date: 1 year, 2 months ago
config: mn10300-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All error/warnings:
In file included from include/linux/page-flags.h:9:0,
from kernel/bounds.c:9:
>> include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
static inline int is_warning_bug(const struct bug_entry *bug)
^
>> include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
return bug->flags & BUGFLAG_WARNING;
^
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +93 include/linux/bug.h
35edd910 Paul Gortmaker 2011-11-16 85
35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
35edd910 Paul Gortmaker 2011-11-16 87
7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
:::::: The code at line 93 was first introduced by commit
:::::: 7664c5a1da4711bb6383117f51b94c8dc8f3f1cd [PATCH] Generic BUG implementation
:::::: TO: Jeremy Fitzhardinge <jeremy@goop.org>
:::::: CC: Linus Torvalds <torvalds@woody.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 13147 bytes --]
#
# Automatically generated file; DO NOT EDIT.
# Linux/mn10300 3.14.0 Kernel Configuration
#
CONFIG_MN10300=y
CONFIG_AM33_2=y
# CONFIG_AM33_3 is not set
# CONFIG_AM34_2 is not set
CONFIG_MMU=y
# CONFIG_HIGHMEM is not set
# CONFIG_NUMA is not set
CONFIG_UID16=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_BUG=y
CONFIG_QUICKLIST=y
CONFIG_ARCH_HAS_ILOG2_U32=y
# CONFIG_HOTPLUG_CPU is not set
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not set
# CONFIG_FHANDLE is not set
# CONFIG_USELIB is not set
#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
#
# Timers subsystem
#
CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set
#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_EXPERT=y
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_KALLSYMS is not set
# CONFIG_PRINTK is not set
# CONFIG_BUG is not set
# CONFIG_BASE_FULL is not set
# CONFIG_FUTEX is not set
# CONFIG_EPOLL is not set
# CONFIG_SIGNALFD is not set
# CONFIG_TIMERFD is not set
# CONFIG_EVENTFD is not set
# CONFIG_SHMEM is not set
# CONFIG_AIO is not set
CONFIG_EMBEDDED=y
#
# Kernel Performance Events And Counters
#
# CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OLD_SIGACTION=y
#
# GCOV-based kernel profiling
#
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_BASE_SMALL=1
# CONFIG_MODULES is not set
# CONFIG_BLOCK is not set
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
# CONFIG_FREEZER is not set
#
# Panasonic MN10300 system setup
#
CONFIG_MN10300_UNIT_ASB2303=y
# CONFIG_MN10300_UNIT_ASB2305 is not set
# CONFIG_MN10300_UNIT_ASB2364 is not set
CONFIG_MN10300_PROC_MN103E010=y
# CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT is not set
# CONFIG_FPU is not set
CONFIG_MN10300_CACHE_WBACK=y
# CONFIG_MN10300_CACHE_WTHRU is not set
# CONFIG_MN10300_CACHE_DISABLED is not set
CONFIG_MN10300_CACHE_ENABLED=y
CONFIG_MN10300_CACHE_MANAGE_BY_TAG=y
CONFIG_MN10300_CACHE_INV_BY_TAG=y
CONFIG_MN10300_CACHE_FLUSH_BY_TAG=y
# CONFIG_MN10300_HAS_CACHE_SNOOP is not set
CONFIG_MN10300_CACHE_FLUSH_ICACHE=y
CONFIG_MN10300_TLB_USE_PIDR=y
#
# Memory layout options
#
CONFIG_KERNEL_RAM_BASE_ADDRESS=0x90000000
CONFIG_INTERRUPT_VECTOR_BASE=0x90000000
CONFIG_KERNEL_TEXT_ADDRESS=0x90001000
CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS=0x50700000
CONFIG_BOOT_STACK_OFFSET=0xFF0
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
# CONFIG_MN10300_CURRENT_IN_E2 is not set
# CONFIG_MN10300_USING_JTAG is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
# CONFIG_SCHED_HRTICK is not set
# CONFIG_MN10300_RTC is not set
# CONFIG_MN10300_WD_TIMER is not set
# CONFIG_PCCARD is not set
#
# MN10300 internal serial options
#
CONFIG_MN10300_PROC_HAS_TTYSM0=y
CONFIG_MN10300_PROC_HAS_TTYSM1=y
CONFIG_MN10300_PROC_HAS_TTYSM2=y
# CONFIG_MN10300_TTYSM is not set
#
# Interrupt request priority options
#
#
# [!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)
#
#
# ____Non-maskable interrupt levels____
#
#
# The following must be set to a higher priority than local_irq_disable() and on-chip serial
#
#
# The following must be set to a higher priority than local_irq_disable()
#
#
# -
#
#
# ____Maskable interrupt levels____
#
CONFIG_LINUX_CLI_LEVEL=2
#
# The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL
#
CONFIG_TIMER_IRQ_LEVEL=4
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_COMPACTION is not set
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_NR_QUICK=1
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
# CONFIG_ZBUD is not set
# CONFIG_ZSMALLOC is not set
#
# Power management options
#
# CONFIG_PM_RUNTIME is not set
#
# Executable formats
#
# CONFIG_BINFMT_ELF is not set
# CONFIG_BINFMT_SCRIPT is not set
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
# CONFIG_COREDUMP is not set
# CONFIG_NET is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
# CONFIG_STANDALONE is not set
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set
#
# Bus devices
#
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
#
# Misc devices
#
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_93CX6 is not set
#
# Texas Instruments shared transport line discipline
#
#
# Altera FPGA firmware download module
#
#
# Intel MIC Host Driver
#
#
# Intel MIC Card Driver
#
# CONFIG_ECHO is not set
#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_SCSI_DMA is not set
# CONFIG_SCSI_NETLINK is not set
#
# Input device support
#
# CONFIG_INPUT is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
# CONFIG_TTY is not set
# CONFIG_DEVKMEM is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_TCG_TPM is not set
# CONFIG_I2C is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
#
# PPS support
#
# CONFIG_PPS is not set
#
# PPS generators support
#
#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y
#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_CROS_EC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
# CONFIG_FB is not set
# CONFIG_EXYNOS_VIDEO is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# CONFIG_SOUND is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB is not set
#
# USB port drivers
#
#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_SAMSUNG_USB2PHY is not set
# CONFIG_SAMSUNG_USB3PHY is not set
# CONFIG_USB_GADGET is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set
#
# Virtio drivers
#
# CONFIG_VIRTIO_MMIO is not set
#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set
#
# Hardware Spinlock drivers
#
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_MAILBOX is not set
# CONFIG_IOMMU_SUPPORT is not set
#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set
#
# Rpmsg drivers
#
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_PWM is not set
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_FMC is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_OMAP_CONTROL_PHY is not set
# CONFIG_PHY_SAMSUNG_USB2 is not set
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# File systems
#
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_FILE_LOCKING is not set
# CONFIG_FSNOTIFY is not set
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not set
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
#
# Pseudo filesystems
#
# CONFIG_PROC_FS is not set
# CONFIG_KERNFS is not set
# CONFIG_SYSFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NLS is not set
#
# Kernel hacking
#
#
# printk and dmesg options
#
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
# CONFIG_ENABLE_WARN_DEPRECATED is not set
# CONFIG_ENABLE_MUST_CHECK is not set
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_DEBUG_FS is not set
CONFIG_HEADERS_CHECK=y
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_FRAME_POINTER is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_MAGIC_SYSRQ is not set
CONFIG_DEBUG_KERNEL=y
#
# Memory Debugging
#
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Lockups and Hangs
#
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=0
#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_WRITECOUNT is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
#
# Runtime Testing
#
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
CONFIG_BUILD_DOCSRC=y
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_DEBUG_DECOMPRESS_KERNEL is not set
# CONFIG_TEST_MISALIGNMENT_HANDLER is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
# CONFIG_CRYPTO is not set
# CONFIG_BINARY_PRINTF is not set
#
# Library routines
#
CONFIG_GENERIC_IO=y
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
# CONFIG_CRC32 is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_RANDOM32_SELFTEST is not set
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_AVERAGE is not set
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2015-06-01 22:08 kbuild test robot
@ 2015-06-01 23:27 ` josh
2015-06-02 2:27 ` Fengguang Wu
0 siblings, 1 reply; 12+ messages in thread
From: josh @ 2015-06-01 23:27 UTC (permalink / raw)
To: kbuild test robot; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List
On Tue, Jun 02, 2015 at 06:08:25AM +0800, kbuild test robot wrote:
> All error/warnings:
>
> In file included from include/linux/page-flags.h:9:0,
> from kernel/bounds.c:9:
> >> include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
> static inline int is_warning_bug(const struct bug_entry *bug)
> ^
> >> include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
> include/linux/bug.h: In function 'is_warning_bug':
> >> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
> return bug->flags & BUGFLAG_WARNING;
> ^
> make[2]: *** [kernel/bounds.s] Error 1
> make[2]: Target '__build' not remade because of errors.
> make[1]: *** [prepare0] Error 2
> make[1]: Target 'prepare' not remade because of errors.
> make: *** [sub-make] Error 2
>
> vim +93 include/linux/bug.h
>
> 35edd910 Paul Gortmaker 2011-11-16 85
> 35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
> 35edd910 Paul Gortmaker 2011-11-16 87
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
> 7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
This looks like a bug in mn10300. This code is within an ifdef on
CONFIG_GENERIC_BUG, and the declaration of the structure is within
ifdefs on both CONFIG_GENERIC_BUG and CONFIG_BUG, but:
> CONFIG_MN10300=y
[...]
> CONFIG_GENERIC_BUG=y
[...]
> # CONFIG_BUG is not set
Other architectures, including x86 (arch/x86/Kconfig) and powerpc
(arch/powerpc/Kconfig) have GENERIC_BUG depend on BUG. Looks like
mn10300 doesn't.
- Josh Triplett
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2015-06-01 23:27 ` josh
@ 2015-06-02 2:27 ` Fengguang Wu
0 siblings, 0 replies; 12+ messages in thread
From: Fengguang Wu @ 2015-06-02 2:27 UTC (permalink / raw)
To: josh
Cc: kbuild-all, Andrew Morton, Linux Memory Management List,
David Howells, Koichi Yasutake
// CC mn10300 maintainers.
On Mon, Jun 01, 2015 at 04:27:55PM -0700, josh@joshtriplett.org wrote:
> On Tue, Jun 02, 2015 at 06:08:25AM +0800, kbuild test robot wrote:
> > All error/warnings:
> >
> > In file included from include/linux/page-flags.h:9:0,
> > from kernel/bounds.c:9:
> > >> include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
> > static inline int is_warning_bug(const struct bug_entry *bug)
> > ^
> > >> include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
> > include/linux/bug.h: In function 'is_warning_bug':
> > >> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
> > return bug->flags & BUGFLAG_WARNING;
> > ^
> > make[2]: *** [kernel/bounds.s] Error 1
> > make[2]: Target '__build' not remade because of errors.
> > make[1]: *** [prepare0] Error 2
> > make[1]: Target 'prepare' not remade because of errors.
> > make: *** [sub-make] Error 2
> >
> > vim +93 include/linux/bug.h
> >
> > 35edd910 Paul Gortmaker 2011-11-16 85
> > 35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
> > 35edd910 Paul Gortmaker 2011-11-16 87
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
> > 7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
>
> This looks like a bug in mn10300. This code is within an ifdef on
> CONFIG_GENERIC_BUG, and the declaration of the structure is within
> ifdefs on both CONFIG_GENERIC_BUG and CONFIG_BUG, but:
>
> > CONFIG_MN10300=y
> [...]
> > CONFIG_GENERIC_BUG=y
> [...]
> > # CONFIG_BUG is not set
>
> Other architectures, including x86 (arch/x86/Kconfig) and powerpc
> (arch/powerpc/Kconfig) have GENERIC_BUG depend on BUG. Looks like
> mn10300 doesn't.
>
> - Josh Triplett
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
@ 2015-07-04 12:36 kbuild test robot
2015-07-04 20:48 ` Josh Triplett
0 siblings, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2015-07-04 12:36 UTC (permalink / raw)
To: Josh Triplett; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2840 bytes --]
Hi Josh,
FYI, the error/warning still remains. You may either fix it or ask me to silently ignore in future.
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1b3618b60a487fa219c5381a9c983a00c40e6477
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date: 1 year, 3 months ago
config: mn10300-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All error/warnings (new ones prefixed by >>):
In file included from include/linux/page-flags.h:9:0,
from kernel/bounds.c:9:
include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
static inline int is_warning_bug(const struct bug_entry *bug)
^
include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
return bug->flags & BUGFLAG_WARNING;
^
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +93 include/linux/bug.h
35edd910 Paul Gortmaker 2011-11-16 85
35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
35edd910 Paul Gortmaker 2011-11-16 87
7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
:::::: The code at line 93 was first introduced by commit
:::::: 7664c5a1da4711bb6383117f51b94c8dc8f3f1cd [PATCH] Generic BUG implementation
:::::: TO: Jeremy Fitzhardinge <jeremy@goop.org>
:::::: CC: Linus Torvalds <torvalds@woody.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 13147 bytes --]
#
# Automatically generated file; DO NOT EDIT.
# Linux/mn10300 3.14.0 Kernel Configuration
#
CONFIG_MN10300=y
CONFIG_AM33_2=y
# CONFIG_AM33_3 is not set
# CONFIG_AM34_2 is not set
CONFIG_MMU=y
# CONFIG_HIGHMEM is not set
# CONFIG_NUMA is not set
CONFIG_UID16=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_BUG=y
CONFIG_QUICKLIST=y
CONFIG_ARCH_HAS_ILOG2_U32=y
# CONFIG_HOTPLUG_CPU is not set
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not set
# CONFIG_FHANDLE is not set
# CONFIG_USELIB is not set
#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
#
# Timers subsystem
#
CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set
#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
#
# RCU Subsystem
#
CONFIG_TINY_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=17
# CONFIG_CGROUPS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_RELAY is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_EXPERT=y
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_KALLSYMS is not set
# CONFIG_PRINTK is not set
# CONFIG_BUG is not set
# CONFIG_BASE_FULL is not set
# CONFIG_FUTEX is not set
# CONFIG_EPOLL is not set
# CONFIG_SIGNALFD is not set
# CONFIG_TIMERFD is not set
# CONFIG_EVENTFD is not set
# CONFIG_SHMEM is not set
# CONFIG_AIO is not set
CONFIG_EMBEDDED=y
#
# Kernel Performance Events And Counters
#
# CONFIG_VM_EVENT_COUNTERS is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
# CONFIG_UPROBES is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
# CONFIG_CC_STACKPROTECTOR is not set
CONFIG_MODULES_USE_ELF_RELA=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OLD_SIGACTION=y
#
# GCOV-based kernel profiling
#
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
CONFIG_BASE_SMALL=1
# CONFIG_MODULES is not set
# CONFIG_BLOCK is not set
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
# CONFIG_FREEZER is not set
#
# Panasonic MN10300 system setup
#
CONFIG_MN10300_UNIT_ASB2303=y
# CONFIG_MN10300_UNIT_ASB2305 is not set
# CONFIG_MN10300_UNIT_ASB2364 is not set
CONFIG_MN10300_PROC_MN103E010=y
# CONFIG_MN10300_HAS_ATOMIC_OPS_UNIT is not set
# CONFIG_FPU is not set
CONFIG_MN10300_CACHE_WBACK=y
# CONFIG_MN10300_CACHE_WTHRU is not set
# CONFIG_MN10300_CACHE_DISABLED is not set
CONFIG_MN10300_CACHE_ENABLED=y
CONFIG_MN10300_CACHE_MANAGE_BY_TAG=y
CONFIG_MN10300_CACHE_INV_BY_TAG=y
CONFIG_MN10300_CACHE_FLUSH_BY_TAG=y
# CONFIG_MN10300_HAS_CACHE_SNOOP is not set
CONFIG_MN10300_CACHE_FLUSH_ICACHE=y
CONFIG_MN10300_TLB_USE_PIDR=y
#
# Memory layout options
#
CONFIG_KERNEL_RAM_BASE_ADDRESS=0x90000000
CONFIG_INTERRUPT_VECTOR_BASE=0x90000000
CONFIG_KERNEL_TEXT_ADDRESS=0x90001000
CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS=0x50700000
CONFIG_BOOT_STACK_OFFSET=0xFF0
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
# CONFIG_MN10300_CURRENT_IN_E2 is not set
# CONFIG_MN10300_USING_JTAG is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
# CONFIG_SCHED_HRTICK is not set
# CONFIG_MN10300_RTC is not set
# CONFIG_MN10300_WD_TIMER is not set
# CONFIG_PCCARD is not set
#
# MN10300 internal serial options
#
CONFIG_MN10300_PROC_HAS_TTYSM0=y
CONFIG_MN10300_PROC_HAS_TTYSM1=y
CONFIG_MN10300_PROC_HAS_TTYSM2=y
# CONFIG_MN10300_TTYSM is not set
#
# Interrupt request priority options
#
#
# [!] NOTE: A lower number/level indicates a higher priority (0 is highest, 6 is lowest)
#
#
# ____Non-maskable interrupt levels____
#
#
# The following must be set to a higher priority than local_irq_disable() and on-chip serial
#
#
# The following must be set to a higher priority than local_irq_disable()
#
#
# -
#
#
# ____Maskable interrupt levels____
#
CONFIG_LINUX_CLI_LEVEL=2
#
# The following must be set to a equal to or lower priority than LINUX_CLI_LEVEL
#
CONFIG_TIMER_IRQ_LEVEL=4
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_COMPACTION is not set
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
CONFIG_NR_QUICK=1
CONFIG_VIRT_TO_BUS=y
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_NEED_PER_CPU_KM=y
# CONFIG_CLEANCACHE is not set
# CONFIG_ZBUD is not set
# CONFIG_ZSMALLOC is not set
#
# Power management options
#
# CONFIG_PM_RUNTIME is not set
#
# Executable formats
#
# CONFIG_BINFMT_ELF is not set
# CONFIG_BINFMT_SCRIPT is not set
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
# CONFIG_COREDUMP is not set
# CONFIG_NET is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
# CONFIG_STANDALONE is not set
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set
#
# Bus devices
#
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
#
# Misc devices
#
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_SRAM is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_93CX6 is not set
#
# Texas Instruments shared transport line discipline
#
#
# Altera FPGA firmware download module
#
#
# Intel MIC Host Driver
#
#
# Intel MIC Card Driver
#
# CONFIG_ECHO is not set
#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_SCSI_DMA is not set
# CONFIG_SCSI_NETLINK is not set
#
# Input device support
#
# CONFIG_INPUT is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
# CONFIG_TTY is not set
# CONFIG_DEVKMEM is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_TCG_TPM is not set
# CONFIG_I2C is not set
# CONFIG_SPI is not set
# CONFIG_SPMI is not set
# CONFIG_HSI is not set
#
# PPS support
#
# CONFIG_PPS is not set
#
# PPS generators support
#
#
# PTP clock support
#
# CONFIG_PTP_1588_CLOCK is not set
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set
CONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y
#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_CROS_EC is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
# CONFIG_FB is not set
# CONFIG_EXYNOS_VIDEO is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
# CONFIG_SOUND is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB is not set
#
# USB port drivers
#
#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_SAMSUNG_USB2PHY is not set
# CONFIG_SAMSUNG_USB3PHY is not set
# CONFIG_USB_GADGET is not set
# CONFIG_MMC is not set
# CONFIG_MEMSTICK is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set
#
# Virtio drivers
#
# CONFIG_VIRTIO_MMIO is not set
#
# Microsoft Hyper-V guest support
#
# CONFIG_STAGING is not set
#
# Hardware Spinlock drivers
#
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not set
# CONFIG_MAILBOX is not set
# CONFIG_IOMMU_SUPPORT is not set
#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set
#
# Rpmsg drivers
#
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
# CONFIG_PWM is not set
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
# CONFIG_FMC is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_OMAP_CONTROL_PHY is not set
# CONFIG_PHY_SAMSUNG_USB2 is not set
# CONFIG_POWERCAP is not set
# CONFIG_MCB is not set
#
# File systems
#
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_FILE_LOCKING is not set
# CONFIG_FSNOTIFY is not set
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY_USER is not set
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not set
# CONFIG_QUOTACTL is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# Caches
#
# CONFIG_FSCACHE is not set
#
# Pseudo filesystems
#
# CONFIG_PROC_FS is not set
# CONFIG_KERNFS is not set
# CONFIG_SYSFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
# CONFIG_NLS is not set
#
# Kernel hacking
#
#
# printk and dmesg options
#
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
# CONFIG_ENABLE_WARN_DEPRECATED is not set
# CONFIG_ENABLE_MUST_CHECK is not set
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
# CONFIG_DEBUG_FS is not set
CONFIG_HEADERS_CHECK=y
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_FRAME_POINTER is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# CONFIG_MAGIC_SYSRQ is not set
CONFIG_DEBUG_KERNEL=y
#
# Memory Debugging
#
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Lockups and Hangs
#
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=0
#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_LOCK_TORTURE_TEST is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_WRITECOUNT is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_TORTURE_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
#
# Runtime Testing
#
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
CONFIG_BUILD_DOCSRC=y
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_DEBUG_DECOMPRESS_KERNEL is not set
# CONFIG_TEST_MISALIGNMENT_HANDLER is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITYFS is not set
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
# CONFIG_CRYPTO is not set
# CONFIG_BINARY_PRINTF is not set
#
# Library routines
#
CONFIG_GENERIC_IO=y
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
# CONFIG_CRC_T10DIF is not set
# CONFIG_CRC_ITU_T is not set
# CONFIG_CRC32 is not set
# CONFIG_CRC7 is not set
# CONFIG_LIBCRC32C is not set
# CONFIG_CRC8 is not set
# CONFIG_RANDOM32_SELFTEST is not set
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
# CONFIG_AVERAGE is not set
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2015-07-04 12:36 kbuild test robot
@ 2015-07-04 20:48 ` Josh Triplett
2015-07-05 1:21 ` Fengguang Wu
0 siblings, 1 reply; 12+ messages in thread
From: Josh Triplett @ 2015-07-04 20:48 UTC (permalink / raw)
To: kbuild test robot; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List
On Sat, Jul 04, 2015 at 08:36:05PM +0800, kbuild test robot wrote:
> Hi Josh,
>
> FYI, the error/warning still remains. You may either fix it or ask me to silently ignore in future.
As mentioned before, it's a bug in mn10300, not a bug in the commit in
question. It needs fixing by the mn10300 architecture folks. Please
send it to them in the future.
My description of the bug from the previous time this came up:
> This looks like a bug in mn10300. This code is within an ifdef on
> CONFIG_GENERIC_BUG, and the declaration of the structure is within
> ifdefs on both CONFIG_GENERIC_BUG and CONFIG_BUG, but:
>
> > CONFIG_MN10300=y
> [...]
> > CONFIG_GENERIC_BUG=y
> [...]
> > # CONFIG_BUG is not set
>
> Other architectures, including x86 (arch/x86/Kconfig) and powerpc
> (arch/powerpc/Kconfig) have GENERIC_BUG depend on BUG. Looks like
> mn10300 doesn't.
- Josh Triplett
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2015-07-04 20:48 ` Josh Triplett
@ 2015-07-05 1:21 ` Fengguang Wu
0 siblings, 0 replies; 12+ messages in thread
From: Fengguang Wu @ 2015-07-05 1:21 UTC (permalink / raw)
To: Josh Triplett
Cc: kbuild-all, Andrew Morton, Linux Memory Management List,
David Howells, Koichi Yasutake, moderated for non-subscribers
Thank you Josh! CC mn10300 maintainers for possible fix in
arch/mn10300/ code. -fengguang
On Sat, Jul 04, 2015 at 01:48:38PM -0700, Josh Triplett wrote:
> On Sat, Jul 04, 2015 at 08:36:05PM +0800, kbuild test robot wrote:
> > Hi Josh,
> >
> > FYI, the error/warning still remains. You may either fix it or ask me to silently ignore in future.
>
> As mentioned before, it's a bug in mn10300, not a bug in the commit in
> question. It needs fixing by the mn10300 architecture folks. Please
> send it to them in the future.
>
> My description of the bug from the previous time this came up:
> > This looks like a bug in mn10300. This code is within an ifdef on
> > CONFIG_GENERIC_BUG, and the declaration of the structure is within
> > ifdefs on both CONFIG_GENERIC_BUG and CONFIG_BUG, but:
> >
> > > CONFIG_MN10300=y
> > [...]
> > > CONFIG_GENERIC_BUG=y
> > [...]
> > > # CONFIG_BUG is not set
> >
> > Other architectures, including x86 (arch/x86/Kconfig) and powerpc
> > (arch/powerpc/Kconfig) have GENERIC_BUG depend on BUG. Looks like
> > mn10300 doesn't.
>
> - Josh Triplett
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
@ 2016-02-28 23:33 kbuild test robot
2016-02-29 20:49 ` Andrew Morton
0 siblings, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2016-02-28 23:33 UTC (permalink / raw)
To: Josh Triplett
Cc: kbuild-all, linux-kernel, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]
Hi Josh,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fc77dbd34c5c99bce46d40a2491937c3bcbd10af
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date: 1 year, 11 months ago
config: mn10300-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All errors (new ones prefixed by >>):
In file included from include/linux/page-flags.h:9:0,
from kernel/bounds.c:9:
include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
static inline int is_warning_bug(const struct bug_entry *bug)
^
include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
return bug->flags & BUGFLAG_WARNING;
^
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +93 include/linux/bug.h
35edd910 Paul Gortmaker 2011-11-16 85
35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
35edd910 Paul Gortmaker 2011-11-16 87
7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
:::::: The code at line 93 was first introduced by commit
:::::: 7664c5a1da4711bb6383117f51b94c8dc8f3f1cd [PATCH] Generic BUG implementation
:::::: TO: Jeremy Fitzhardinge <jeremy@goop.org>
:::::: CC: Linus Torvalds <torvalds@woody.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3953 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2016-02-28 23:33 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
@ 2016-02-29 20:49 ` Andrew Morton
2016-02-29 21:24 ` Josh Triplett
2016-03-01 6:18 ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
0 siblings, 2 replies; 12+ messages in thread
From: Andrew Morton @ 2016-02-29 20:49 UTC (permalink / raw)
To: kbuild test robot
Cc: Josh Triplett, kbuild-all, linux-kernel,
Linux Memory Management List
On Mon, 29 Feb 2016 07:33:04 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: fc77dbd34c5c99bce46d40a2491937c3bcbd10af
> commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
> date: 1 year, 11 months ago
> config: mn10300-allnoconfig (attached as .config)
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
> # save the attached .config to linux build tree
> make.cross ARCH=mn10300
>
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
CONFIG_BUG=n && CONFIG_GENERIC_BUG=y make no sense and things break:
In file included from include/linux/page-flags.h:9:0,
from kernel/bounds.c:9:
include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
static inline int is_warning_bug(const struct bug_entry *bug)
^
include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
return bug->flags & BUGFLAG_WARNING;
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/c6x/Kconfig | 1 +
arch/mn10300/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff -puN arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/c6x/Kconfig
--- a/arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
+++ a/arch/c6x/Kconfig
@@ -36,6 +36,7 @@ config GENERIC_HWEIGHT
config GENERIC_BUG
def_bool y
+ depends on BUG
config C6X_BIG_KERNEL
bool "Build a big kernel"
diff -puN arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/mn10300/Kconfig
--- a/arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
+++ a/arch/mn10300/Kconfig
@@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
config GENERIC_BUG
def_bool y
+ depends on BUG
config QUICKLIST
def_bool y
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
2016-02-29 20:49 ` Andrew Morton
@ 2016-02-29 21:24 ` Josh Triplett
2016-03-01 6:18 ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
1 sibling, 0 replies; 12+ messages in thread
From: Josh Triplett @ 2016-02-29 21:24 UTC (permalink / raw)
To: Andrew Morton
Cc: kbuild test robot, kbuild-all, linux-kernel,
Linux Memory Management List
On Mon, Feb 29, 2016 at 12:49:37PM -0800, Andrew Morton wrote:
> On Mon, 29 Feb 2016 07:33:04 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
>
> > FYI, the error/warning still remains.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: fc77dbd34c5c99bce46d40a2491937c3bcbd10af
> > commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
> > date: 1 year, 11 months ago
> > config: mn10300-allnoconfig (attached as .config)
> > reproduce:
> > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
> > # save the attached .config to linux build tree
> > make.cross ARCH=mn10300
> >
>
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
>
> CONFIG_BUG=n && CONFIG_GENERIC_BUG=y make no sense and things break:
>
> In file included from include/linux/page-flags.h:9:0,
> from kernel/bounds.c:9:
> include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
> static inline int is_warning_bug(const struct bug_entry *bug)
> ^
> include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
> include/linux/bug.h: In function 'is_warning_bug':
> >> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
> return bug->flags & BUGFLAG_WARNING;
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Cc: Josh Triplett <josh@joshtriplett.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This looks like the right patch; I thought it had already been
submitted.
That said, what would it take to move GENERIC_BUG and BUG into
architecture-independent configuration, including such a dependency?
> arch/c6x/Kconfig | 1 +
> arch/mn10300/Kconfig | 1 +
> 2 files changed, 2 insertions(+)
>
> diff -puN arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/c6x/Kconfig
> --- a/arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
> +++ a/arch/c6x/Kconfig
> @@ -36,6 +36,7 @@ config GENERIC_HWEIGHT
>
> config GENERIC_BUG
> def_bool y
> + depends on BUG
>
> config C6X_BIG_KERNEL
> bool "Build a big kernel"
> diff -puN arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/mn10300/Kconfig
> --- a/arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
> +++ a/arch/mn10300/Kconfig
> @@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
>
> config GENERIC_BUG
> def_bool y
> + depends on BUG
>
> config QUICKLIST
> def_bool y
> _
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
2016-02-29 20:49 ` Andrew Morton
2016-02-29 21:24 ` Josh Triplett
@ 2016-03-01 6:18 ` kbuild test robot
2016-03-01 6:38 ` Andrew Morton
1 sibling, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2016-03-01 6:18 UTC (permalink / raw)
To: Andrew Morton
Cc: kbuild-all, kbuild test robot, Josh Triplett, linux-kernel,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2651 bytes --]
Hi Andrew,
[auto build test ERROR on v4.5-rc6]
[also build test ERROR on next-20160229]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Andrew-Morton/mn10300-c6x-CONFIG_GENERIC_BUG-must-depend-on-CONFIG_BUG/20160301-045134
config: mn10300-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All errors (new ones prefixed by >>):
>> arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
^
vim +/elf_fpregset_t +27 arch/mn10300/kernel/fpu-nofpu.c
278d91c4 Akira Takeuchi 2010-10-27 11 #include <asm/fpu.h>
278d91c4 Akira Takeuchi 2010-10-27 12
278d91c4 Akira Takeuchi 2010-10-27 13 /*
278d91c4 Akira Takeuchi 2010-10-27 14 * handle an FPU operational exception
278d91c4 Akira Takeuchi 2010-10-27 15 * - there's a possibility that if the FPU is asynchronous, the signal might
278d91c4 Akira Takeuchi 2010-10-27 16 * be meant for a process other than the current one
278d91c4 Akira Takeuchi 2010-10-27 17 */
278d91c4 Akira Takeuchi 2010-10-27 18 asmlinkage
278d91c4 Akira Takeuchi 2010-10-27 19 void unexpected_fpu_exception(struct pt_regs *regs, enum exception_code code)
278d91c4 Akira Takeuchi 2010-10-27 20 {
278d91c4 Akira Takeuchi 2010-10-27 21 panic("An FPU exception was received, but there's no FPU enabled.");
278d91c4 Akira Takeuchi 2010-10-27 22 }
278d91c4 Akira Takeuchi 2010-10-27 23
278d91c4 Akira Takeuchi 2010-10-27 24 /*
278d91c4 Akira Takeuchi 2010-10-27 25 * fill in the FPU structure for a core dump
278d91c4 Akira Takeuchi 2010-10-27 26 */
278d91c4 Akira Takeuchi 2010-10-27 @27 int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
278d91c4 Akira Takeuchi 2010-10-27 28 {
278d91c4 Akira Takeuchi 2010-10-27 29 return 0; /* not valid */
278d91c4 Akira Takeuchi 2010-10-27 30 }
:::::: The code at line 27 was first introduced by commit
:::::: 278d91c4609d55202c1e63d5fc5f01466cc7bbab MN10300: Make the FPU operate in non-lazy mode under SMP
:::::: TO: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
:::::: CC: David Howells <dhowells@redhat.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 4355 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
2016-03-01 6:18 ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
@ 2016-03-01 6:38 ` Andrew Morton
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Morton @ 2016-03-01 6:38 UTC (permalink / raw)
To: kbuild test robot
Cc: kbuild-all, kbuild test robot, Josh Triplett, linux-kernel,
Linux Memory Management List
On Tue, 1 Mar 2016 14:18:56 +0800 kbuild test robot <lkp@intel.com> wrote:
> [auto build test ERROR on v4.5-rc6]
> [also build test ERROR on next-20160229]
> [if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
>
> url: https://github.com/0day-ci/linux/commits/Andrew-Morton/mn10300-c6x-CONFIG_GENERIC_BUG-must-depend-on-CONFIG_BUG/20160301-045134
> config: mn10300-allnoconfig (attached as .config)
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # save the attached .config to linux build tree
> make.cross ARCH=mn10300
>
> All errors (new ones prefixed by >>):
>
> >> arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
> int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
hm, that error isn't well correlated with that patch!
This, I suppose. I don't have an mn10300 cross-compiler.
From: Andrew Morton <akpm@linux-foundation.org>
Subject: arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h
arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/mn10300/kernel/fpu-nofpu.c | 1 +
1 file changed, 1 insertion(+)
diff -puN arch/mn10300/kernel/fpu-nofpu.c~a arch/mn10300/kernel/fpu-nofpu.c
--- a/arch/mn10300/kernel/fpu-nofpu.c~a
+++ a/arch/mn10300/kernel/fpu-nofpu.c
@@ -9,6 +9,7 @@
* 2 of the Licence, or (at your option) any later version.
*/
#include <asm/fpu.h>
+#include <asm/elf.h>
/*
* handle an FPU operational exception
_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 12+ messages in thread
* include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
@ 2016-03-06 22:08 kbuild test robot
0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2016-03-06 22:08 UTC (permalink / raw)
To: Josh Triplett
Cc: kbuild-all, linux-kernel, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]
Hi Josh,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 67944024c1cdd897e49a09b0d6af3ea38d1388ca
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date: 1 year, 11 months ago
config: mn10300-allnoconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
# save the attached .config to linux build tree
make.cross ARCH=mn10300
All errors (new ones prefixed by >>):
In file included from include/linux/page-flags.h:9:0,
from kernel/bounds.c:9:
include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
static inline int is_warning_bug(const struct bug_entry *bug)
^
include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
return bug->flags & BUGFLAG_WARNING;
^
make[2]: *** [kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +93 include/linux/bug.h
35edd910 Paul Gortmaker 2011-11-16 85
35edd910 Paul Gortmaker 2011-11-16 86 #endif /* __CHECKER__ */
35edd910 Paul Gortmaker 2011-11-16 87
7664c5a1 Jeremy Fitzhardinge 2006-12-08 88 #ifdef CONFIG_GENERIC_BUG
7664c5a1 Jeremy Fitzhardinge 2006-12-08 89 #include <asm-generic/bug.h>
7664c5a1 Jeremy Fitzhardinge 2006-12-08 90
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91 static inline int is_warning_bug(const struct bug_entry *bug)
7664c5a1 Jeremy Fitzhardinge 2006-12-08 92 {
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93 return bug->flags & BUGFLAG_WARNING;
7664c5a1 Jeremy Fitzhardinge 2006-12-08 94 }
7664c5a1 Jeremy Fitzhardinge 2006-12-08 95
7664c5a1 Jeremy Fitzhardinge 2006-12-08 96 const struct bug_entry *find_bug(unsigned long bugaddr);
:::::: The code at line 93 was first introduced by commit
:::::: 7664c5a1da4711bb6383117f51b94c8dc8f3f1cd [PATCH] Generic BUG implementation
:::::: TO: Jeremy Fitzhardinge <jeremy@goop.org>
:::::: CC: Linus Torvalds <torvalds@woody.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3953 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-03-06 22:09 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-28 23:33 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
2016-02-29 20:49 ` Andrew Morton
2016-02-29 21:24 ` Josh Triplett
2016-03-01 6:18 ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
2016-03-01 6:38 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2016-03-06 22:08 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
2015-07-04 12:36 kbuild test robot
2015-07-04 20:48 ` Josh Triplett
2015-07-05 1:21 ` Fengguang Wu
2015-06-01 22:08 kbuild test robot
2015-06-01 23:27 ` josh
2015-06-02 2:27 ` Fengguang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).