In order to avoid duplicated code, move is_arm_mapping_symbol() to include/linux/module_symbol.h, then remove is_arm_mapping_symbol() in the other places.
Showing the changes to scripts (1 of 3 files). Show all
Unified · Split
| @@ -22,6 +22,7 @@ · 21 unmodified lines | |||
| 22 | #include <errno.h> | 22 | #include <errno.h> |
| 23 | #include "modpost.h" | 23 | #include "modpost.h" |
| 24 | #include "../../include/linux/license.h" | 24 | #include "../../include/linux/license.h" |
| 25 | #include "../../include/linux/module_symbol.h" | ||
| 25 | 26 | ||
| 26 | /* Are we using CONFIG_MODVERSIONS? */ | 27 | /* Are we using CONFIG_MODVERSIONS? */ |
| 27 | static bool modversions; | 28 | static bool modversions; |
| @@ -1112,15 +1113,6 @@ static int secref_whitelist(const struct sectioncheck *mismatch, · 1084 unmodified lines | |||
| 1112 | return 1; | 1113 | return 1; |
| 1113 | } | 1114 | } |
| 1114 | 1115 | ||
| 1115 | static inline int is_arm_mapping_symbol(const char *str) | ||
| 1116 | { | ||
| 1117 | if (str[0] == '.' && str[1] == 'L') | ||
| 1118 | return true; | ||
| 1119 | return str[0] == '$' && | ||
| 1120 | (str[1] == 'a' || str[1] == 'd' || str[1] == 't' || str[1] == 'x') | ||
| 1121 | && (str[2] == '\0' || str[2] == '.'); | ||
| 1122 | } | ||
| 1123 | |||
| 1124 | /* | 1116 | /* |
| 1125 | * If there's no name there, ignore it; likewise, ignore it if it's | 1117 | * If there's no name there, ignore it; likewise, ignore it if it's |
| 1126 | * one of the magic symbols emitted used by current ARM tools. | 1118 | * one of the magic symbols emitted used by current ARM tools. |