18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci// Copyright (C) 2018 Joe Lawrence <joe.lawrence@redhat.com>
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include <linux/module.h>
78c2ecf20Sopenharmony_ci#include <linux/kernel.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistatic int test_klp_callbacks_mod_init(void)
108c2ecf20Sopenharmony_ci{
118c2ecf20Sopenharmony_ci	pr_info("%s\n", __func__);
128c2ecf20Sopenharmony_ci	return 0;
138c2ecf20Sopenharmony_ci}
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistatic void test_klp_callbacks_mod_exit(void)
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	pr_info("%s\n", __func__);
188c2ecf20Sopenharmony_ci}
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cimodule_init(test_klp_callbacks_mod_init);
218c2ecf20Sopenharmony_cimodule_exit(test_klp_callbacks_mod_exit);
228c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL");
238c2ecf20Sopenharmony_ciMODULE_AUTHOR("Joe Lawrence <joe.lawrence@redhat.com>");
248c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Livepatch test: target module");
25