From 4715fbe76040b652ad32cd133fbc6f6ceb4975c1 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Tue, 17 Aug 2010 20:32:33 +0200 Subject: [PATCH] compat: fix warning in device_rename Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.36.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h index b14c77272778..5b48215cbd4e 100644 --- a/include/linux/compat-2.6.36.h +++ b/include/linux/compat-2.6.36.h @@ -13,6 +13,8 @@ struct va_format { va_list *va; }; +#define device_rename(dev, new_name) device_rename(dev, (char *)new_name) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */ #endif /* LINUX_26_36_COMPAT_H */ -- 2.30.2