Linux-EDAC Archive on lore.kernel.org
 help / color / 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
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, back to index

Thread overview: (only message) (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

Linux-EDAC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-edac/0 linux-edac/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-edac linux-edac/ https://lore.kernel.org/linux-edac \
		linux-edac@vger.kernel.org
	public-inbox-index linux-edac

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-edac


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git