ソースを参照

Add patch steps for __fold function and VMA pad not defined error until further notice

jimsterino98 1 ヶ月 前
コミット
f1e9c02e17
1 ファイル変更16 行追加0 行削除
  1. 16 0
      .github/actions/susfs-patches/action.yml

+ 16 - 0
.github/actions/susfs-patches/action.yml

@@ -101,6 +101,22 @@ runs:
         echo "No patch file found, skipping"
       fi
 
+   - name: fix __fold function error for s25 ultra oneui7
+     if: ${{ env.BRANCH == 'SM-X926B-Oneui6.1' || env.BRANCH == 'SM-A546B-Oneui6.0' || env.BRANCH == 'SM-S9180-Oneui6.1' }}
+     shell: bash
+     run: |
+       cd "$COMMON"
+       # Define VMA_PAD_START fallback macro if it does not exist
+       sed -i '/static int show_map_vma/i \
+       #ifndef VMA_PAD_START\n#define VMA_PAD_START(vma) ((vma)->vm_start)\n#endif\n' fs/proc/task_mmu.c
+     
+   - name: fix __fold function error for s25 ultra oneui7
+     if: ${{ env.BRANCH == 'SM-S938B-Oneui7' }}
+     shell: bash
+     run: |
+       sed -i '/static int show_map_vma/i \
+       #ifdef CONFIG_KSU_SUSFS_OPEN_REDIRECT\nstatic inline void __fold_filemap_fixup_entry(struct vma_iterator *vmi, unsigned long *end)\n{\n\tstruct vm_area_struct *next = vma_next(vmi);\n\tif (next) {\n\t\t*end = next->vm_start;\n\t\tvma_prev(vmi);\n\t}\n}\n#endif\n' fs/proc/task_mmu.c
+       
    - name: add ksu-susfs to config
      shell: bash
      run: |