summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-04-25 18:04:53 +0100
committerBen Hutchings <ben@decadent.org.uk>2019-04-25 18:04:53 +0100
commitbd4b47e9cd556ed2930ffdc4e3187a58f427fa73 (patch)
tree2b9276fac070dbe5f16ac8a3760e6ddea24aced9
parentfe2d37382fe34600f5eaa9ddc4031f286c856864 (diff)
downloadlinux-stable-queue-bd4b47e9cd556ed2930ffdc4e3187a58f427fa73.tar.gz
Fix warning introduced in drivers/hv/ringbuffer.c
Changing the ring_info parameter to hv_ringbuffer_get_debuginfo() to be const-qualified will require changing other functions as well. Undo that change.
-rw-r--r--queue-3.16/drivers-hv-vmbus-check-for-ring-when-getting-debug-info.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/queue-3.16/drivers-hv-vmbus-check-for-ring-when-getting-debug-info.patch b/queue-3.16/drivers-hv-vmbus-check-for-ring-when-getting-debug-info.patch
index f58e3e75..f9d5e2ea 100644
--- a/queue-3.16/drivers-hv-vmbus-check-for-ring-when-getting-debug-info.patch
+++ b/queue-3.16/drivers-hv-vmbus-check-for-ring-when-getting-debug-info.patch
@@ -35,7 +35,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
*/
-void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
- struct hv_ring_buffer_debug_info *debug_info)
-+int hv_ringbuffer_get_debuginfo(const struct hv_ring_buffer_info *ring_info,
++int hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
+ struct hv_ring_buffer_debug_info *debug_info)
{
u32 bytes_avail_towrite;
@@ -272,7 +272,7 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
- struct hv_ring_buffer_debug_info *debug_info);
+
-+int hv_ringbuffer_get_debuginfo(const struct hv_ring_buffer_info *ring_info,
++int hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
+ struct hv_ring_buffer_debug_info *debug_info);
void hv_begin_read(struct hv_ring_buffer_info *rbi);