* [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision
@ 2022-04-04 3:19 Dan Williams
2022-04-05 14:52 ` Verma, Vishal L
2022-04-06 8:38 ` kajoljain
0 siblings, 2 replies; 3+ messages in thread
From: Dan Williams @ 2022-04-04 3:19 UTC (permalink / raw)
To: nvdimm; +Cc: Kajol Jain
Starting with the new perf-event support in the nvdimm core, the
nfit_test mock module stops compiling. Rename its security_init() to
nfit_security_init().
tools/testing/nvdimm/test/nfit.c:1845:13: error: conflicting types for ‘security_init’; have ‘void(struct nfit_test *)’
1845 | static void security_init(struct nfit_test *t)
| ^~~~~~~~~~~~~
In file included from ./include/linux/perf_event.h:61,
from ./include/linux/nd.h:11,
from ./drivers/nvdimm/nd-core.h:11,
from tools/testing/nvdimm/test/nfit.c:19:
Fixes: 9a61d0838cd0 ("drivers/nvdimm: Add nvdimm pmu structure")
Cc: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
tools/testing/nvdimm/test/nfit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index 65dbdda3a054..1da76ccde448 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -1842,7 +1842,7 @@ static int nfit_test_dimm_init(struct nfit_test *t)
return 0;
}
-static void security_init(struct nfit_test *t)
+static void nfit_security_init(struct nfit_test *t)
{
int i;
@@ -1938,7 +1938,7 @@ static int nfit_test0_alloc(struct nfit_test *t)
if (nfit_test_dimm_init(t))
return -ENOMEM;
smart_init(t);
- security_init(t);
+ nfit_security_init(t);
return ars_state_init(&t->pdev.dev, &t->ars_state);
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision
2022-04-04 3:19 [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision Dan Williams
@ 2022-04-05 14:52 ` Verma, Vishal L
2022-04-06 8:38 ` kajoljain
1 sibling, 0 replies; 3+ messages in thread
From: Verma, Vishal L @ 2022-04-05 14:52 UTC (permalink / raw)
To: Williams, Dan J, nvdimm; +Cc: kjain
On Sun, 2022-04-03 at 20:19 -0700, Dan Williams wrote:
> Starting with the new perf-event support in the nvdimm core, the
> nfit_test mock module stops compiling. Rename its security_init() to
> nfit_security_init().
>
> tools/testing/nvdimm/test/nfit.c:1845:13: error: conflicting types for ‘security_init’; have ‘void(struct nfit_test *)’
> 1845 | static void security_init(struct nfit_test *t)
> | ^~~~~~~~~~~~~
> In file included from ./include/linux/perf_event.h:61,
> from ./include/linux/nd.h:11,
> from ./drivers/nvdimm/nd-core.h:11,
> from tools/testing/nvdimm/test/nfit.c:19:
>
> Fixes: 9a61d0838cd0 ("drivers/nvdimm: Add nvdimm pmu structure")
> Cc: Kajol Jain <kjain@linux.ibm.com>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Looks good,
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
> ---
> tools/testing/nvdimm/test/nfit.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
> index 65dbdda3a054..1da76ccde448 100644
> --- a/tools/testing/nvdimm/test/nfit.c
> +++ b/tools/testing/nvdimm/test/nfit.c
> @@ -1842,7 +1842,7 @@ static int nfit_test_dimm_init(struct nfit_test *t)
> return 0;
> }
>
> -static void security_init(struct nfit_test *t)
> +static void nfit_security_init(struct nfit_test *t)
> {
> int i;
>
> @@ -1938,7 +1938,7 @@ static int nfit_test0_alloc(struct nfit_test *t)
> if (nfit_test_dimm_init(t))
> return -ENOMEM;
> smart_init(t);
> - security_init(t);
> + nfit_security_init(t);
> return ars_state_init(&t->pdev.dev, &t->ars_state);
> }
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision
2022-04-04 3:19 [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision Dan Williams
2022-04-05 14:52 ` Verma, Vishal L
@ 2022-04-06 8:38 ` kajoljain
1 sibling, 0 replies; 3+ messages in thread
From: kajoljain @ 2022-04-06 8:38 UTC (permalink / raw)
To: Dan Williams, nvdimm
On 4/4/22 08:49, Dan Williams wrote:
> Starting with the new perf-event support in the nvdimm core, the
> nfit_test mock module stops compiling. Rename its security_init() to
> nfit_security_init().
>
> tools/testing/nvdimm/test/nfit.c:1845:13: error: conflicting types for ‘security_init’; have ‘void(struct nfit_test *)’
> 1845 | static void security_init(struct nfit_test *t)
> | ^~~~~~~~~~~~~
> In file included from ./include/linux/perf_event.h:61,
> from ./include/linux/nd.h:11,
> from ./drivers/nvdimm/nd-core.h:11,
> from tools/testing/nvdimm/test/nfit.c:19:
>
> Fixes: 9a61d0838cd0 ("drivers/nvdimm: Add nvdimm pmu structure")
> Cc: Kajol Jain <kjain@linux.ibm.com>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Looks good to me.
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Thanks,
Kajol Jain
> ---
> tools/testing/nvdimm/test/nfit.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
> index 65dbdda3a054..1da76ccde448 100644
> --- a/tools/testing/nvdimm/test/nfit.c
> +++ b/tools/testing/nvdimm/test/nfit.c
> @@ -1842,7 +1842,7 @@ static int nfit_test_dimm_init(struct nfit_test *t)
> return 0;
> }
>
> -static void security_init(struct nfit_test *t)
> +static void nfit_security_init(struct nfit_test *t)
> {
> int i;
>
> @@ -1938,7 +1938,7 @@ static int nfit_test0_alloc(struct nfit_test *t)
> if (nfit_test_dimm_init(t))
> return -ENOMEM;
> smart_init(t);
> - security_init(t);
> + nfit_security_init(t);
> return ars_state_init(&t->pdev.dev, &t->ars_state);
> }
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-06 8:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 3:19 [PATCH] tools/testing/nvdimm: Fix security_init() symbol collision Dan Williams
2022-04-05 14:52 ` Verma, Vishal L
2022-04-06 8:38 ` kajoljain
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.