From df1d0a5557657b6e0da2a92375bb30a3d7c792f5 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 7 Aug 2010 15:32:20 +0200 Subject: [PATCH] compat: fix compiler warning Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.27.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compat-2.6.27.h b/include/linux/compat-2.6.27.h index d667222a94f1..b9d7029450ac 100644 --- a/include/linux/compat-2.6.27.h +++ b/include/linux/compat-2.6.27.h @@ -236,6 +236,8 @@ static inline void debugfs_remove_recursive(struct dentry *dentry) _dev; \ }) +#define dev_name(dev) dev_name((struct device *)dev) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */ #endif /* LINUX_26_27_COMPAT_H */ -- 2.30.2