]> Devoid-pointer.net GitWeb - KLGD.git/commitdiff
Export klgd_free_command()
authorMichal Malý <madcatxster@devoid-pointer.net>
Sun, 16 Aug 2015 13:27:03 +0000 (15:27 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sun, 16 Aug 2015 13:27:03 +0000 (15:27 +0200)
klgd.c
klgd.h

diff --git a/klgd.c b/klgd.c
index 271bef113bc953b3366919b97e8de422954f4783..78b5aca504202680893f2bd0d9198419ca64447d 100644 (file)
--- a/klgd.c
+++ b/klgd.c
@@ -222,13 +222,14 @@ out:
        printk(KERN_NOTICE "KLGD/WQ: --- WQ complete ---\n");
 }
 
-static void klgd_free_command(const struct klgd_command *cmd)
+void klgd_free_command(const struct klgd_command *cmd)
 {
        if (cmd) {
                kfree(cmd->bytes);
                kfree(cmd);
        }
 }
+EXPORT_SYMBOL_GPL(klgd_free_command);
 
 void klgd_free_stream(struct klgd_command_stream *s)
 {
diff --git a/klgd.h b/klgd.h
index 313465657faaea9938a7bcdc97e24b02f791ee56..b10e9c1a5c1db0137520e09b8d29fc983a64c082 100644 (file)
--- a/klgd.h
+++ b/klgd.h
@@ -43,6 +43,7 @@ struct klgd_command_stream * klgd_alloc_stream(void);
 int klgd_append_cmd(struct klgd_command_stream *target, const struct klgd_command *cmd);
 int klgd_append_stream(struct klgd_command_stream *target, const struct klgd_command_stream *source);
 void klgd_deinit(struct klgd_main *ctx);
+void klgd_free_command(const struct klgd_command *cmd);
 void klgd_free_stream(struct klgd_command_stream *s);
 int klgd_init(struct klgd_main *ctx, void *dev_ctx, int (*callback)(void *, const struct klgd_command_stream *), const unsigned long plugin_count);
 void klgd_lock_plugins(struct mutex *lock);