From 9afcc5bc748649c14f3b0e5bca723e9e28fe6fc4 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Mon, 26 Sep 2016 16:39:22 +0100 Subject: [PATCH] kni: make static struct const Signed-off-by: Ferruh Yigit --- lib/librte_eal/linuxapp/kni/kni_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c index f051595cfa..37e9295a25 100644 --- a/lib/librte_eal/linuxapp/kni/kni_misc.c +++ b/lib/librte_eal/linuxapp/kni/kni_misc.c @@ -66,7 +66,7 @@ static int kni_thread_single(void *unused); /* KNI processing for multiple kernel thread mode */ static int kni_thread_multiple(void *param); -static struct file_operations kni_fops = { +static const struct file_operations kni_fops = { .owner = THIS_MODULE, .open = kni_open, .release = kni_release, -- 2.20.1