* kobject link failure @ 2007-07-19 18:03 Jan Engelhardt 2007-07-19 18:11 ` Gabriel C 2007-07-19 19:18 ` Greg KH 0 siblings, 2 replies; 10+ messages in thread From: Jan Engelhardt @ 2007-07-19 18:03 UTC (permalink / raw) To: gregkh; +Cc: Linux Kernel Mailing List, kay.sievers [-- Attachment #1: Type: TEXT/PLAIN, Size: 393 bytes --] Hi, top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: LD .tmp_vmlinux1 drivers/built-in.o: In function `store_uevent': core.c:(.text+0x20ebb): undefined reference to `kobject_actions' core.c:(.text+0x20edd): undefined reference to `kobject_actions' make[1]: *** [.tmp_vmlinux1] Error 1 make: *** [_all] Error 2 .config attached. Is it because of CONFIG_HOTPLUG=n? Jan -- [-- Attachment #2: Type: TEXT/plain, Size: 18009 bytes --] # # Automatically generated make config: don't edit # Linux kernel version: 2.6.22 # Thu Jul 19 19:57:26 2007 # CONFIG_X86_32=y CONFIG_GENERIC_TIME=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_SEMAPHORE_SLEEPERS=y CONFIG_X86=y CONFIG_MMU=y CONFIG_ZONE_DMA=y CONFIG_QUICKLIST=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_DMI=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # # General setup # CONFIG_LOCALVERSION="" # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y # CONFIG_POSIX_MQUEUE is not set # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_TASKSTATS is not set # CONFIG_USER_NS is not set # CONFIG_AUDIT is not set # CONFIG_IKCONFIG is not set CONFIG_LOG_BUF_SHIFT=15 # CONFIG_SYSFS_DEPRECATED is not set # CONFIG_RELAY is not set CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="" CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_SYSCTL=y CONFIG_EMBEDDED=y # CONFIG_UID16 is not set CONFIG_SYSCTL_SYSCALL=y CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_ALL is not set # CONFIG_KALLSYMS_EXTRA_PASS is not set # CONFIG_HOTPLUG is not set CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_ANON_INODES=y CONFIG_EPOLL=y CONFIG_SIGNALFD=y CONFIG_TIMERFD=y CONFIG_EVENTFD=y CONFIG_SHMEM=y # CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_SLAB is not set # CONFIG_SLUB is not set CONFIG_SLOB=y CONFIG_RT_MUTEXES=y # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 # CONFIG_MODULES is not set CONFIG_BLOCK=y # CONFIG_LBD is not set # CONFIG_BLK_DEV_IO_TRACE is not set # CONFIG_LSF is not set # # IO Schedulers # CONFIG_IOSCHED_NOOP=y # CONFIG_IOSCHED_AS is not set # CONFIG_IOSCHED_DEADLINE is not set CONFIG_IOSCHED_CFQ=y # CONFIG_DEFAULT_AS is not set # CONFIG_DEFAULT_DEADLINE is not set CONFIG_DEFAULT_CFQ=y # CONFIG_DEFAULT_NOOP is not set CONFIG_DEFAULT_IOSCHED="cfq" # # Processor type and features # # CONFIG_TICK_ONESHOT is not set # CONFIG_NO_HZ is not set # CONFIG_HIGH_RES_TIMERS is not set # CONFIG_SMP is not set CONFIG_X86_PC=y # CONFIG_X86_ELAN is not set # CONFIG_X86_VOYAGER is not set # CONFIG_X86_NUMAQ is not set # CONFIG_X86_SUMMIT is not set # CONFIG_X86_BIGSMP is not set # CONFIG_X86_VISWS is not set # CONFIG_X86_GENERICARCH is not set # CONFIG_X86_ES7000 is not set # CONFIG_PARAVIRT is not set CONFIG_M386=y # 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_MCORE2 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_MWINCHIP2 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_X86_GENERIC is not set CONFIG_X86_L1_CACHE_SHIFT=4 CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_ARCH_HAS_ILOG2_U32 is not set # CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_X86_PPRO_FENCE=y CONFIG_X86_F00F_BUG=y CONFIG_X86_MINIMUM_CPU_FAMILY=3 # CONFIG_HPET_TIMER is not set CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set # CONFIG_X86_UP_APIC is not set # CONFIG_X86_MCE is not set CONFIG_VM86=y # CONFIG_TOSHIBA is not set # CONFIG_I8K is not set # CONFIG_X86_REBOOTFIXUPS is not set # CONFIG_MICROCODE is not set CONFIG_X86_MSR=y CONFIG_X86_CPUID=y # # Firmware Drivers # # CONFIG_EDD is not set # CONFIG_DELL_RBU is not set # CONFIG_DCDBAS is not set # CONFIG_DMIID is not set CONFIG_NOHIGHMEM=y # CONFIG_HIGHMEM4G is not set # CONFIG_HIGHMEM64G is not set CONFIG_VMSPLIT_3G=y # CONFIG_VMSPLIT_3G_OPT is not set # CONFIG_VMSPLIT_2G is not set # CONFIG_VMSPLIT_2G_OPT is not set # CONFIG_VMSPLIT_1G is not set CONFIG_PAGE_OFFSET=0xC0000000 CONFIG_ARCH_FLATMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SELECT_MEMORY_MODEL=y CONFIG_ARCH_POPULATES_NODE_MAP=y CONFIG_SELECT_MEMORY_MODEL=y CONFIG_FLATMEM_MANUAL=y # CONFIG_DISCONTIGMEM_MANUAL is not set # CONFIG_SPARSEMEM_MANUAL is not set CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y CONFIG_SPARSEMEM_STATIC=y CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_RESOURCES_64BIT is not set CONFIG_ZONE_DMA_FLAG=1 CONFIG_BOUNCE=y CONFIG_NR_QUICK=1 CONFIG_VIRT_TO_BUS=y # CONFIG_MATH_EMULATION is not set # CONFIG_MTRR is not set # CONFIG_SECCOMP is not set CONFIG_HZ_100=y # CONFIG_HZ_250 is not set # CONFIG_HZ_300 is not set # CONFIG_HZ_1000 is not set CONFIG_HZ=100 # CONFIG_KEXEC is not set CONFIG_PHYSICAL_START=0x100000 # CONFIG_RELOCATABLE is not set CONFIG_PHYSICAL_ALIGN=0x100000 CONFIG_COMPAT_VDSO=y # # Power management options (ACPI, APM) # # CONFIG_PM is not set # # CPU Frequency scaling # # CONFIG_CPU_FREQ is not set # # Bus options (PCI, PCMCIA, EISA, MCA, ISA) # # CONFIG_PCI is not set # CONFIG_ARCH_SUPPORTS_MSI is not set CONFIG_ISA_DMA_API=y CONFIG_ISA=y # CONFIG_EISA is not set # CONFIG_MCA is not set # CONFIG_SCx200 is not set # # PCCARD (PCMCIA/CardBus) support # # # Executable file formats # CONFIG_BINFMT_ELF=y # CONFIG_BINFMT_AOUT is not set # CONFIG_BINFMT_MISC is not set # # Networking # CONFIG_NET=y # # Networking options # CONFIG_PACKET=y CONFIG_PACKET_MMAP=y CONFIG_UNIX=y # CONFIG_NET_KEY is not set # CONFIG_INET is not set # CONFIG_NETWORK_SECMARK is not set # CONFIG_NETFILTER is not set # CONFIG_ATM is not set # CONFIG_BRIDGE is not set # CONFIG_VLAN_8021Q is not set # CONFIG_DECNET is not set # CONFIG_LLC2 is not set # CONFIG_IPX is not set # CONFIG_ATALK is not set # CONFIG_X25 is not set # CONFIG_LAPB is not set # CONFIG_WAN_ROUTER is not set # # QoS and/or fair queueing # # CONFIG_NET_SCHED is not set # # Network testing # # CONFIG_NET_PKTGEN is not set # CONFIG_HAMRADIO is not set # CONFIG_IRDA is not set # CONFIG_BT is not set # # Wireless # # CONFIG_CFG80211 is not set # CONFIG_WIRELESS_EXT is not set # CONFIG_MAC80211 is not set # CONFIG_IEEE80211 is not set # CONFIG_RFKILL is not set # CONFIG_NET_9P is not set # # Device Drivers # # # Generic Driver Options # # CONFIG_STANDALONE is not set CONFIG_PREVENT_FIRMWARE_BUILD=y # CONFIG_DEBUG_DRIVER is not set # CONFIG_DEBUG_DEVRES is not set # CONFIG_SYS_HYPERVISOR is not set # CONFIG_CONNECTOR is not set # CONFIG_MTD is not set CONFIG_PARPORT=y CONFIG_PARPORT_PC=y CONFIG_PARPORT_PC_FIFO=y # CONFIG_PARPORT_PC_SUPERIO is not set # CONFIG_PARPORT_GSC is not set # CONFIG_PARPORT_AX88796 is not set # CONFIG_PARPORT_1284 is not set CONFIG_PNP=y # CONFIG_PNP_DEBUG is not set # # Protocols # CONFIG_ISAPNP=y CONFIG_PNPBIOS=y CONFIG_PNPBIOS_PROC_FS=y # CONFIG_PNPACPI is not set CONFIG_BLK_DEV=y CONFIG_BLK_DEV_FD=y # CONFIG_BLK_DEV_XD is not set # CONFIG_PARIDE is not set # CONFIG_BLK_DEV_COW_COMMON is not set # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=64000 CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 # CONFIG_CDROM_PKTCDVD is not set # CONFIG_ATA_OVER_ETH is not set # CONFIG_MISC_DEVICES is not set CONFIG_IDE=y CONFIG_IDE_MAX_HWIFS=4 CONFIG_BLK_DEV_IDE=y # # Please see Documentation/ide.txt for help/info on IDE drives # # CONFIG_BLK_DEV_IDE_SATA is not set # CONFIG_BLK_DEV_HD_IDE is not set CONFIG_BLK_DEV_IDEDISK=y CONFIG_IDEDISK_MULTI_MODE=y # CONFIG_BLK_DEV_IDECD is not set # CONFIG_BLK_DEV_IDETAPE is not set # CONFIG_BLK_DEV_IDEFLOPPY is not set # CONFIG_IDE_TASK_IOCTL is not set # CONFIG_IDE_PROC_FS is not set # # IDE chipset support/bugfixes # CONFIG_IDE_GENERIC=y CONFIG_BLK_DEV_CMD640=y CONFIG_BLK_DEV_CMD640_ENHANCED=y CONFIG_BLK_DEV_IDEPNP=y # CONFIG_IDEPCI_PCIBUS_ORDER is not set # CONFIG_IDE_ARM is not set # CONFIG_IDE_CHIPSETS is not set # CONFIG_BLK_DEV_IDEDMA is not set # CONFIG_BLK_DEV_HD 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_MACINTOSH_DRIVERS is not set CONFIG_NETDEVICES=y # CONFIG_NETDEVICES_MULTIQUEUE is not set # CONFIG_DUMMY is not set # CONFIG_MACVLAN is not set # CONFIG_EQUALIZER is not set # CONFIG_TUN is not set # CONFIG_NET_SB1000 is not set # CONFIG_ARCNET is not set # CONFIG_NET_ETHERNET is not set # CONFIG_NETDEV_1000 is not set # CONFIG_NETDEV_10000 is not set # CONFIG_TR is not set # # Wireless LAN # # CONFIG_WLAN_PRE80211 is not set # CONFIG_WLAN_80211 is not set # CONFIG_WAN is not set CONFIG_PLIP=y # CONFIG_PPP is not set CONFIG_SLIP=y CONFIG_SLIP_COMPRESSED=y CONFIG_SLHC=y CONFIG_SLIP_SMART=y CONFIG_SLIP_MODE_SLIP6=y # CONFIG_SHAPER is not set # CONFIG_NETCONSOLE is not set # CONFIG_NETPOLL is not set # CONFIG_NET_POLL_CONTROLLER is not set # CONFIG_ISDN 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 is not set # CONFIG_INPUT_JOYDEV is not set # CONFIG_INPUT_TSDEV is not set # CONFIG_INPUT_EVDEV is not set # CONFIG_INPUT_EVBUG is not set # # Input Device Drivers # CONFIG_INPUT_KEYBOARD=y CONFIG_KEYBOARD_ATKBD=y # CONFIG_KEYBOARD_SUNKBD is not set # CONFIG_KEYBOARD_LKKBD is not set # CONFIG_KEYBOARD_XTKBD is not set # CONFIG_KEYBOARD_NEWTON is not set # CONFIG_KEYBOARD_STOWAWAY 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=y CONFIG_SERIO_I8042=y # CONFIG_SERIO_SERPORT is not set # CONFIG_SERIO_CT82C710 is not set # CONFIG_SERIO_PARKBD is not set CONFIG_SERIO_LIBPS2=y # CONFIG_SERIO_RAW is not set # CONFIG_GAMEPORT is not set # # Character devices # CONFIG_VT=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y # CONFIG_SERIAL_NONSTANDARD is not set # # Serial drivers # CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_SERIAL_8250_PNP=y CONFIG_SERIAL_8250_NR_UARTS=8 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y # CONFIG_SERIAL_8250_MANY_PORTS is not set CONFIG_SERIAL_8250_SHARE_IRQ=y # CONFIG_SERIAL_8250_DETECT_IRQ is not set # CONFIG_SERIAL_8250_RSA is not set # # Non-8250 serial port support # CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_UNIX98_PTYS=y # CONFIG_LEGACY_PTYS is not set # CONFIG_PRINTER is not set # CONFIG_PPDEV is not set # CONFIG_TIPAR is not set # CONFIG_IPMI_HANDLER is not set # CONFIG_WATCHDOG is not set # CONFIG_HW_RANDOM is not set # CONFIG_NVRAM is not set CONFIG_RTC=y # CONFIG_DTLK is not set # CONFIG_R3964 is not set # CONFIG_MWAVE is not set # CONFIG_PC8736x_GPIO is not set # CONFIG_NSC_GPIO is not set # CONFIG_CS5535_GPIO is not set # CONFIG_RAW_DRIVER is not set # CONFIG_HANGCHECK_TIMER is not set # CONFIG_TCG_TPM is not set # CONFIG_TELCLOCK is not set CONFIG_DEVPORT=y # CONFIG_I2C is not set # # SPI support # # CONFIG_SPI is not set # CONFIG_SPI_MASTER is not set # CONFIG_W1 is not set # CONFIG_POWER_SUPPLY is not set # CONFIG_HWMON is not set # # Multifunction device drivers # # CONFIG_MFD_SM501 is not set # # Multimedia devices # # CONFIG_VIDEO_DEV is not set # CONFIG_DAB is not set # # Graphics support # # CONFIG_BACKLIGHT_LCD_SUPPORT is not set # # Display device support # # CONFIG_DISPLAY_SUPPORT is not set # CONFIG_VGASTATE is not set # CONFIG_FB is not set # # Console display driver support # CONFIG_VGA_CONSOLE=y # CONFIG_VGACON_SOFT_SCROLLBACK is not set CONFIG_VIDEO_SELECT=y # CONFIG_MDA_CONSOLE is not set CONFIG_DUMMY_CONSOLE=y # # Sound # # CONFIG_SOUND is not set # CONFIG_HID_SUPPORT is not set # CONFIG_USB_SUPPORT is not set # CONFIG_MMC is not set # # LED devices # # CONFIG_NEW_LEDS is not set # # LED drivers # # # LED Triggers # # CONFIG_EDAC is not set # # Real Time Clock # # CONFIG_RTC_CLASS is not set # # DMA Engine support # # CONFIG_DMA_ENGINE is not set # # DMA Clients # # # DMA Devices # # CONFIG_AUXDISPLAY is not set # CONFIG_VIRTUALIZATION is not set # # Userspace I/O # # CONFIG_UIO is not set # # File systems # # CONFIG_EXT2_FS is not set # CONFIG_EXT3_FS is not set # CONFIG_EXT4DEV_FS is not set # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set CONFIG_FS_POSIX_ACL=y # CONFIG_XFS_FS is not set # CONFIG_GFS2_FS is not set # CONFIG_OCFS2_FS is not set # CONFIG_MINIX_FS is not set # CONFIG_ROMFS_FS is not set CONFIG_INOTIFY=y CONFIG_INOTIFY_USER=y # CONFIG_QUOTA is not set CONFIG_DNOTIFY=y # CONFIG_AUTOFS_FS is not set # CONFIG_AUTOFS4_FS is not set CONFIG_FUSE_FS=y CONFIG_GENERIC_ACL=y # # CD-ROM/DVD Filesystems # # CONFIG_ISO9660_FS is not set # CONFIG_UDF_FS is not set # # DOS/FAT/NT Filesystems # CONFIG_FAT_FS=y CONFIG_MSDOS_FS=y CONFIG_VFAT_FS=y CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" # CONFIG_NTFS_FS is not set # # Pseudo filesystems # CONFIG_PROC_FS=y CONFIG_PROC_KCORE=y CONFIG_PROC_SYSCTL=y CONFIG_SYSFS=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y # CONFIG_HUGETLBFS is not set # CONFIG_HUGETLB_PAGE is not set CONFIG_RAMFS=y CONFIG_CONFIGFS_FS=y # # Miscellaneous filesystems # # CONFIG_ADFS_FS is not set # CONFIG_AFFS_FS is not set # CONFIG_HFS_FS is not set # CONFIG_HFSPLUS_FS is not set # CONFIG_BEFS_FS is not set # CONFIG_BFS_FS is not set # CONFIG_EFS_FS is not set # CONFIG_CRAMFS is not set # CONFIG_VXFS_FS is not set # CONFIG_HPFS_FS is not set # CONFIG_QNX4FS_FS is not set # CONFIG_SYSV_FS is not set # CONFIG_UFS_FS is not set # # Network File Systems # # # Partition Types # # CONFIG_PARTITION_ADVANCED is not set CONFIG_MSDOS_PARTITION=y # # Native Language Support # CONFIG_NLS=y CONFIG_NLS_DEFAULT="cp437" CONFIG_NLS_CODEPAGE_437=y # CONFIG_NLS_CODEPAGE_737 is not set # CONFIG_NLS_CODEPAGE_775 is not set # CONFIG_NLS_CODEPAGE_850 is not set # CONFIG_NLS_CODEPAGE_852 is not set # CONFIG_NLS_CODEPAGE_855 is not set # CONFIG_NLS_CODEPAGE_857 is not set # CONFIG_NLS_CODEPAGE_860 is not set # CONFIG_NLS_CODEPAGE_861 is not set # CONFIG_NLS_CODEPAGE_862 is not set # CONFIG_NLS_CODEPAGE_863 is not set # CONFIG_NLS_CODEPAGE_864 is not set # CONFIG_NLS_CODEPAGE_865 is not set # CONFIG_NLS_CODEPAGE_866 is not set # CONFIG_NLS_CODEPAGE_869 is not set # CONFIG_NLS_CODEPAGE_936 is not set # CONFIG_NLS_CODEPAGE_950 is not set # CONFIG_NLS_CODEPAGE_932 is not set # CONFIG_NLS_CODEPAGE_949 is not set # CONFIG_NLS_CODEPAGE_874 is not set # CONFIG_NLS_ISO8859_8 is not set # CONFIG_NLS_CODEPAGE_1250 is not set # CONFIG_NLS_CODEPAGE_1251 is not set # CONFIG_NLS_ASCII is not set # CONFIG_NLS_ISO8859_1 is not set # CONFIG_NLS_ISO8859_2 is not set # CONFIG_NLS_ISO8859_3 is not set # CONFIG_NLS_ISO8859_4 is not set # CONFIG_NLS_ISO8859_5 is not set # CONFIG_NLS_ISO8859_6 is not set # CONFIG_NLS_ISO8859_7 is not set # CONFIG_NLS_ISO8859_9 is not set # CONFIG_NLS_ISO8859_13 is not set # CONFIG_NLS_ISO8859_14 is not set # CONFIG_NLS_ISO8859_15 is not set # CONFIG_NLS_KOI8_R is not set # CONFIG_NLS_KOI8_U is not set # CONFIG_NLS_UTF8 is not set # CONFIG_INSTRUMENTATION is not set # # Kernel hacking # CONFIG_TRACE_IRQFLAGS_SUPPORT=y # CONFIG_PRINTK_TIME is not set # CONFIG_ENABLE_MUST_CHECK is not set CONFIG_MAGIC_SYSRQ=y # CONFIG_UNUSED_SYMBOLS is not set # CONFIG_DEBUG_FS is not set # CONFIG_HEADERS_CHECK is not set CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_SHIRQ is not set # CONFIG_DETECT_SOFTLOCKUP is not set # CONFIG_SCHED_DEBUG is not set # CONFIG_SCHEDSTATS is not set # CONFIG_TIMER_STATS is not set # CONFIG_DEBUG_RT_MUTEXES is not set # CONFIG_RT_MUTEX_TESTER is not set # CONFIG_DEBUG_SPINLOCK is not set # CONFIG_DEBUG_MUTEXES is not set # CONFIG_DEBUG_LOCK_ALLOC is not set # CONFIG_PROVE_LOCKING is not set # CONFIG_LOCK_STAT is not set # CONFIG_DEBUG_SPINLOCK_SLEEP is not set # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set # CONFIG_DEBUG_KOBJECT is not set # CONFIG_DEBUG_BUGVERBOSE is not set # CONFIG_DEBUG_INFO is not set # CONFIG_DEBUG_VM is not set # CONFIG_DEBUG_LIST is not set # CONFIG_FRAME_POINTER is not set CONFIG_FORCED_INLINING=y # CONFIG_FAULT_INJECTION is not set # CONFIG_EARLY_PRINTK is not set # CONFIG_DEBUG_STACKOVERFLOW is not set # CONFIG_DEBUG_STACK_USAGE is not set # CONFIG_DEBUG_PAGEALLOC is not set # CONFIG_DEBUG_RODATA is not set # CONFIG_4KSTACKS is not set CONFIG_DOUBLEFAULT=y # # Security options # # CONFIG_KEYS is not set # CONFIG_SECURITY is not set # CONFIG_CRYPTO is not set # # Library routines # # CONFIG_CRC_CCITT is not set # CONFIG_CRC16 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_PLIST=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y CONFIG_HAS_DMA=y CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_X86_BIOS_REBOOT=y CONFIG_KTIME_SCALAR=y ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-19 18:03 kobject link failure Jan Engelhardt @ 2007-07-19 18:11 ` Gabriel C 2007-07-19 19:19 ` Greg KH 2007-07-20 8:00 ` Greg KH 2007-07-19 19:18 ` Greg KH 1 sibling, 2 replies; 10+ messages in thread From: Gabriel C @ 2007-07-19 18:11 UTC (permalink / raw) To: Jan Engelhardt; +Cc: gregkh, Linux Kernel Mailing List, kay.sievers Jan Engelhardt wrote: > Hi, > > > top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: > LD .tmp_vmlinux1 > drivers/built-in.o: In function `store_uevent': > core.c:(.text+0x20ebb): undefined reference to `kobject_actions' > core.c:(.text+0x20edd): undefined reference to `kobject_actions' > make[1]: *** [.tmp_vmlinux1] Error 1 > make: *** [_all] Error 2 > > .config attached. Is it because of CONFIG_HOTPLUG=n? > Don't know but I got the same with randconfig today. http://lkml.org/lkml/2007/7/19/349 > > Jan Gabriel ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-19 18:11 ` Gabriel C @ 2007-07-19 19:19 ` Greg KH 2007-07-20 8:00 ` Greg KH 1 sibling, 0 replies; 10+ messages in thread From: Greg KH @ 2007-07-19 19:19 UTC (permalink / raw) To: Gabriel C; +Cc: Jan Engelhardt, Linux Kernel Mailing List, kay.sievers On Thu, Jul 19, 2007 at 08:11:26PM +0200, Gabriel C wrote: > Jan Engelhardt wrote: > > Hi, > > > > > > top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: > > LD .tmp_vmlinux1 > > drivers/built-in.o: In function `store_uevent': > > core.c:(.text+0x20ebb): undefined reference to `kobject_actions' > > core.c:(.text+0x20edd): undefined reference to `kobject_actions' > > make[1]: *** [.tmp_vmlinux1] Error 1 > > make: *** [_all] Error 2 > > > > .config attached. Is it because of CONFIG_HOTPLUG=n? > > > > Don't know but I got the same with randconfig today. > > http://lkml.org/lkml/2007/7/19/349 Yes, that is the problem for your config also. thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-19 18:11 ` Gabriel C 2007-07-19 19:19 ` Greg KH @ 2007-07-20 8:00 ` Greg KH 2007-07-20 9:32 ` Cornelia Huck 1 sibling, 1 reply; 10+ messages in thread From: Greg KH @ 2007-07-20 8:00 UTC (permalink / raw) To: Gabriel C, Robert Schwebel, Jan Engelhardt, Linux Kernel Mailing List, kay.sievers On Thu, Jul 19, 2007 at 08:11:26PM +0200, Gabriel C wrote: > Jan Engelhardt wrote: > > Hi, > > > > > > top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: > > LD .tmp_vmlinux1 > > drivers/built-in.o: In function `store_uevent': > > core.c:(.text+0x20ebb): undefined reference to `kobject_actions' > > core.c:(.text+0x20edd): undefined reference to `kobject_actions' > > make[1]: *** [.tmp_vmlinux1] Error 1 > > make: *** [_all] Error 2 > > > > .config attached. Is it because of CONFIG_HOTPLUG=n? > > Can any of you try the following patch and let me know if it fixes the issue or not? Kay, it's an ugly fix, any better thoughts? thanks, greg k-h From: Greg Kroah-Hartman <gregkh@suse.de> Subject: fix build error when CONFIG_HOTPLUG is disabled for kobject_actions --- drivers/base/core.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -250,6 +250,7 @@ static struct kset_uevent_ops device_uev .uevent = dev_uevent, }; +#ifdef CONFIG_HOTPLUG static ssize_t show_uevent(struct device *dev, struct device_attribute *attr, char *buf) { @@ -330,6 +331,23 @@ out: static struct device_attribute uevent_attr = __ATTR(uevent, S_IRUGO | S_IWUSR, show_uevent, store_uevent); +static int device_add_uevent_attr(struct device *dev) +{ + return device_create_file(dev, &uevent_attr); +} + +static void device_remove_uevent_attr(struct device *dev) +{ + device_remove_file(dev, &uevent_attr); +} + +#else /* CONFIG_HOTPLUG */ + +static inline int device_add_uevent_attr(struct device *dev) { return 0; } +static inline void device_remove_uevent_attr(struct device *dev) { } + +#endif /* CONFIG_HOTPLUG */ + static int device_add_attributes(struct device *dev, struct device_attribute *attrs) { @@ -787,7 +805,7 @@ int device_add(struct device *dev) blocking_notifier_call_chain(&dev->bus->bus_notifier, BUS_NOTIFY_ADD_DEVICE, dev); - error = device_create_file(dev, &uevent_attr); + error = device_add_uevent_attr(dev); if (error) goto attrError; @@ -861,7 +879,7 @@ int device_add(struct device *dev) } } ueventattrError: - device_remove_file(dev, &uevent_attr); + device_remove_uevent_attr(dev); attrError: kobject_uevent(&dev->kobj, KOBJ_REMOVE); kobject_del(&dev->kobj); @@ -994,7 +1012,7 @@ void device_del(struct device * dev) up(&dev->class->sem); } } - device_remove_file(dev, &uevent_attr); + device_remove_uevent_attr(dev); device_remove_attrs(dev); bus_remove_device(dev); ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-20 8:00 ` Greg KH @ 2007-07-20 9:32 ` Cornelia Huck 2007-07-20 11:58 ` Cornelia Huck 0 siblings, 1 reply; 10+ messages in thread From: Cornelia Huck @ 2007-07-20 9:32 UTC (permalink / raw) To: Greg KH Cc: Gabriel C, Robert Schwebel, Jan Engelhardt, Linux Kernel Mailing List, kay.sievers On Fri, 20 Jul 2007 01:00:59 -0700, Greg KH <gregkh@suse.de> wrote: > --- a/drivers/base/core.c > +++ b/drivers/base/core.c > @@ -250,6 +250,7 @@ static struct kset_uevent_ops device_uev > .uevent = dev_uevent, > }; > > +#ifdef CONFIG_HOTPLUG > static ssize_t show_uevent(struct device *dev, struct device_attribute *attr, > char *buf) > { > @@ -330,6 +331,23 @@ out: > static struct device_attribute uevent_attr = > __ATTR(uevent, S_IRUGO | S_IWUSR, show_uevent, store_uevent); > > +static int device_add_uevent_attr(struct device *dev) > +{ > + return device_create_file(dev, &uevent_attr); > +} > + > +static void device_remove_uevent_attr(struct device *dev) > +{ > + device_remove_file(dev, &uevent_attr); > +} > + > +#else /* CONFIG_HOTPLUG */ > + > +static inline int device_add_uevent_attr(struct device *dev) { return 0; } > +static inline void device_remove_uevent_attr(struct device *dev) { } > + > +#endif /* CONFIG_HOTPLUG */ > + > static int device_add_attributes(struct device *dev, > struct device_attribute *attrs) > { > @@ -787,7 +805,7 @@ int device_add(struct device *dev) > blocking_notifier_call_chain(&dev->bus->bus_notifier, > BUS_NOTIFY_ADD_DEVICE, dev); > > - error = device_create_file(dev, &uevent_attr); > + error = device_add_uevent_attr(dev); > if (error) > goto attrError; > > @@ -861,7 +879,7 @@ int device_add(struct device *dev) > } > } > ueventattrError: > - device_remove_file(dev, &uevent_attr); > + device_remove_uevent_attr(dev); > attrError: > kobject_uevent(&dev->kobj, KOBJ_REMOVE); > kobject_del(&dev->kobj); > @@ -994,7 +1012,7 @@ void device_del(struct device * dev) > up(&dev->class->sem); > } > } > - device_remove_file(dev, &uevent_attr); > + device_remove_uevent_attr(dev); > device_remove_attrs(dev); > bus_remove_device(dev); > Hm, this would be an interface change (the uevent attribute used to exist even for !CONFIG_HOTPLUG, it just triggered nothing). How about moving kobject_actions[] out of the #ifdef (maybe next to kobject_action)? ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-20 9:32 ` Cornelia Huck @ 2007-07-20 11:58 ` Cornelia Huck 2007-07-20 15:06 ` Greg KH 0 siblings, 1 reply; 10+ messages in thread From: Cornelia Huck @ 2007-07-20 11:58 UTC (permalink / raw) To: Greg KH Cc: Gabriel C, Robert Schwebel, Jan Engelhardt, Linux Kernel Mailing List, kay.sievers On Fri, 20 Jul 2007 11:32:21 +0200, Cornelia Huck <cornelia.huck@de.ibm.com> wrote: > Hm, this would be an interface change (the uevent attribute used to > exist even for !CONFIG_HOTPLUG, it just triggered nothing). How about > moving kobject_actions[] out of the #ifdef (maybe next to > kobject_action)? Leaving kobject_actions[] in kobject_uevent.c, but putting it outside the #ifdef looks indeed like the best solution to me. This way, we avoid adding #ifdef CONFIG_HOTPLUG into core.c, when all other functions called do not need such a thing. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> --- lib/kobject_uevent.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- linux-2.6.orig/lib/kobject_uevent.c +++ linux-2.6/lib/kobject_uevent.c @@ -25,14 +25,6 @@ #define BUFFER_SIZE 2048 /* buffer for the variables */ #define NUM_ENVP 32 /* number of env pointers */ -#if defined(CONFIG_HOTPLUG) -u64 uevent_seqnum; -char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug"; -static DEFINE_SPINLOCK(sequence_lock); -#if defined(CONFIG_NET) -static struct sock *uevent_sock; -#endif - /* the strings here must match the enum in include/linux/kobject.h */ const char *kobject_actions[] = { "add", @@ -43,6 +35,14 @@ const char *kobject_actions[] = { "offline", }; +#if defined(CONFIG_HOTPLUG) +u64 uevent_seqnum; +char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug"; +static DEFINE_SPINLOCK(sequence_lock); +#if defined(CONFIG_NET) +static struct sock *uevent_sock; +#endif + /** * kobject_uevent_env - send an uevent with environmental data * ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-20 11:58 ` Cornelia Huck @ 2007-07-20 15:06 ` Greg KH 2007-07-20 16:02 ` Jan Engelhardt 0 siblings, 1 reply; 10+ messages in thread From: Greg KH @ 2007-07-20 15:06 UTC (permalink / raw) To: Cornelia Huck Cc: Gabriel C, Robert Schwebel, Jan Engelhardt, Linux Kernel Mailing List, kay.sievers On Fri, Jul 20, 2007 at 01:58:13PM +0200, Cornelia Huck wrote: > On Fri, 20 Jul 2007 11:32:21 +0200, > Cornelia Huck <cornelia.huck@de.ibm.com> wrote: > > > Hm, this would be an interface change (the uevent attribute used to > > exist even for !CONFIG_HOTPLUG, it just triggered nothing). How about > > moving kobject_actions[] out of the #ifdef (maybe next to > > kobject_action)? > > Leaving kobject_actions[] in kobject_uevent.c, but putting it outside > the #ifdef looks indeed like the best solution to me. This way, we > avoid adding #ifdef CONFIG_HOTPLUG into core.c, when all other > functions called do not need such a thing. Yeah, this is much nicer and smaller, thanks. I'll throw away my patch and use this one instead. Can someone verify that it works properly for them please? thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-20 15:06 ` Greg KH @ 2007-07-20 16:02 ` Jan Engelhardt 0 siblings, 0 replies; 10+ messages in thread From: Jan Engelhardt @ 2007-07-20 16:02 UTC (permalink / raw) To: Greg KH Cc: Cornelia Huck, Gabriel C, Robert Schwebel, Linux Kernel Mailing List, kay.sievers [-- Attachment #1: Type: TEXT/PLAIN, Size: 517 bytes --] On Jul 20 2007 08:06, Greg KH wrote: >> Leaving kobject_actions[] in kobject_uevent.c, but putting it outside >> the #ifdef looks indeed like the best solution to me. This way, we >> avoid adding #ifdef CONFIG_HOTPLUG into core.c, when all other >> functions called do not need such a thing. > >Yeah, this is much nicer and smaller, thanks. I'll throw away my patch >and use this one instead. > >Can someone verify that it works properly for them please? Works-For-Me™: Jan Engelhardt <jengelh@gmx.de> Jan -- ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-19 18:03 kobject link failure Jan Engelhardt 2007-07-19 18:11 ` Gabriel C @ 2007-07-19 19:18 ` Greg KH 2007-07-19 20:00 ` Jan Engelhardt 1 sibling, 1 reply; 10+ messages in thread From: Greg KH @ 2007-07-19 19:18 UTC (permalink / raw) To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, kay.sievers On Thu, Jul 19, 2007 at 08:03:06PM +0200, Jan Engelhardt wrote: > Hi, > > > top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: > LD .tmp_vmlinux1 > drivers/built-in.o: In function `store_uevent': > core.c:(.text+0x20ebb): undefined reference to `kobject_actions' > core.c:(.text+0x20edd): undefined reference to `kobject_actions' > make[1]: *** [.tmp_vmlinux1] Error 1 > make: *** [_all] Error 2 > > .config attached. Is it because of CONFIG_HOTPLUG=n? Yes it is, are you really sure you want that? :) Kay, care to make up a patch to fix this issue? thanks, greg k-h ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: kobject link failure 2007-07-19 19:18 ` Greg KH @ 2007-07-19 20:00 ` Jan Engelhardt 0 siblings, 0 replies; 10+ messages in thread From: Jan Engelhardt @ 2007-07-19 20:00 UTC (permalink / raw) To: Greg KH; +Cc: Linux Kernel Mailing List, kay.sievers On Jul 19 2007 12:18, Greg KH wrote: >On Thu, Jul 19, 2007 at 08:03:06PM +0200, Jan Engelhardt wrote: >> >> top is 275afcac9953ece0828972edeab9684cfe1a5ef3, error is: >> LD .tmp_vmlinux1 >> drivers/built-in.o: In function `store_uevent': >> core.c:(.text+0x20ebb): undefined reference to `kobject_actions' >> core.c:(.text+0x20edd): undefined reference to `kobject_actions' >> make[1]: *** [.tmp_vmlinux1] Error 1 >> make: *** [_all] Error 2 >> >> .config attached. Is it because of CONFIG_HOTPLUG=n? > >Yes it is, are you really sure you want that? :) I doubt I ever have something to hotplug on ye olde ancient i386. Jan -- ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-07-20 16:02 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-07-19 18:03 kobject link failure Jan Engelhardt 2007-07-19 18:11 ` Gabriel C 2007-07-19 19:19 ` Greg KH 2007-07-20 8:00 ` Greg KH 2007-07-20 9:32 ` Cornelia Huck 2007-07-20 11:58 ` Cornelia Huck 2007-07-20 15:06 ` Greg KH 2007-07-20 16:02 ` Jan Engelhardt 2007-07-19 19:18 ` Greg KH 2007-07-19 20:00 ` Jan Engelhardt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox