Skip to contentSkip to conversation

acpi-20020918-2.5.36 Compileerror

DISCUSSION Philipp Matthias Hahn 1 participant 1 message Sep 20, 2002 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

20020918-2.5.36 doesn't compile because of ACPI_AC_DRIVER_NAME "use before declaration" in drivers/acpi/ac.c:

====================================================
MODULE_DESCRIPTION(ACPI_AC_DRIVER_NAME);
MODULE_LICENSE("GPL");

-#define PREFIX "ACPI: "
-

+#define ACPI_AC_COMPONENT              0x00020000
+#define ACPI_AC_CLASS                  "ac_adapter"
+#define ACPI_AC_HID                    "ACPI0003"
+#define ACPI_AC_DRIVER_NAME            "ACPI AC Adapter Driver"

====================================================

Same for drivers/acpi/battery.c, drivers/acpi/button.c, drivers/acpi/fan.c, drivers/acpi/processor.c, drivers/acpi/thermal.c

FIX: Move the MODULE_* lines after the defines.

BYtE
Philipp

Signature · 9 lines
  / /  (_)__  __ ____  __ Philipp Hahn
 / /__/ / _ \/ // /\ \/ /
/____/_/_//_/\_,_/ /_/\_\ [email protected]


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf