Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Stange <nstange@suse.de>2017-10-05 12:12:27 +0200
committerMiroslav Benes <mbenes@suse.cz>2017-11-23 10:54:08 +0100
commitac6cfebd7f831213ebcd4b2690672871572ec49e (patch)
tree1417ca2ce5a0dd634d3a8d5e59e40ee31098a1ea
parente899c4fd3fe7602ebd70f578d8475f1049de7c78 (diff)
shadow variables: drop EXPORT_SYMBOL()s
The shadow variable API will only ever get used by the KGraft module itself and thus, there's no need for exporting it. Drop all EXPORT_SYMBOL annotations. Signed-off-by: Nicolai Stange <nstange@suse.de> Signed-off-by: Miroslav Benes <mbenes@suse.cz>
-rw-r--r--shadow.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/shadow.c b/shadow.c
index fdac275..68d88b1 100644
--- a/shadow.c
+++ b/shadow.c
@@ -45,7 +45,7 @@
#include <linux/hashtable.h>
#include <linux/slab.h>
-#include <linux/livepatch.h>
+#include "shadow.h"
static DEFINE_HASHTABLE(klp_shadow_hash, 12);
@@ -111,7 +111,6 @@ void *klp_shadow_get(void *obj, unsigned long id)
return NULL;
}
-EXPORT_SYMBOL_GPL(klp_shadow_get);
static void *__klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
size_t size, gfp_t gfp_flags, bool warn_on_exist)
@@ -191,7 +190,6 @@ void *klp_shadow_alloc(void *obj, unsigned long id, void *data,
{
return __klp_shadow_get_or_alloc(obj, id, data, size, gfp_flags, true);
}
-EXPORT_SYMBOL_GPL(klp_shadow_alloc);
/**
* klp_shadow_get_or_alloc() - get existing or allocate a new shadow variable
@@ -217,7 +215,6 @@ void *klp_shadow_get_or_alloc(void *obj, unsigned long id, void *data,
{
return __klp_shadow_get_or_alloc(obj, id, data, size, gfp_flags, false);
}
-EXPORT_SYMBOL_GPL(klp_shadow_get_or_alloc);
/**
* klp_shadow_free() - detach and free a <obj, id> shadow variable
@@ -247,7 +244,6 @@ void klp_shadow_free(void *obj, unsigned long id)
spin_unlock_irqrestore(&klp_shadow_lock, flags);
}
-EXPORT_SYMBOL_GPL(klp_shadow_free);
/**
* klp_shadow_free_all() - detach and free all <*, id> shadow variables
@@ -274,4 +270,3 @@ void klp_shadow_free_all(unsigned long id)
spin_unlock_irqrestore(&klp_shadow_lock, flags);
}
-EXPORT_SYMBOL_GPL(klp_shadow_free_all);