aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-grsec/constify.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-25 06:58:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-25 07:02:24 +0000
commitf3a4453eccb53fb90453a2659ec7c42efe33e33a (patch)
treee320b65c3288831ec8dd1e0ea6ace7bc45707eb6 /main/dahdi-linux-grsec/constify.patch
parenta65729e98beca8b113b3d5e2f6c31dcb656d70c3 (diff)
downloadaports-f3a4453eccb53fb90453a2659ec7c42efe33e33a.tar.bz2
aports-f3a4453eccb53fb90453a2659ec7c42efe33e33a.tar.xz
main/dahdi-linux-grsec: upgrade to 2.5.0.2 and enable constify plugin
Diffstat (limited to 'main/dahdi-linux-grsec/constify.patch')
-rw-r--r--main/dahdi-linux-grsec/constify.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/dahdi-linux-grsec/constify.patch b/main/dahdi-linux-grsec/constify.patch
new file mode 100644
index 0000000000..6741522f23
--- /dev/null
+++ b/main/dahdi-linux-grsec/constify.patch
@@ -0,0 +1,22 @@
+--- ./drivers/dahdi/voicebus/voicebus.h.orig
++++ ./drivers/dahdi/voicebus/voicebus.h
+@@ -89,7 +89,7 @@
+ void (*handle_receive)(struct voicebus *vb, struct list_head *buffers);
+ void (*handle_transmit)(struct voicebus *vb, struct list_head *buffers);
+ void (*handle_error)(struct voicebus *vb);
+-};
++} __no_const;
+
+ /**
+ * struct voicebus_descriptor_list - A single descriptor list.
+--- ./drivers/dahdi/wctc4xxp/base.c.orig
++++ ./drivers/dahdi/wctc4xxp/base.c
+@@ -3193,7 +3193,7 @@
+ return ret;
+ }
+
+-static void wctc4xxp_setup_file_operations(struct file_operations *fops)
++static void wctc4xxp_setup_file_operations(file_operations_no_const *fops)
+ {
+ fops->owner = THIS_MODULE;
+ fops->read = wctc4xxp_read;