This function is in its current form no longer called from anywhere, but since
it is exported someone could (maliciously) still call it and cause a mess. We
therefore issue a warning and do not do anything else. This will be removed in
a future version.
Orabug:
17717401
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Acked-by: Dave Kleikamp <dave.kleikamp@oracle.com>
void dtrace_os_exit(void)
{
- if (dtrace_kmod == NULL) {
- pr_warning("%s: kernel pseudo-module not allocated\n",
- __func__);
- return;
- }
-
- kmem_cache_destroy(psinfo_cachep);
- kfree(dtrace_kmod);
- dtrace_kmod = NULL;
+ pr_warn_once("%s is being deprecated - please do not use.\n",
+ __func__);
}
EXPORT_SYMBOL(dtrace_os_exit);