Commit:     d94d3dff0d5da3bdfcbb424ba5c08534521fd690
Parent:     a74388e21ef2adbba4450f7b3f05ffe88df630d5
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 7 16:51:46 2007 -0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Fri Feb 9 01:18:32 2007 -0500

    ACPI: bay: fix build warning
    drivers/acpi/bay.c: In function 'bay_add':
    drivers/acpi/bay.c:310: warning: statement with no effect
    Fix it by rewriting those macros in C.  Much nicer.
    Cc: Kristen Carlson Accardi <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
 include/acpi/acpi_drivers.h |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index 4dc8a50..3d7ebe0 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -122,10 +122,24 @@ extern int register_hotplug_dock_device(acpi_handle 
        acpi_notify_handler handler, void *context);
 extern void unregister_hotplug_dock_device(acpi_handle handle);
-#define is_dock_device(h)                      (0)
-#define register_dock_notifier(nb)             (-ENODEV)
-#define unregister_dock_notifier(nb)                   do { } while(0)
-#define register_hotplug_dock_device(h1, h2, c)        (-ENODEV)
-#define unregister_hotplug_dock_device(h)       do { } while(0)
+static inline int is_dock_device(acpi_handle handle)
+       return 0;
+static inline int register_dock_notifier(struct notifier_block *nb)
+       return -ENODEV;
+static inline void unregister_dock_notifier(struct notifier_block *nb)
+static inline int register_hotplug_dock_device(acpi_handle handle,
+                               acpi_notify_handler handler, void *context)
+       return -ENODEV;
+static inline void unregister_hotplug_dock_device(acpi_handle handle)
 #endif /*__ACPI_DRIVERS_H__*/
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to