linux-edac.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled
@ 2021-03-09 16:18 Shiju Jose
  2021-05-26  7:23 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 2+ messages in thread
From: Shiju Jose @ 2021-03-09 16:18 UTC (permalink / raw)
  To: linux-edac, mchehab+huawei; +Cc: linuxarm, tanxiaofei, shiju.jose

ns_ev_decoder->stmt_dec_record = NULL; in the register_ns_ev_decoder()
should be under #ifdef HAVE_SQLITE3 to fix the compilation error
when build without the configure option --enable-sqlite3.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
---
 ras-non-standard-handler.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ras-non-standard-handler.c b/ras-non-standard-handler.c
index 1862335..8d9802d 100644
--- a/ras-non-standard-handler.c
+++ b/ras-non-standard-handler.c
@@ -74,7 +74,9 @@ int register_ns_ev_decoder(struct ras_ns_ev_decoder *ns_ev_decoder)
 		return -1;
 
 	ns_ev_decoder->next = NULL;
+#ifdef HAVE_SQLITE3
 	ns_ev_decoder->stmt_dec_record = NULL;
+#endif
 	if (!ras_ns_ev_dec_list) {
 		ras_ns_ev_dec_list = ns_ev_decoder;
 	} else {
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled
  2021-03-09 16:18 [PATCH 1/1] rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled Shiju Jose
@ 2021-05-26  7:23 ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 2+ messages in thread
From: Mauro Carvalho Chehab @ 2021-05-26  7:23 UTC (permalink / raw)
  To: Shiju Jose; +Cc: linux-edac, linuxarm, tanxiaofei

Em Tue, 9 Mar 2021 16:18:56 +0000
Shiju Jose <shiju.jose@huawei.com> escreveu:

> ns_ev_decoder->stmt_dec_record = NULL; in the register_ns_ev_decoder()
> should be under #ifdef HAVE_SQLITE3 to fix the compilation error
> when build without the configure option --enable-sqlite3.
> 
> Signed-off-by: Shiju Jose <shiju.jose@huawei.com>

Applied, thanks!

> ---
>  ras-non-standard-handler.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ras-non-standard-handler.c b/ras-non-standard-handler.c
> index 1862335..8d9802d 100644
> --- a/ras-non-standard-handler.c
> +++ b/ras-non-standard-handler.c
> @@ -74,7 +74,9 @@ int register_ns_ev_decoder(struct ras_ns_ev_decoder *ns_ev_decoder)
>  		return -1;
>  
>  	ns_ev_decoder->next = NULL;
> +#ifdef HAVE_SQLITE3
>  	ns_ev_decoder->stmt_dec_record = NULL;
> +#endif
>  	if (!ras_ns_ev_dec_list) {
>  		ras_ns_ev_dec_list = ns_ev_decoder;
>  	} else {



Thanks,
Mauro

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-26  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 16:18 [PATCH 1/1] rasdaemon: fix build error in register_ns_ev_decoder if the sqlite3 is not enabled Shiju Jose
2021-05-26  7:23 ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).