This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8546

-- gerrit

commit 4def606676b94aa850328f8b9743c60d8225d85e
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sat Nov 9 18:54:14 2024 +0100

    pld: make get_pld_device_by_num() static
    
    The function is not referenced outside the file.
    Make it static.
    
    Change-Id: I5f2a2c70085b9158df8806432bb9ed09bb256ab5
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/pld/pld.c b/src/pld/pld.c
index 81fb0c4632..edd7796139 100644
--- a/src/pld/pld.c
+++ b/src/pld/pld.c
@@ -28,7 +28,7 @@ static struct pld_driver *pld_drivers[] = {
 
 static struct pld_device *pld_devices;
 
-struct pld_device *get_pld_device_by_num(int num)
+static struct pld_device *get_pld_device_by_num(int num)
 {
        struct pld_device *p;
        int i = 0;
diff --git a/src/pld/pld.h b/src/pld/pld.h
index 5e2fcd20cc..a6e2e0fc8d 100644
--- a/src/pld/pld.h
+++ b/src/pld/pld.h
@@ -54,7 +54,6 @@ struct pld_device {
 
 int pld_register_commands(struct command_context *cmd_ctx);
 
-struct pld_device *get_pld_device_by_num(int num);
 struct pld_device *get_pld_device_by_name(const char *name);
 struct pld_device *get_pld_device_by_name_or_numstr(const char *str);
 

-- 

Reply via email to