Browse Source

Enable VMA_PAD_START fallback for pre-16K kernels

TheWildJames 8 hours ago
parent
commit
cac081e5fb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/actions/susfs-patches/action.yml

+ 4 - 4
.github/actions/susfs-patches/action.yml

@@ -154,10 +154,10 @@ runs:
         # our build matrix predate it, so fall back to a no-padding definition
         # when the real header/macro isn't present. This is version-agnostic and
         # a no-op wherever the real header already provides it.
-        #if grep -q 'VMA_PAD_START(' fs/proc/task_mmu.c && ! grep -qE '#include <linux/pgsize_migration(_inline)?\.h>|define VMA_PAD_START' fs/proc/task_mmu.c; then
-        #  sed -i '1a #ifndef VMA_PAD_START\n#define VMA_PAD_START(vma) ((vma)->vm_end)\n#endif' fs/proc/task_mmu.c
-        #  echo "Added VMA_PAD_START fallback definition to fs/proc/task_mmu.c"
-        #fi
+        if grep -q 'VMA_PAD_START(' fs/proc/task_mmu.c && ! grep -qE '#include <linux/pgsize_migration(_inline)?\.h>|define VMA_PAD_START' fs/proc/task_mmu.c; then
+          sed -i '1a #ifndef VMA_PAD_START\n#define VMA_PAD_START(vma) ((vma)->vm_end)\n#endif' fs/proc/task_mmu.c
+          echo "Added VMA_PAD_START fallback definition to fs/proc/task_mmu.c"
+        fi
 
         # Same story for __fold_filemap_fixup_entry(), declared in page_size_compat.h.
         #if grep -q '__fold_filemap_fixup_entry' fs/proc/task_mmu.c && ! grep -q '#include <linux/page_size_compat.h>' fs/proc/task_mmu.c; then