aha/drivers/acpi
Zhao Yakui 5eaff72218 ACPI: hack around sysfs warning with link order
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>
2008-10-23 00:47:54 -04:00
..
dispatcher ACPICA: Fix for implicit return compatibility 2008-10-22 23:14:49 -04:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Add support for zero-length buffer-to-string conversions 2008-10-22 23:14:50 -04:00
hardware ACPI suspend: Always use the 32-bit waking vector 2008-10-16 20:45:35 -04:00
namespace ACPICA: New: Validation for predefined ACPI methods/objects 2008-10-22 23:14:49 -04:00
parser ACPICA: Fixed a couple memory leaks associated with "implicit return" 2008-10-22 23:14:48 -04:00
resources ACPICA: Cleanup for internal Reference Object 2008-10-22 23:14:45 -04:00
sleep ACPI suspend: fix build warning when CONFIG_ACPI_SLEEP=n 2008-10-23 00:45:18 -04:00
tables Merge branch 'fadt-test' into test 2008-10-22 23:28:03 -04:00
utilities ACPICA: Optimize buffer allocation procedure 2008-10-22 23:14:48 -04:00
ac.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
acpi_memhotplug.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
asus_acpi.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
battery.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
blacklist.c ACPI: DMI: quirk for FSC ESPRIMO Mobile V5505 2008-02-14 02:43:39 -05:00
bus.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
button.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
cm_sbs.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
container.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
debug.c ACPICA: Remove obsolete debug levels (WARN and ERROR) 2008-10-22 23:14:42 -04:00
dock.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
ec.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
event.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
fan.c Merge branch 'misc' into test 2008-10-22 23:28:38 -04:00
glue.c rtc-cmos: move wake setup from ACPI glue into RTC driver 2008-10-14 16:08:21 -07:00
Kconfig Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
Makefile ACPI: hack around sysfs warning with link order 2008-10-23 00:47:54 -04:00
numa.c ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels 2008-10-11 02:47:33 -04:00
osl.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
pci_bind.c ACPI: misc cleanups 2008-02-07 03:33:23 -05:00
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c Merge branch 'misc' into test 2008-10-22 23:28:38 -04:00
pci_root.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
pci_slot.c ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels 2008-10-11 02:47:33 -04:00
power.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
processor_core.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
processor_idle.c cpuidle: update the last_state acpi cpuidle reflecting actual state entered 2008-10-16 18:00:04 -04:00
processor_perflib.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
processor_thermal.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
processor_throttling.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
reboot.c ACPI: Ingore the RESET_REG_SUP bit when using ACPI reset mechanism 2008-10-18 01:01:12 -04:00
sbs.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
sbshc.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
sbshc.h ACPI: SBS: Ignore alarms coming from unknown devices 2007-12-14 15:14:06 -05:00
scan.c Merge branch 'misc' into test 2008-10-22 23:28:38 -04:00
system.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
toshiba_acpi.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
utils.c ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels 2008-10-11 02:47:33 -04:00
video.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
wmi.c Merge branch 'bugfixes' into test 2008-10-22 23:19:50 -04:00