Messages in this thread Patch in this message | | | Date | Mon, 14 Nov 2005 19:37:41 +0000 | Subject | [PATCH 4/4] memory_hotplug_name should be const | From | Andy Whitcroft <> |
| |
The hotplug ops name entry for memory (memory_hotplug_name) should be const. This fixes a compiler warning when HOTPLUG is enabled.
Signed-off-by: Andy Whitcroft <apw@shadowen.org> --- memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -upN reference/drivers/base/memory.c current/drivers/base/memory.c --- reference/drivers/base/memory.c +++ current/drivers/base/memory.c @@ -30,7 +30,7 @@ static struct sysdev_class memory_sysdev }; EXPORT_SYMBOL(memory_sysdev_class); -static char *memory_hotplug_name(struct kset *kset, struct kobject *kobj) +static const char *memory_hotplug_name(struct kset *kset, struct kobject *kobj) { return MEMORY_CLASS_NAME; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |