Commit f11445b
committed
x86/mce: Use arch atomic and bit helpers
The arch helpers do not have explicit KASAN instrumentation. Use them in
noinstr code.
Inline a couple more functions with single call sites, while at it:
mce_severity_amd_smca() has a single call-site which is noinstr so force
the inlining and fix:
vmlinux.o: warning: objtool: mce_severity_amd.constprop.0()+0xca: call to \
mce_severity_amd_smca() leaves .noinstr.text section
Always inline mca_msr_reg():
text data bss dec hex filename
16065240 128031326 36405368 180501934 ac23dae vmlinux.before
16065240 128031294 36405368 180501902 ac23d8e vmlinux.after
and mce_no_way_out() as the latter one is used only once, to fix:
vmlinux.o: warning: objtool: mce_read_aux()+0x53: call to mca_msr_reg() leaves .noinstr.text section
vmlinux.o: warning: objtool: do_machine_check()+0xc9: call to mce_no_way_out() leaves .noinstr.text section
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20220204083015.17317-4-bp@alien8.de1 parent c0f6799 commit f11445b
3 files changed
Lines changed: 41 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 176 | | |
198 | 177 | | |
199 | 178 | | |
| |||
814 | 793 | | |
815 | 794 | | |
816 | 795 | | |
817 | | - | |
| 796 | + | |
| 797 | + | |
818 | 798 | | |
819 | 799 | | |
820 | 800 | | |
| |||
838 | 818 | | |
839 | 819 | | |
840 | 820 | | |
841 | | - | |
842 | | - | |
| 821 | + | |
| 822 | + | |
843 | 823 | | |
844 | 824 | | |
845 | 825 | | |
| |||
849 | 829 | | |
850 | 830 | | |
851 | 831 | | |
852 | | - | |
| 832 | + | |
853 | 833 | | |
854 | 834 | | |
855 | 835 | | |
| |||
1015 | 995 | | |
1016 | 996 | | |
1017 | 997 | | |
1018 | | - | |
| 998 | + | |
1019 | 999 | | |
1020 | 1000 | | |
1021 | 1001 | | |
1022 | 1002 | | |
1023 | | - | |
1024 | | - | |
| 1003 | + | |
| 1004 | + | |
1025 | 1005 | | |
1026 | 1006 | | |
1027 | 1007 | | |
1028 | 1008 | | |
1029 | 1009 | | |
1030 | 1010 | | |
1031 | 1011 | | |
1032 | | - | |
| 1012 | + | |
1033 | 1013 | | |
1034 | 1014 | | |
1035 | | - | |
| 1015 | + | |
1036 | 1016 | | |
1037 | 1017 | | |
1038 | 1018 | | |
| |||
1047 | 1027 | | |
1048 | 1028 | | |
1049 | 1029 | | |
1050 | | - | |
| 1030 | + | |
1051 | 1031 | | |
1052 | 1032 | | |
1053 | 1033 | | |
1054 | 1034 | | |
1055 | 1035 | | |
1056 | 1036 | | |
1057 | 1037 | | |
1058 | | - | |
| 1038 | + | |
1059 | 1039 | | |
1060 | 1040 | | |
1061 | | - | |
| 1041 | + | |
1062 | 1042 | | |
1063 | 1043 | | |
1064 | 1044 | | |
| |||
1068 | 1048 | | |
1069 | 1049 | | |
1070 | 1050 | | |
1071 | | - | |
| 1051 | + | |
1072 | 1052 | | |
1073 | 1053 | | |
1074 | 1054 | | |
| |||
1153 | 1133 | | |
1154 | 1134 | | |
1155 | 1135 | | |
1156 | | - | |
| 1136 | + | |
1157 | 1137 | | |
1158 | 1138 | | |
1159 | 1139 | | |
1160 | 1140 | | |
1161 | | - | |
| 1141 | + | |
1162 | 1142 | | |
1163 | 1143 | | |
1164 | 1144 | | |
| |||
1208 | 1188 | | |
1209 | 1189 | | |
1210 | 1190 | | |
1211 | | - | |
1212 | | - | |
| 1191 | + | |
| 1192 | + | |
1213 | 1193 | | |
1214 | 1194 | | |
1215 | 1195 | | |
| |||
1244 | 1224 | | |
1245 | 1225 | | |
1246 | 1226 | | |
1247 | | - | |
| 1227 | + | |
1248 | 1228 | | |
1249 | 1229 | | |
1250 | 1230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| |||
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
212 | 231 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
0 commit comments