[qca-nss-drv] Fix compile error when referencing ctl_table structure
While referencing ctl_table structure from Linux Kernel, the "struct"
identifier is missing and causes compile error
Change-Id: Ie1ca04947625959607f9493c8e0761095a49c045
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
diff --git a/nss_ipv4.c b/nss_ipv4.c
index 5dd27a9..81ea0e2 100644
--- a/nss_ipv4.c
+++ b/nss_ipv4.c
@@ -405,7 +405,7 @@
* nss_ipv4_conn_cfg_handler()
* Sets the number of connections for IPv4
*/
-static int nss_ipv4_conn_cfg_handler(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos)
+static int nss_ipv4_conn_cfg_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos)
{
struct nss_top_instance *nss_top = &nss_top_main;
struct nss_ctx_instance *nss_ctx = &nss_top->nss[0];
@@ -508,7 +508,7 @@
return 0;
}
-static ctl_table nss_ipv4_table[] = {
+static struct ctl_table nss_ipv4_table[] = {
{
.procname = "ipv4_conn",
.data = &nss_ipv4_conn_cfg,
@@ -519,7 +519,7 @@
{ }
};
-static ctl_table nss_ipv4_dir[] = {
+static struct ctl_table nss_ipv4_dir[] = {
{
.procname = "ipv4cfg",
.mode = 0555,
@@ -529,7 +529,7 @@
};
-static ctl_table nss_ipv4_root_dir[] = {
+static struct ctl_table nss_ipv4_root_dir[] = {
{
.procname = "nss",
.mode = 0555,
@@ -538,7 +538,7 @@
{ }
};
-static ctl_table nss_ipv4_root[] = {
+static struct ctl_table nss_ipv4_root[] = {
{
.procname = "dev",
.mode = 0555,