]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
fabrics: make uuid_from_device_tree and uuid_from_dmi static
authorHannes Reinecke <hare@suse.de>
Thu, 30 Sep 2021 08:24:09 +0000 (10:24 +0200)
committerHannes Reinecke <hare@suse.de>
Fri, 8 Oct 2021 11:16:32 +0000 (13:16 +0200)
The functions are internal to fabrics.c, so mark them as 'static'.

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/nvme/fabrics.c

index 319d66f79dbe76216195329d2278b9c48cb27785..16e014027ce5387d2f2dcba326ea95db4e4946fd 100644 (file)
@@ -763,7 +763,7 @@ out_free_log:
 
 #define PATH_UUID_IBM  "/proc/device-tree/ibm,partition-uuid"
 
-int uuid_from_device_tree(char *system_uuid)
+static int uuid_from_device_tree(char *system_uuid)
 {
        ssize_t len;
        int f;
@@ -781,7 +781,7 @@ int uuid_from_device_tree(char *system_uuid)
 
 #define PATH_DMI_ENTRIES       "/sys/firmware/dmi/entries"
 
-int uuid_from_dmi(char *system_uuid)
+static int uuid_from_dmi(char *system_uuid)
 {
        int f;
        DIR *d;