drivers/staging/meilhaus build broken with ftrace
Commit fc4c7355 ("ftrace: Fix the conditional that updates $ref_func") breaks the build of drivers/staging/meilhaus with ftrace enabled:
CC [M] drivers/staging/meilhaus/me0600_device.o
No function to reference at scripts/recordmcount.pl line 339, <IN> line 258. make[4]: *** [drivers/staging/meilhaus/me0600_device.o] Error 9
Yes, that's crazy, but the situation is the following:
- for some reason I can't fathom, the meilhaus driver declares me0600_pci_constructor() as weak in drivers/staging/meilhaus/me0600_device.h
- me0600_pci_constructor() is the only function in .text in drivers/staging/meilhaus/me0600_device.c
so recordmcount.pl ends up finding only one weak function in .text, and so it never sets $ref_func before calling update_funcs().
I don't understand the details of this stuff well enough to understand what the right fix is -- what the driver is doing is crazy, but I guess recordmcount.pl should be able to handle an object file with only weak functions in it?
It's not a big deal for me, since I'm only building this stuff as part of build testing coverage, but I guess this will be a problem for distros.
BTW, a fairly minimal config that hits this problem is:
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.31-rc5
# Thu Aug 6 14:29:08 2009
#CONFIG_64BIT=y
# CONFIG_X86_32 is not setCONFIG_X86_64=yCONFIG_X86=yCONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_FAST_CMPXCHG_LOCAL=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_GENERIC_SPINLOCK=y
# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_DEFAULT_IDLE=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_HAVE_DYNAMIC_PER_CPU_AREA=y
# CONFIG_HAVE_CPUMASK_OF_CPU_MAP is not set CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ZONE_DMA32=y CONFIG_ARCH_POPULATES_NODE_MAP=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y CONFIG_GENERIC_IRQ_PROBE=y
# CONFIG_KTIME_SCALAR is not set CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y
#
# General setup
#
# CONFIG_EXPERIMENTAL is not setCONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not setCONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_SWAP is not set
# CONFIG_SYSVIPC is not set
# CONFIG_BSD_PROCESS_ACCT is not set
#
# RCU Subsystem
#
# CONFIG_CLASSIC_RCU is not setCONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not set
# CONFIG_RCU_TRACE is not setCONFIG_RCU_FANOUT=64
# CONFIG_RCU_FANOUT_EXACT is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_PREEMPT_RCU_TRACE is not set
# CONFIG_IKCONFIG is not setCONFIG_LOG_BUF_SHIFT=17CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
# CONFIG_CGROUPS is not set
# CONFIG_SYSFS_DEPRECATED_V2 is not set
# CONFIG_RELAY is not setCONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not setCONFIG_SYSCTL=yCONFIG_ANON_INODES=y
# CONFIG_EMBEDDED is not setCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_EXTRA_PASS is not setCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_HAVE_PERF_COUNTERS=y
#
# Performance Counters
#
# CONFIG_PERF_COUNTERS is not setCONFIG_VM_EVENT_COUNTERS=yCONFIG_PCI_QUIRKS=yCONFIG_SLUB_DEBUG=y
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not set
# CONFIG_PROFILING is not setCONFIG_TRACEPOINTS=yCONFIG_MARKERS=yCONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not setCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_ATTRS=yCONFIG_HAVE_DMA_API_DEBUG=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
# CONFIG_SLOW_WORK is not set
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
# CONFIG_MODULE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not setCONFIG_BLOCK=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not setCONFIG_DEFAULT_NOOP=yCONFIG_DEFAULT_IOSCHED="noop"
# CONFIG_FREEZER is not set
#
# Processor type and features
#
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
# CONFIG_SMP is not set
# CONFIG_SPARSE_IRQ is not set CONFIG_X86_MPPARSE=y
# CONFIG_X86_EXTENDED_PLATFORM is not set
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set # CONFIG_PARAVIRT_GUEST is not set
# CONFIG_MEMTEST is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set CONFIG_GENERIC_CPU=yCONFIG_X86_CPU=y CONFIG_X86_L1_CACHE_BYTES=64 CONFIG_X86_INTERNODE_CACHE_BYTES=64 CONFIG_X86_CMPXCHG=y CONFIG_X86_L1_CACHE_SHIFT=6 CONFIG_X86_WP_WORKS_OK=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y CONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=y CONFIG_CPU_SUP_CENTAUR=y
# CONFIG_X86_DS is not set CONFIG_HPET_TIMER=yCONFIG_DMI=yCONFIG_GART_IOMMU=yCONFIG_SWIOTLB=yCONFIG_IOMMU_HELPER=y
# CONFIG_IOMMU_API is not set CONFIG_NR_CPUS=1CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set # CONFIG_X86_MCE is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
# CONFIG_X86_CPU_DEBUG is not set CONFIG_ARCH_PHYS_ADDR_T_64BIT=y CONFIG_DIRECT_GBPAGES=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_SELECT_MEMORY_MODEL=y
# CONFIG_FLATMEM_MANUAL is not set
# CONFIG_DISCONTIGMEM_MANUAL is not set CONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=y CONFIG_HAVE_MEMORY_PRESENT=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
# CONFIG_SPARSEMEM_VMEMMAP is not set
# CONFIG_MEMORY_HOTPLUG is not set CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_HAVE_MLOCK=y CONFIG_HAVE_MLOCKED_PAGE_BIT=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not set # CONFIG_X86_RESERVE_LOW_64K is not set
# CONFIG_MTRR is not set
# CONFIG_SECCOMP is not set
# CONFIG_CC_STACKPROTECTOR is not set
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250
# CONFIG_SCHED_HRTICK is not set
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x1000000
# CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x1000000
# CONFIG_CMDLINE_BOOL is not set CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
#
# Power management and ACPI options
#
# CONFIG_PM is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# CONFIG_CPU_IDLE is not set
#
# Memory power savings
#
#
# Bus options (PCI etc.)
#CONFIG_PCI=yCONFIG_PCI_DIRECT=yCONFIG_PCI_DOMAINS=y
# CONFIG_PCIEPORTBUS is not setCONFIG_ARCH_SUPPORTS_MSI=y
# CONFIG_PCI_MSI is not setCONFIG_PCI_LEGACY=y
# CONFIG_PCI_STUB is not setCONFIG_HT_IRQ=y
# CONFIG_PCI_IOV is not setCONFIG_ISA_DMA_API=yCONFIG_K8_NB=y
# CONFIG_PCCARD is not set
# CONFIG_HOTPLUG_PCI is not set
#
# Executable file formats / Emulations
#
# CONFIG_BINFMT_ELF is not set
# CONFIG_HAVE_AOUT is not set
# CONFIG_BINFMT_MISC is not set
# CONFIG_IA32_EMULATION is not set
# CONFIG_COMPAT_FOR_U64_ALIGNMENT is not set
# CONFIG_NET is not set
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_STANDALONE=y
# CONFIG_PREVENT_FIRMWARE_BUILD is not setCONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not setCONFIG_EXTRA_FIRMWARE=""
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_MTD is not set
# CONFIG_PARPORT is not set
# CONFIG_BLK_DEV is not set
# CONFIG_MISC_DEVICES is not setCONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
# CONFIG_SCSI is not set
# CONFIG_SCSI_DMA is not set
# CONFIG_SCSI_NETLINK is not set
# CONFIG_ATA is not set
# CONFIG_MD is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
#
# You can enable one or both FireWire driver stacks. #
#
# See the help texts for more information.
#
# CONFIG_FIREWIRE is not set
# CONFIG_IEEE1394 is not set
# CONFIG_I2O is not set
# CONFIG_MACINTOSH_DRIVERS is not set
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_POLLDEV is not set
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
# CONFIG_DEVKMEM is not set
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not setCONFIG_FIX_EARLYCON_MEM=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_JSM is not setCONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not set
# CONFIG_PC8736x_GPIO is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not setCONFIG_DEVPORT=y
# CONFIG_I2C is not set
# CONFIG_SPI is not set
#
# PPS support
#CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
# CONFIG_GPIOLIB is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
# CONFIG_THERMAL_HWMON is not set
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=y
#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
#
# Multifunction device drivers
#
# CONFIG_MFD_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_REGULATOR is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_DRM is not set
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
# CONFIG_FB is not set
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
#
# Display device support
#
# CONFIG_DISPLAY_SUPPORT is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not setCONFIG_DUMMY_CONSOLE=y
# CONFIG_SOUND is not set
# CONFIG_HID_SUPPORT is not set
# CONFIG_USB_SUPPORT 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_INFINIBAND is not set
# CONFIG_EDAC is not set
# CONFIG_RTC_CLASS is not set
# CONFIG_DMADEVICES is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
#
# TI VLYNQ
#CONFIG_STAGING=y
# CONFIG_STAGING_EXCLUDE_BUILD is not set
# CONFIG_ME4000 is not setCONFIG_MEILHAUS=mCONFIG_ME0600=m
# CONFIG_ME0900 is not set
# CONFIG_ME1000 is not set
# CONFIG_ME1400 is not set
# CONFIG_ME1600 is not set
# CONFIG_ME4600 is not set
# CONFIG_ME6000 is not set
# CONFIG_ME8100 is not set
# CONFIG_ME8200 is not set
# CONFIG_MEDUMMY is not set
# CONFIG_ECHO is not set
# CONFIG_COMEDI is not set
# CONFIG_ALTERA_PCIE_CHDMA is not set
#
# Android
#
# CONFIG_ANDROID is not set
# CONFIG_B3DFG is not set
# CONFIG_HECI is not set
# CONFIG_VT6655 is not set
# CONFIG_X86_PLATFORM_DEVICES is not set
#
# Firmware Drivers
#
# CONFIG_EDD is not setCONFIG_FIRMWARE_MEMMAP=y
# CONFIG_DELL_RBU is not set
# CONFIG_DCDBAS is not set
# CONFIG_DMIID is not set
# CONFIG_ISCSI_IBFT_FIND is not set
#
# File systems
#
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
# CONFIG_EXT4_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_XFS_FS is not setCONFIG_FILE_LOCKING=y
# CONFIG_FSNOTIFY is not set
# CONFIG_DNOTIFY is not set
# CONFIG_INOTIFY is not set
# CONFIG_INOTIFY_USER is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# Caches
#
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not setCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=y
# CONFIG_TMPFS is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_CONFIGFS_FS is not set
# CONFIG_MISC_FILESYSTEMS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
# CONFIG_NLS is not set
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set
# CONFIG_ENABLE_WARN_DEPRECATED is not set
# CONFIG_ENABLE_MUST_CHECK is not setCONFIG_FRAME_WARN=2048
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_UNUSED_SYMBOLS is not setCONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_SLUB_DEBUG_ON is not set
# CONFIG_SLUB_STATS is not setCONFIG_STACKTRACE=yCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_ARCH_WANT_FRAME_POINTERS=yCONFIG_FRAME_POINTER=y
# CONFIG_RCU_CPU_STALL_DETECTOR is not set
# CONFIG_LATENCYTOP is not set
# CONFIG_SYSCTL_SYSCALL_CHECK is not setCONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FTRACE_NMI_ENTER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=yCONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_FTRACE_SYSCALLS=yCONFIG_RING_BUFFER=yCONFIG_FTRACE_NMI_ENTER=yCONFIG_EVENT_TRACING=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_TRACING=yCONFIG_GENERIC_TRACER=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=yCONFIG_FUNCTION_TRACER=yCONFIG_FUNCTION_GRAPH_TRACER=y
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SYSPROF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_BOOT_TRACER is not setCONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set
# CONFIG_PROFILE_ALL_BRANCHES is not set
# CONFIG_POWER_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_KMEMTRACE is not set
# CONFIG_WORKQUEUE_TRACER is not set
# CONFIG_BLK_DEV_IO_TRACE is not setCONFIG_DYNAMIC_FTRACE=y
# CONFIG_FUNCTION_PROFILER is not setCONFIG_FTRACE_MCOUNT_RECORD=y
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
# CONFIG_DYNAMIC_DEBUG is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_SAMPLES is not setCONFIG_HAVE_ARCH_KGDB=yCONFIG_HAVE_ARCH_KMEMCHECK=y
# CONFIG_STRICT_DEVMEM is not set
# CONFIG_X86_VERBOSE_BOOTUP is not setCONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set
# CONFIG_IOMMU_STRESS is not setCONFIG_HAVE_MMIOTRACE_SUPPORT=yCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not setCONFIG_DEFAULT_IO_DELAY_TYPE=0
# CONFIG_OPTIMIZE_INLINING is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
# CONFIG_SECURITYFS is not set
# CONFIG_SECURITY_FILE_CAPABILITIES is not set
# CONFIG_CRYPTO is not setCONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_IRQCHIP=y
# CONFIG_VIRTUALIZATION is not setCONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_GENERIC_FIND_LAST_BIT=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 setCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=y
Hi Roland,
Quoted 9 lines · Roland Dreier
Commit
fc4c7355("ftrace: Fix the conditional that updates $ref_func") breaks the build ofdrivers/staging/meilhauswith ftrace enabled:CC [M]
drivers/staging/meilhaus/me0600_device.o
No function to reference atscripts/recordmcount.plline 339, <IN> line 258. make[4]: *** [drivers/staging/meilhaus/me0600_device.o] Error 9Yes, that's crazy, but the situation is the following:
Quoted 8 lines
- for some reason I can't fathom, the meilhaus driver declares
me0600_pci_constructor()as weak indrivers/staging/meilhaus/me0600_device.h-
me0600_pci_constructor()is the only function in .text indrivers/staging/meilhaus/me0600_device.cso recordmcount.pl ends up finding only one weak function in .text, and so it never sets $ref_func before calling
update_funcs().
Ug, I figured this would happen. I think I have a patch somewhere that can handle this.
Quoted 5 lines
I don't understand the details of this stuff well enough to understand what the right fix is -- what the driver is doing is crazy, but I guess recordmcount.pl should be able to handle an object file with only weak functions in it?
It should just simply ignore it, but let me write up a patch (if I can't find the one I'm thinking about) and see if it fixes the issue.
Quoted 6 lines
It's not a big deal for me, since I'm only building this stuff as part of build testing coverage, but I guess this will be a problem for distros.
BTW, a fairly minimal config that hits this problem is:
Should be fixed soon.
Thanks!
-- Steve
Quoted 743 lines
#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.31-rc5
# Thu Aug 6 14:29:08 2009
#CONFIG_64BIT=y
#CONFIG_X86_32is not setCONFIG_X86_64=yCONFIG_X86=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"CONFIG_GENERIC_TIME=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_HAVE_LATENCYTOP_SUPPORT=yCONFIG_FAST_CMPXCHG_LOCAL=yCONFIG_MMU=yCONFIG_ZONE_DMA=yCONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_IOMAP=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_GENERIC_HWEIGHT=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_RWSEM_GENERIC_SPINLOCK=y
#CONFIG_RWSEM_XCHGADD_ALGORITHMis not setCONFIG_ARCH_HAS_CPU_IDLE_WAIT=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HAS_DEFAULT_IDLE=yCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_HAVE_DYNAMIC_PER_CPU_AREA=y
#CONFIG_HAVE_CPUMASK_OF_CPU_MAPis not setCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_ZONE_DMA32=yCONFIG_ARCH_POPULATES_NODE_MAP=yCONFIG_AUDIT_ARCH=yCONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=yCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=yCONFIG_GENERIC_HARDIRQS=yCONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=yCONFIG_GENERIC_IRQ_PROBE=y
#CONFIG_KTIME_SCALARis not setCONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"CONFIG_CONSTRUCTORS=y#
# General setup
#
#CONFIG_EXPERIMENTALis not setCONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_LOCALVERSION=""
#CONFIG_LOCALVERSION_AUTOis not setCONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_KERNEL_GZIP=y
#CONFIG_KERNEL_BZIP2is not set
#CONFIG_KERNEL_LZMAis not set
#CONFIG_SWAPis not set
#CONFIG_SYSVIPCis not set
#CONFIG_BSD_PROCESS_ACCTis not set#
# RCU Subsystem
#
#CONFIG_CLASSIC_RCUis not setCONFIG_TREE_RCU=y
#CONFIG_PREEMPT_RCUis not set
#CONFIG_RCU_TRACEis not setCONFIG_RCU_FANOUT=64
#CONFIG_RCU_FANOUT_EXACTis not set
#CONFIG_TREE_RCU_TRACEis not set
#CONFIG_PREEMPT_RCU_TRACEis not set
#CONFIG_IKCONFIGis not setCONFIG_LOG_BUF_SHIFT=17CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#CONFIG_CGROUPSis not set
#CONFIG_SYSFS_DEPRECATED_V2is not set
#CONFIG_RELAYis not setCONFIG_NAMESPACES=y
#CONFIG_UTS_NSis not set
#CONFIG_BLK_DEV_INITRDis not set
#CONFIG_CC_OPTIMIZE_FOR_SIZEis not setCONFIG_SYSCTL=yCONFIG_ANON_INODES=y
#CONFIG_EMBEDDEDis not setCONFIG_SYSCTL_SYSCALL=yCONFIG_KALLSYMS=y
#CONFIG_KALLSYMS_EXTRA_PASSis not setCONFIG_HOTPLUG=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_HAVE_PERF_COUNTERS=y#
# Performance Counters
#
#CONFIG_PERF_COUNTERSis not setCONFIG_VM_EVENT_COUNTERS=yCONFIG_PCI_QUIRKS=yCONFIG_SLUB_DEBUG=y
#CONFIG_STRIP_ASM_SYMSis not set
#CONFIG_COMPAT_BRKis not set
#CONFIG_SLABis not setCONFIG_SLUB=y
#CONFIG_SLOBis not set
#CONFIG_PROFILINGis not setCONFIG_TRACEPOINTS=yCONFIG_MARKERS=yCONFIG_HAVE_OPROFILE=y
#CONFIG_KPROBESis not setCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_ATTRS=yCONFIG_HAVE_DMA_API_DEBUG=y#
# GCOV-based kernel profiling
#
#CONFIG_GCOV_KERNELis not set
#CONFIG_SLOW_WORKis not set
#CONFIG_HAVE_GENERIC_DMA_COHERENTis not setCONFIG_SLABINFO=yCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
#CONFIG_MODULE_FORCE_LOADis not set
#CONFIG_MODULE_UNLOADis not set
#CONFIG_MODVERSIONSis not set
#CONFIG_MODULE_SRCVERSION_ALLis not setCONFIG_BLOCK=y
#CONFIG_BLK_DEV_BSGis not set
#CONFIG_BLK_DEV_INTEGRITYis not set#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=y
#CONFIG_IOSCHED_ASis not set
#CONFIG_IOSCHED_DEADLINEis not set
#CONFIG_IOSCHED_CFQis not set
#CONFIG_DEFAULT_ASis not set
#CONFIG_DEFAULT_DEADLINEis not set
#CONFIG_DEFAULT_CFQis not setCONFIG_DEFAULT_NOOP=yCONFIG_DEFAULT_IOSCHED="noop"
#CONFIG_FREEZERis not set#
# Processor type and features
#
#CONFIG_NO_HZis not set
#CONFIG_HIGH_RES_TIMERSis not setCONFIG_GENERIC_CLOCKEVENTS_BUILD=y
#CONFIG_SMPis not set
#CONFIG_SPARSE_IRQis not setCONFIG_X86_MPPARSE=y
#CONFIG_X86_EXTENDED_PLATFORMis not set
#CONFIG_SCHED_OMIT_FRAME_POINTERis not set #CONFIG_PARAVIRT_GUESTis not set
#CONFIG_MEMTESTis not set
#CONFIG_M386is not set
#CONFIG_M486is not set
#CONFIG_M586is not set
#CONFIG_M586TSCis not set
#CONFIG_M586MMXis not set
#CONFIG_M686is not set
#CONFIG_MPENTIUMIIis not set
#CONFIG_MPENTIUMIIIis not set
#CONFIG_MPENTIUMMis not set
#CONFIG_MPENTIUM4is not set
#CONFIG_MK6is not set
#CONFIG_MK7is not set
#CONFIG_MK8is not set
#CONFIG_MCRUSOEis not set
#CONFIG_MEFFICEONis not set
#CONFIG_MWINCHIPC6is not set
#CONFIG_MWINCHIP3Dis not set
#CONFIG_MGEODEGX1is not set
#CONFIG_MGEODE_LXis not set
#CONFIG_MCYRIXIIIis not set
#CONFIG_MVIAC3_2is not set
#CONFIG_MVIAC7is not set
#CONFIG_MPSCis not set
#CONFIG_MCORE2is not setCONFIG_GENERIC_CPU=yCONFIG_X86_CPU=yCONFIG_X86_L1_CACHE_BYTES=64CONFIG_X86_INTERNODE_CACHE_BYTES=64CONFIG_X86_CMPXCHG=yCONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_WP_WORKS_OK=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_CENTAUR=y
#CONFIG_X86_DSis not setCONFIG_HPET_TIMER=yCONFIG_DMI=yCONFIG_GART_IOMMU=yCONFIG_SWIOTLB=yCONFIG_IOMMU_HELPER=y
#CONFIG_IOMMU_APIis not setCONFIG_NR_CPUS=1CONFIG_PREEMPT_NONE=y
#CONFIG_PREEMPT_VOLUNTARYis not set
#CONFIG_PREEMPTis not setCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
#CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQSis not set #CONFIG_X86_MCEis not set
#CONFIG_I8Kis not set
#CONFIG_MICROCODEis not set
#CONFIG_X86_MSRis not set
#CONFIG_X86_CPUIDis not set
#CONFIG_X86_CPU_DEBUGis not setCONFIG_ARCH_PHYS_ADDR_T_64BIT=yCONFIG_DIRECT_GBPAGES=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_SELECT_MEMORY_MODEL=y
#CONFIG_FLATMEM_MANUALis not set
#CONFIG_DISCONTIGMEM_MANUALis not setCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_HAVE_MEMORY_PRESENT=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
#CONFIG_SPARSEMEM_VMEMMAPis not set
#CONFIG_MEMORY_HOTPLUGis not setCONFIG_PAGEFLAGS_EXTENDED=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_PHYS_ADDR_T_64BIT=yCONFIG_ZONE_DMA_FLAG=1CONFIG_BOUNCE=yCONFIG_VIRT_TO_BUS=yCONFIG_HAVE_MLOCK=yCONFIG_HAVE_MLOCKED_PAGE_BIT=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096
#CONFIG_X86_CHECK_BIOS_CORRUPTIONis not set #CONFIG_X86_RESERVE_LOW_64Kis not set
#CONFIG_MTRRis not set
#CONFIG_SECCOMPis not set
#CONFIG_CC_STACKPROTECTORis not set
#CONFIG_HZ_100is not setCONFIG_HZ_250=y
#CONFIG_HZ_300is not set
#CONFIG_HZ_1000is not setCONFIG_HZ=250
#CONFIG_SCHED_HRTICKis not set
#CONFIG_KEXECis not set
#CONFIG_CRASH_DUMPis not setCONFIG_PHYSICAL_START=0x1000000
#CONFIG_RELOCATABLEis not setCONFIG_PHYSICAL_ALIGN=0x1000000
#CONFIG_CMDLINE_BOOLis not setCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y#
# Power management and ACPI options
#
#CONFIG_PMis not set#
# CPU Frequency scaling
#
#CONFIG_CPU_FREQis not set
#CONFIG_CPU_IDLEis not set#
# Memory power savings
##
# Bus options (PCI etc.)
#CONFIG_PCI=yCONFIG_PCI_DIRECT=yCONFIG_PCI_DOMAINS=y
#CONFIG_PCIEPORTBUSis not setCONFIG_ARCH_SUPPORTS_MSI=y
#CONFIG_PCI_MSIis not setCONFIG_PCI_LEGACY=y
#CONFIG_PCI_STUBis not setCONFIG_HT_IRQ=y
#CONFIG_PCI_IOVis not setCONFIG_ISA_DMA_API=yCONFIG_K8_NB=y
#CONFIG_PCCARDis not set
#CONFIG_HOTPLUG_PCIis not set#
# Executable file formats / Emulations
#
#CONFIG_BINFMT_ELFis not set
#CONFIG_HAVE_AOUTis not set
#CONFIG_BINFMT_MISCis not set
#CONFIG_IA32_EMULATIONis not set
#CONFIG_COMPAT_FOR_U64_ALIGNMENTis not set
#CONFIG_NETis not set#
# Device Drivers
##
# Generic Driver Options
#CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"CONFIG_STANDALONE=y
#CONFIG_PREVENT_FIRMWARE_BUILDis not setCONFIG_FW_LOADER=y
#CONFIG_FIRMWARE_IN_KERNELis not setCONFIG_EXTRA_FIRMWARE=""
#CONFIG_SYS_HYPERVISORis not set
#CONFIG_MTDis not set
#CONFIG_PARPORTis not set
#CONFIG_BLK_DEVis not set
#CONFIG_MISC_DEVICESis not setCONFIG_HAVE_IDE=y
#CONFIG_IDEis not set#
# SCSI device support
#
#CONFIG_RAID_ATTRSis not set
#CONFIG_SCSIis not set
#CONFIG_SCSI_DMAis not set
#CONFIG_SCSI_NETLINKis not set
#CONFIG_ATAis not set
#CONFIG_MDis not set
#CONFIG_FUSIONis not set#
# IEEE 1394 (FireWire) support
##
# You can enable one or both FireWire driver stacks. ##
# See the help texts for more information.
#
#CONFIG_FIREWIREis not set
#CONFIG_IEEE1394is not set
#CONFIG_I2Ois not set
#CONFIG_MACINTOSH_DRIVERSis not set
#CONFIG_PHONEis not set#
# Input device support
#CONFIG_INPUT=y
#CONFIG_INPUT_FF_MEMLESSis not set
#CONFIG_INPUT_POLLDEVis not set#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
#CONFIG_INPUT_MOUSEDEV_PSAUXis not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
#CONFIG_INPUT_JOYDEVis not set
#CONFIG_INPUT_EVDEVis not set
#CONFIG_INPUT_EVBUGis not set#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
#CONFIG_KEYBOARD_LKKBDis not set
#CONFIG_KEYBOARD_NEWTONis not set
#CONFIG_KEYBOARD_STOWAWAYis not set
#CONFIG_KEYBOARD_SUNKBDis not set
#CONFIG_KEYBOARD_XTKBDis not set
#CONFIG_INPUT_MOUSEis not set
#CONFIG_INPUT_JOYSTICKis not set
#CONFIG_INPUT_TABLETis not set
#CONFIG_INPUT_TOUCHSCREENis not set
#CONFIG_INPUT_MISCis not set#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_SERIO_I8042=y
#CONFIG_SERIO_SERPORTis not set
#CONFIG_SERIO_CT82C710is not set
#CONFIG_SERIO_PCIPS2is not setCONFIG_SERIO_LIBPS2=y
#CONFIG_SERIO_RAWis not set
#CONFIG_GAMEPORTis not set#
# Character devices
#CONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
#CONFIG_VT_HW_CONSOLE_BINDINGis not set
#CONFIG_DEVKMEMis not set
#CONFIG_SERIAL_NONSTANDARDis not set#
# Serial drivers
#
#CONFIG_SERIAL_8250is not setCONFIG_FIX_EARLYCON_MEM=y#
# Non-8250 serial port support
#
#CONFIG_SERIAL_JSMis not setCONFIG_UNIX98_PTYS=y
#CONFIG_DEVPTS_MULTIPLE_INSTANCESis not set
#CONFIG_LEGACY_PTYSis not set
#CONFIG_IPMI_HANDLERis not set
#CONFIG_HW_RANDOMis not set
#CONFIG_NVRAMis not set
#CONFIG_RTCis not set
#CONFIG_GEN_RTCis not set
#CONFIG_R3964is not set
#CONFIG_APPLICOMis not set
#CONFIG_MWAVEis not set
#CONFIG_PC8736x_GPIOis not set
#CONFIG_RAW_DRIVERis not set
#CONFIG_HANGCHECK_TIMERis not setCONFIG_DEVPORT=y
#CONFIG_I2Cis not set
#CONFIG_SPIis not set#
# PPS support
#CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
#CONFIG_GPIOLIBis not set
#CONFIG_W1is not set
#CONFIG_POWER_SUPPLYis not set
#CONFIG_HWMONis not set
#CONFIG_THERMALis not set
#CONFIG_THERMAL_HWMONis not set
#CONFIG_WATCHDOGis not setCONFIG_SSB_POSSIBLE=y#
# Sonics Silicon Backplane
#
#CONFIG_SSBis not set#
# Multifunction device drivers
#
#CONFIG_MFD_COREis not set
#CONFIG_MFD_SM501is not set
#CONFIG_HTC_PASIC3is not set
#CONFIG_MFD_TMIOis not set
#CONFIG_REGULATORis not set
#CONFIG_MEDIA_SUPPORTis not set#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_AMD64=y
#CONFIG_AGP_INTELis not set
#CONFIG_AGP_SISis not set
#CONFIG_AGP_VIAis not set
#CONFIG_DRMis not set
#CONFIG_VGASTATEis not set
#CONFIG_VIDEO_OUTPUT_CONTROLis not set
#CONFIG_FBis not set
#CONFIG_BACKLIGHT_LCD_SUPPORTis not set#
# Display device support
#
#CONFIG_DISPLAY_SUPPORTis not set#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
#CONFIG_VGACON_SOFT_SCROLLBACKis not setCONFIG_DUMMY_CONSOLE=y
#CONFIG_SOUNDis not set
#CONFIG_HID_SUPPORTis not set
#CONFIG_USB_SUPPORTis not set
#CONFIG_MMCis not set
#CONFIG_MEMSTICKis not set
#CONFIG_NEW_LEDSis not set
#CONFIG_ACCESSIBILITYis not set
#CONFIG_INFINIBANDis not set
#CONFIG_EDACis not set
#CONFIG_RTC_CLASSis not set
#CONFIG_DMADEVICESis not set
#CONFIG_AUXDISPLAYis not set
#CONFIG_UIOis not set#
# TI VLYNQ
#CONFIG_STAGING=y
#CONFIG_STAGING_EXCLUDE_BUILDis not set
#CONFIG_ME4000is not setCONFIG_MEILHAUS=mCONFIG_ME0600=m
#CONFIG_ME0900is not set
#CONFIG_ME1000is not set
#CONFIG_ME1400is not set
#CONFIG_ME1600is not set
#CONFIG_ME4600is not set
#CONFIG_ME6000is not set
#CONFIG_ME8100is not set
#CONFIG_ME8200is not set
#CONFIG_MEDUMMYis not set
#CONFIG_ECHOis not set
#CONFIG_COMEDIis not set
#CONFIG_ALTERA_PCIE_CHDMAis not set#
# Android
#
#CONFIG_ANDROIDis not set
#CONFIG_B3DFGis not set
#CONFIG_HECIis not set
#CONFIG_VT6655is not set
#CONFIG_X86_PLATFORM_DEVICESis not set#
# Firmware Drivers
#
#CONFIG_EDDis not setCONFIG_FIRMWARE_MEMMAP=y
#CONFIG_DELL_RBUis not set
#CONFIG_DCDBASis not set
#CONFIG_DMIIDis not set
#CONFIG_ISCSI_IBFT_FINDis not set#
# File systems
#
#CONFIG_EXT2_FSis not set
#CONFIG_EXT3_FSis not set
#CONFIG_EXT4_FSis not set
#CONFIG_REISERFS_FSis not set
#CONFIG_JFS_FSis not set
#CONFIG_FS_POSIX_ACLis not set
#CONFIG_XFS_FSis not setCONFIG_FILE_LOCKING=y
#CONFIG_FSNOTIFYis not set
#CONFIG_DNOTIFYis not set
#CONFIG_INOTIFYis not set
#CONFIG_INOTIFY_USERis not set
#CONFIG_QUOTAis not set
#CONFIG_AUTOFS_FSis not set
#CONFIG_AUTOFS4_FSis not set
#CONFIG_FUSE_FSis not set#
# Caches
##
# CD-ROM/DVD Filesystems
#
#CONFIG_ISO9660_FSis not set
#CONFIG_UDF_FSis not set#
# DOS/FAT/NT Filesystems
#
#CONFIG_MSDOS_FSis not set
#CONFIG_VFAT_FSis not set
#CONFIG_NTFS_FSis not set#
# Pseudo filesystems
#CONFIG_PROC_FS=y
#CONFIG_PROC_KCOREis not setCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_SYSFS=y
#CONFIG_TMPFSis not set
#CONFIG_HUGETLBFSis not set
#CONFIG_HUGETLB_PAGEis not set
#CONFIG_CONFIGFS_FSis not set
#CONFIG_MISC_FILESYSTEMSis not set#
# Partition Types
#
#CONFIG_PARTITION_ADVANCEDis not setCONFIG_MSDOS_PARTITION=y
#CONFIG_NLSis not set#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=y
#CONFIG_PRINTK_TIMEis not set
#CONFIG_ENABLE_WARN_DEPRECATEDis not set
#CONFIG_ENABLE_MUST_CHECKis not setCONFIG_FRAME_WARN=2048
#CONFIG_MAGIC_SYSRQis not set
#CONFIG_UNUSED_SYMBOLSis not setCONFIG_DEBUG_FS=y
#CONFIG_HEADERS_CHECKis not set
#CONFIG_DEBUG_KERNELis not set
#CONFIG_SLUB_DEBUG_ONis not set
#CONFIG_SLUB_STATSis not setCONFIG_STACKTRACE=yCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_MEMORY_INIT=yCONFIG_ARCH_WANT_FRAME_POINTERS=yCONFIG_FRAME_POINTER=y
#CONFIG_RCU_CPU_STALL_DETECTORis not set
#CONFIG_LATENCYTOPis not set
#CONFIG_SYSCTL_SYSCALL_CHECKis not setCONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FTRACE_NMI_ENTER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_FP_TEST=yCONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_FTRACE_SYSCALLS=yCONFIG_RING_BUFFER=yCONFIG_FTRACE_NMI_ENTER=yCONFIG_EVENT_TRACING=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_TRACING=yCONFIG_GENERIC_TRACER=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=yCONFIG_FUNCTION_TRACER=yCONFIG_FUNCTION_GRAPH_TRACER=y
#CONFIG_IRQSOFF_TRACERis not set
#CONFIG_SYSPROF_TRACERis not set
#CONFIG_SCHED_TRACERis not set
#CONFIG_FTRACE_SYSCALLSis not set
#CONFIG_BOOT_TRACERis not setCONFIG_BRANCH_PROFILE_NONE=y
#CONFIG_PROFILE_ANNOTATED_BRANCHESis not set
#CONFIG_PROFILE_ALL_BRANCHESis not set
#CONFIG_POWER_TRACERis not set
#CONFIG_STACK_TRACERis not set
#CONFIG_KMEMTRACEis not set
#CONFIG_WORKQUEUE_TRACERis not set
#CONFIG_BLK_DEV_IO_TRACEis not setCONFIG_DYNAMIC_FTRACE=y
#CONFIG_FUNCTION_PROFILERis not setCONFIG_FTRACE_MCOUNT_RECORD=y
#CONFIG_FTRACE_STARTUP_TESTis not set
#CONFIG_MMIOTRACEis not set
#CONFIG_RING_BUFFER_BENCHMARKis not set
#CONFIG_PROVIDE_OHCI1394_DMA_INITis not set
#CONFIG_DYNAMIC_DEBUGis not set
#CONFIG_DMA_API_DEBUGis not set
#CONFIG_SAMPLESis not setCONFIG_HAVE_ARCH_KGDB=yCONFIG_HAVE_ARCH_KMEMCHECK=y
#CONFIG_STRICT_DEVMEMis not set
#CONFIG_X86_VERBOSE_BOOTUPis not setCONFIG_EARLY_PRINTK=y
#CONFIG_EARLY_PRINTK_DBGPis not set
#CONFIG_IOMMU_STRESSis not setCONFIG_HAVE_MMIOTRACE_SUPPORT=yCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3CONFIG_IO_DELAY_0X80=y
#CONFIG_IO_DELAY_0XEDis not set
#CONFIG_IO_DELAY_UDELAYis not set
#CONFIG_IO_DELAY_NONEis not setCONFIG_DEFAULT_IO_DELAY_TYPE=0
#CONFIG_OPTIMIZE_INLININGis not set#
# Security options
#
#CONFIG_KEYSis not set
#CONFIG_SECURITYis not set
#CONFIG_SECURITYFSis not set
#CONFIG_SECURITY_FILE_CAPABILITIESis not set
#CONFIG_CRYPTOis not setCONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_IRQCHIP=y
#CONFIG_VIRTUALIZATIONis not setCONFIG_BINARY_PRINTF=y#
# Library routines
#CONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_FIND_NEXT_BIT=yCONFIG_GENERIC_FIND_LAST_BIT=y
#CONFIG_CRC_CCITTis not set
#CONFIG_CRC16is not set
#CONFIG_CRC_T10DIFis not set
#CONFIG_CRC_ITU_Tis not set
#CONFIG_CRC32is not set
#CONFIG_CRC7is not set
#CONFIG_LIBCRC32Cis not setCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_DMA=y
Quoted 17 lines · Steven Rostedt
Hi Roland,
Quoted 12 lines · Roland Dreier
Commit
fc4c7355("ftrace: Fix the conditional that updates $ref_func") breaks the build ofdrivers/staging/meilhauswith ftrace enabled:CC [M]
drivers/staging/meilhaus/me0600_device.o
No function to reference atscripts/recordmcount.plline 339, <IN> line 258. make[4]: *** [drivers/staging/meilhaus/me0600_device.o] Error 9Yes, that's crazy, but the situation is the following:
- for some reason I can't fathom, the meilhaus driver declares
me0600_pci_constructor()as weak indrivers/staging/meilhaus/me0600_device.h
Quoted 8 lines
Quoted 5 lines
-
me0600_pci_constructor()is the only function in .text indrivers/staging/meilhaus/me0600_device.cso recordmcount.pl ends up finding only one weak function in .text, and so it never sets $ref_func before calling
update_funcs().Ug, I figured this would happen. I think I have a patch somewhere that can handle this.
Don't make ftrace do a lot of work if it's a bug in the staging driver. Odds are the code in there should be fixed instead, I'll gladly take a patch to do that.
thanks,
greg k-h
Quoted 24 lines · Greg KH
Quoted 23 lines · Steven Rostedt
Hi Roland,
Quoted 17 lines · Roland Dreier
Commit
fc4c7355("ftrace: Fix the conditional that updates $ref_func") breaks the build ofdrivers/staging/meilhauswith ftrace enabled:CC [M]
drivers/staging/meilhaus/me0600_device.o
No function to reference atscripts/recordmcount.plline 339, <IN> line 258. make[4]: *** [drivers/staging/meilhaus/me0600_device.o] Error 9Yes, that's crazy, but the situation is the following:
- for some reason I can't fathom, the meilhaus driver declares
me0600_pci_constructor()as weak indrivers/staging/meilhaus/me0600_device.h-
me0600_pci_constructor()is the only function in .text indrivers/staging/meilhaus/me0600_device.cso recordmcount.pl ends up finding only one weak function in .text, and so it never sets $ref_func before calling
update_funcs().
Quoted 6 lines
Quoted 2 lines
Ug, I figured this would happen. I think I have a patch somewhere that can handle this.
Don't make ftrace do a lot of work if it's a bug in the staging driver. Odds are the code in there should be fixed instead, I'll gladly take a patch to do that.
Yes the module did something funky, but what broke recordmcount.pl was not something that is not allowed. The code broke because a weak function was the only function in a section. This patch keeps it from crashing.
Hmm, maybe I should make it warn, because a weak function by itself in a section will not be traced.
-- Steve
scripts/recordmcount.pl +2 -2
@@ -393,7 +393,7 @@ while (<IN>) { $read_function = 0; } # print out any recorded offsets - update_funcs() if ($text_found); + update_funcs() if (defined($ref_func)); # reset all markers and arrays $text_found = 0;
@@ -441,7 +441,7 @@ while (<IN>) { } # dump out anymore offsets that may have been found -update_funcs() if ($text_found); +update_funcs() if (defined($ref_func)); # If we did not find any mcount callers, we are done (do nothing). if (!$opened) {
Quoted 6 lines · Steven Rostedt
Yes the module did something funky, but what broke recordmcount.pl was not something that is not allowed. The code broke because a weak function was the only function in a section. This patch keeps it from crashing.
Hmm, maybe I should make it warn, because a weak function by itself in a section will not be traced.
Now the question is, is this a crucial enough change to push for 31, or should we leave this for 32?
This patch is small enough for 31, but to add a warning would require a little more code rework. I can queue this up for 31 and then have the warning ready for 32.
-- Steve
Quoted 24 lines
scripts/recordmcount.pl +2
-2@@ -393,7 +393,7 @@ while (<IN>) { $read_function = 0; } # print out any recorded offsets - update_funcs() if ($text_found); + update_funcs() if (defined($ref_func)); # reset all markers and arrays $text_found = 0;@@ -441,7 +441,7 @@ while (<IN>) { } # dump out anymore offsets that may have been found -update_funcs() if ($text_found); +update_funcs() if (defined($ref_func)); # If we did not find any mcount callers, we are done (do nothing). if (!$opened) {
Quoted 3 lines
Now the question is, is this a crucial enough change to push for 31, or should we leave this for 32?
I would say yes, push it for 31, since a distro is most likely going to want to enable staging drivers and ftrace, and will hit this build breakage.
Quoted 3 lines
This patch is small enough for 31, but to add a warning would require a little more code rework. I can queue this up for 31 and then have the warning ready for 32.
Sounds like a good plan. The warning will probably push someone to figure out what the meilhaus code is really trying to do.
- R.
Quoted 8 lines · Roland Dreier
Quoted 3 lines
Now the question is, is this a crucial enough change to push for 31, or should we leave this for 32?
I would say yes, push it for 31, since a distro is most likely going to want to enable staging drivers and ftrace, and will hit this build breakage.
Quoted 6 lines
Quoted 3 lines
This patch is small enough for 31, but to add a warning would require a little more code rework. I can queue this up for 31 and then have the warning ready for 32.
Sounds like a good plan. The warning will probably push someone to figure out what the meilhaus code is really trying to do.
I agree, that's fine with me.
thanks,
greg k-h
[GIT PULL][2.6.31] tracing: have recordmcount.pl handle a section with only weak functions
Ingo,
Please pull the latest tip/tracing/urgent tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/tracing/urgent
Steven Rostedt (1):
tracing: have recordmcount.pl handle a section with only weak functions
----
scripts/recordmcount.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --------------------------- commit 0484219980fd985528f66bf620362859e617bb37 Author: Steven Rostedt <[email protected]> Date: Thu Aug 6 19:53:18 2009 -0400
tracing: have recordmcount.pl handle a section with only weak functions
Roland Dreier found that a section that contained only a weak function in one of the staging drivers and this caused recordmcount.pl to spit out a warning and fail. Although it is strange that a driver would have a weak function, and this function only be used in one place, it should not be something to make recordmcount.pl fail.
This patch fixes the issue in a simple manner. If only weak functions exist in a section, than that section will not be recorded.
scripts/recordmcount.pl +2 -2
@@ -393,7 +393,7 @@ while (<IN>) { $read_function = 0; } # print out any recorded offsets - update_funcs() if ($text_found); + update_funcs() if (defined($ref_func)); # reset all markers and arrays $text_found = 0;
@@ -444,7 +444,7 @@ while (<IN>) { } # dump out anymore offsets that may have been found -update_funcs() if ($text_found); +update_funcs() if (defined($ref_func)); # If we did not find any mcount callers, we are done (do nothing). if (!$opened) {
Re: [GIT PULL][2.6.31] tracing: have recordmcount.pl handle a section with only weak functions
Quoted 9 lines · Steven Rostedt
Ingo,
Please pull the latest tip/tracing/urgent tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git
tip/tracing/urgent
Quoted 6 lines
Steven Rostedt (1):
tracing: have recordmcount.pl handle a section with only weak functions----
scripts/recordmcount.pl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
pulled, thanks Steve!
Ingo