[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_ipv6.c b/nss_ipv6.c
index 16aab26..3e6fa02 100644
--- a/nss_ipv6.c
+++ b/nss_ipv6.c
@@ -408,7 +408,7 @@
* nss_ipv6_conn_cfg_handler()
* Sets the number of connections for IPv6
*/
-static int nss_ipv6_conn_cfg_handler(ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos)
+static int nss_ipv6_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];
@@ -510,7 +510,7 @@
return -EINVAL;
}
-static ctl_table nss_ipv6_table[] = {
+static struct ctl_table nss_ipv6_table[] = {
{
.procname = "ipv6_conn",
.data = &nss_ipv6_conn_cfg,
@@ -521,7 +521,7 @@
{ }
};
-static ctl_table nss_ipv6_dir[] = {
+static struct ctl_table nss_ipv6_dir[] = {
{
.procname = "ipv6cfg",
.mode = 0555,
@@ -530,7 +530,7 @@
{ }
};
-static ctl_table nss_ipv6_root_dir[] = {
+static struct ctl_table nss_ipv6_root_dir[] = {
{
.procname = "nss",
.mode = 0555,
@@ -539,7 +539,7 @@
{ }
};
-static ctl_table nss_ipv6_root[] = {
+static struct ctl_table nss_ipv6_root[] = {
{
.procname = "dev",
.mode = 0555,