mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-04-17 22:24:18 -04:00
The monitor container source files contained a declaration and a definition for the rv_monitor variable. The former is superfluous and can be removed. Remove the variable declaration from the template as well as the existing monitor containers. Reviewed-by: Nam Cao <namcao@linutronix.de> Link: https://lore.kernel.org/r/20251126104241.291258-9-gmonaco@redhat.com Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
32 lines
732 B
C
32 lines
732 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/init.h>
|
|
#include <linux/rv.h>
|
|
|
|
#define MODULE_NAME "rtapp"
|
|
|
|
#include "rtapp.h"
|
|
|
|
struct rv_monitor rv_rtapp = {
|
|
.name = "rtapp",
|
|
.description = "Collection of monitors for detecting problems with real-time applications",
|
|
};
|
|
|
|
static int __init register_rtapp(void)
|
|
{
|
|
return rv_register_monitor(&rv_rtapp, NULL);
|
|
}
|
|
|
|
static void __exit unregister_rtapp(void)
|
|
{
|
|
rv_unregister_monitor(&rv_rtapp);
|
|
}
|
|
|
|
module_init(register_rtapp);
|
|
module_exit(unregister_rtapp);
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_AUTHOR("Nam Cao <namcao@linutronix.de>");
|
|
MODULE_DESCRIPTION("Collection of monitors for detecting problems with real-time applications");
|