]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/memory.c
ACPICA: Disallow evaluation of named object types with no value
[linux-2.6-omap-h63xx.git] / drivers / base / memory.c
index 855ed1a9f97b89d203e0b5f98bd81311c60f1dc4..af0d175c025dcd168c5a6de866351fd0b1f83d5a 100644 (file)
@@ -103,7 +103,8 @@ static ssize_t show_mem_phys_index(struct sys_device *dev,
 /*
  * Show whether the section of memory is likely to be hot-removable
  */
-static ssize_t show_mem_removable(struct sys_device *dev, char *buf)
+static ssize_t show_mem_removable(struct sys_device *dev,
+                       struct sysdev_attribute *attr, char *buf)
 {
        unsigned long start_pfn;
        int ret;
@@ -204,9 +205,8 @@ memory_block_action(struct memory_block *mem, unsigned long action)
                        }
                        break;
                default:
-                       printk(KERN_WARNING "%s(%p, %ld) unknown action: %ld\n",
+                       WARN(1, KERN_WARNING "%s(%p, %ld) unknown action: %ld\n",
                                        __func__, mem, action, action);
-                       WARN_ON(1);
                        ret = -EINVAL;
        }