From: Hauke Mehrtens Date: Thu, 28 Mar 2013 19:12:17 +0000 (+0100) Subject: compat-drivers: fix signature for struct rchan_callbacks X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d1576670ede9a5b86b47ddee9462f84e08fec342;p=openwrt%2Fstaging%2Fblogic.git compat-drivers: fix signature for struct rchan_callbacks the signature for struct rchan_callbacks.create_buf_file changed. Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- diff --git a/patches/collateral-evolutions/network/70-umode_t-api-change.patch b/patches/collateral-evolutions/network/70-umode_t-api-change.patch new file mode 100644 index 000000000000..dd6ec686dbb5 --- /dev/null +++ b/patches/collateral-evolutions/network/70-umode_t-api-change.patch @@ -0,0 +1,28 @@ +--- a/drivers/net/wireless/ath/ath9k/debug.c ++++ b/drivers/net/wireless/ath/ath9k/debug.c +@@ -1217,7 +1217,11 @@ static const struct file_operations fops + + static struct dentry *create_buf_file_handler(const char *filename, + struct dentry *parent, ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) + umode_t mode, ++#else ++ int mode, ++#endif + struct rchan_buf *buf, + int *is_global) + { +--- a/drivers/gpu/drm/drm_sysfs.c ++++ b/drivers/gpu/drm/drm_sysfs.c +@@ -72,7 +72,11 @@ static int drm_class_resume(struct devic + return 0; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) + static char *drm_devnode(struct device *dev, umode_t *mode) ++#else ++static char *drm_devnode(struct device *dev, mode_t *mode) ++#endif + { + return kasprintf(GFP_KERNEL, "dri/%s", dev_name(dev)); + }