|
From: openocd-gerrit <ope...@us...> - 2023-05-18 10:16:06
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main OpenOCD repository".
The branch, master has been updated
via 5308bd991ca63e56c272af47ad6dacf7e4c75569 (commit)
from d5c177cd3def7002f18270742ff3b1380feb45c5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5308bd991ca63e56c272af47ad6dacf7e4c75569
Author: Antonio Borneo <bor...@gm...>
Date: Sat May 6 22:09:06 2023 +0200
flash: nand: move in include file the declaration of 'nand_devices'
The pointer nand_devices is used in two file.
Move the extern prototype in code.h
Detected through 'sparse' tool.
Change-Id: I7237359fd1a008770a624725cd0b3d8632b4166e
Signed-off-by: Antonio Borneo <bor...@gm...>
Reviewed-on: https://review.openocd.org/c/openocd/+/7674
Tested-by: jenkins
diff --git a/src/flash/nand/core.h b/src/flash/nand/core.h
index 8f54493af..137298cbc 100644
--- a/src/flash/nand/core.h
+++ b/src/flash/nand/core.h
@@ -179,6 +179,7 @@ enum oob_formats {
NAND_OOB_YAFFS2 = 0x100,/* when writing, use YAFFS2 OOB layout */
};
+extern struct nand_device *nand_devices;
struct nand_device *get_nand_device_by_num(int num);
diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c
index 4bb15faae..67a62770f 100644
--- a/src/flash/nand/tcl.c
+++ b/src/flash/nand/tcl.c
@@ -17,9 +17,6 @@
#include "fileio.h"
#include <target/target.h>
-/* to be removed */
-extern struct nand_device *nand_devices;
-
COMMAND_HANDLER(handle_nand_list_command)
{
struct nand_device *p;
-----------------------------------------------------------------------
Summary of changes:
src/flash/nand/core.h | 1 +
src/flash/nand/tcl.c | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|