diff mbox

[1/4] Remove const from vm_ops to avoid warnings on older kernels

Message ID 20091012085454.20775.4109.stgit@mchn012c.ww002.siemens.net (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka Oct. 12, 2009, 8:54 a.m. UTC
None
diff mbox

Patch

diff --git a/sync b/sync
index 0bbd488..4821b84 100755
--- a/sync
+++ b/sync
@@ -119,6 +119,8 @@  def __hack(data):
             line = sub(r'flags', r'kvm_pt_regs_flags', line)
             mce = False
         line = sub(r'boot_cpu_data.x86_phys_bits', 'kvm_x86_phys_bits', line)
+        if match(r'^static const struct vm_operations_struct kvm_'):
+            line = sub(r' const ', ' ', line)
         w(line)
         if match(r'\tkvm_init_debug'):
             w('\thrtimer_kallsyms_resolve();')