1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/hotfix-ppc64-save-restore-funcs.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 MODPOST Module.symvers
15 ERROR: modpost: "_restfpr_20" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
16 ERROR: modpost: "_restfpr_26" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
17 ERROR: modpost: "_restfpr_22" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
18 ERROR: modpost: "_savegpr1_27" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
19 ERROR: modpost: "_savegpr1_25" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
20 ERROR: modpost: "_restfpr_28" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
21 ERROR: modpost: "_savegpr1_29" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
22 ERROR: modpost: "_savefpr_20" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
23 ERROR: modpost: "_savefpr_22" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
24 ERROR: modpost: "_restfpr_15" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
25 WARNING: modpost: suppressed 56 unresolved symbol warnings because there were too many)
27 --- linux-6.7/scripts/mod/modpost.c.vanilla 2024-01-24 14:26:43.949921971 +0100
28 +++ linux-6.7/scripts/mod/modpost.c 2024-01-24 14:46:19.546875096 +0100
30 /* Special register function linked on all modules during final link of .ko */
31 if (strstarts(symname, "_restgpr0_") ||
32 strstarts(symname, "_savegpr0_") ||
33 + strstarts(symname, "_restgpr1_") ||
34 + strstarts(symname, "_savegpr1_") ||
35 + strstarts(symname, "_restfpr_") ||
36 + strstarts(symname, "_savefpr_") ||
37 strstarts(symname, "_restvr_") ||
38 strstarts(symname, "_savevr_") ||
39 strcmp(symname, ".TOC.") == 0)