compat-drivers: fix signature for struct rchan_callbacks
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 28 Mar 2013 19:12:17 +0000 (20:12 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 29 Mar 2013 00:35:18 +0000 (17:35 -0700)
the signature for struct rchan_callbacks.create_buf_file changed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
patches/collateral-evolutions/network/70-umode_t-api-change.patch [new file with mode: 0644]

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 (file)
index 0000000..dd6ec68
--- /dev/null
@@ -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));
+ }