|
@@ -2091,16 +2091,14 @@ static bool symbol__read_kptr_restrict(void)
|
|
|
|
|
|
int symbol__annotation_init(void)
|
|
int symbol__annotation_init(void)
|
|
{
|
|
{
|
|
|
|
+ if (symbol_conf.init_annotation)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
if (symbol_conf.initialized) {
|
|
if (symbol_conf.initialized) {
|
|
pr_err("Annotation needs to be init before symbol__init()\n");
|
|
pr_err("Annotation needs to be init before symbol__init()\n");
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
- if (symbol_conf.init_annotation) {
|
|
|
|
- pr_warning("Annotation being initialized multiple times\n");
|
|
|
|
- return 0;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
symbol_conf.priv_size += sizeof(struct annotation);
|
|
symbol_conf.priv_size += sizeof(struct annotation);
|
|
symbol_conf.init_annotation = true;
|
|
symbol_conf.init_annotation = true;
|
|
return 0;
|
|
return 0;
|