5eaff72218
There exists the following warning message will appear after the following commit is merged. >commit f2e969acd6d5981e6b1272810002558650d0736e >Author: Zhao Yakui <yakui.zhao@intel.com> >Date: Mon Aug 11 14:57:50 2008 +0800 >ACPI: Add "acpi.power_nocheck=1" to disable power state check in power transition: >WARNING: at linux-2.6/fs/sysfs/dir.c:463 sysfs_add_one+0x33/0x39() >sysfs: duplicate filename 'acpi' can not be created >kobject_add_internal failed for acpi with -EEXIST, don't try to register things with the same name in the same directory In the above commit the "acpi.power_nocheck" module parameter is defined in drivers/acpi/power.c file. As several module parameters using the same ACPI prefix are defined in the different files(for example: power_nocheck is defined in drivers/acpi/power.c,debug_layer/debug_level are defined in drivers/acpi/debug.c) and there exists another module between them, the warning message will be printed when using the current generic param code. (In the function of param_sysfs_init). In fact when ACPI is selected, the drivers/acpi/power will also be compiled as built-in kernel.So this issue can be fixed by the following approach. workaround it by adjusting the module link order in drivers/acpi/Makefile. In such case the module parameter using the same prefix(ACPI) are put together in the param data section. Of course the better solution is to fix it in generic param code related with sysfs. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
#
|
|
# Makefile for the Linux ACPI interpreter
|
|
#
|
|
|
|
export ACPI_CFLAGS
|
|
|
|
ACPI_CFLAGS := -Os
|
|
|
|
ifdef CONFIG_ACPI_DEBUG
|
|
ACPI_CFLAGS += -DACPI_DEBUG_OUTPUT
|
|
endif
|
|
|
|
EXTRA_CFLAGS += $(ACPI_CFLAGS)
|
|
|
|
#
|
|
# ACPI Boot-Time Table Parsing
|
|
#
|
|
obj-y += tables.o
|
|
obj-$(CONFIG_X86) += blacklist.o
|
|
|
|
#
|
|
# ACPI Core Subsystem (Interpreter)
|
|
#
|
|
obj-y += osl.o utils.o reboot.o\
|
|
dispatcher/ events/ executer/ hardware/ \
|
|
namespace/ parser/ resources/ tables/ \
|
|
utilities/
|
|
|
|
#
|
|
# ACPI Bus and Device Drivers
|
|
#
|
|
processor-objs += processor_core.o processor_throttling.o \
|
|
processor_idle.o processor_thermal.o
|
|
ifdef CONFIG_CPU_FREQ
|
|
processor-objs += processor_perflib.o
|
|
endif
|
|
|
|
obj-y += sleep/
|
|
obj-y += bus.o glue.o
|
|
obj-y += scan.o
|
|
# Keep EC driver first. Initialization of others depend on it.
|
|
obj-$(CONFIG_ACPI_EC) += ec.o
|
|
obj-$(CONFIG_ACPI_AC) += ac.o
|
|
obj-$(CONFIG_ACPI_BATTERY) += battery.o
|
|
obj-$(CONFIG_ACPI_BUTTON) += button.o
|
|
obj-$(CONFIG_ACPI_FAN) += fan.o
|
|
obj-$(CONFIG_ACPI_DOCK) += dock.o
|
|
obj-$(CONFIG_ACPI_VIDEO) += video.o
|
|
obj-y += pci_root.o pci_link.o pci_irq.o pci_bind.o
|
|
obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
|
|
obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
|
|
obj-$(CONFIG_ACPI_CONTAINER) += container.o
|
|
obj-$(CONFIG_ACPI_THERMAL) += thermal.o
|
|
obj-$(CONFIG_ACPI_POWER) += power.o
|
|
obj-$(CONFIG_ACPI_SYSTEM) += system.o event.o
|
|
obj-$(CONFIG_ACPI_DEBUG) += debug.o
|
|
obj-$(CONFIG_ACPI_NUMA) += numa.o
|
|
obj-$(CONFIG_ACPI_WMI) += wmi.o
|
|
obj-$(CONFIG_ACPI_ASUS) += asus_acpi.o
|
|
obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o
|
|
obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o
|
|
obj-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
|
|
obj-$(CONFIG_ACPI_SBS) += sbshc.o
|
|
obj-$(CONFIG_ACPI_SBS) += sbs.o
|