[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] hw/core/fw-path-provider: turn fw_path_provider_get_dev_path
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 1/2] hw/core/fw-path-provider: turn fw_path_provider_get_dev_path() static |
Date: |
Fri, 21 Jan 2022 17:29:51 -0300 |
This function is used only by fw_path_provider_try_get_dev_path() in the
same file.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
hw/core/fw-path-provider.c | 4 ++--
include/hw/fw-path-provider.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/core/fw-path-provider.c b/hw/core/fw-path-provider.c
index 4840faefd1..4bcf4e7e34 100644
--- a/hw/core/fw-path-provider.c
+++ b/hw/core/fw-path-provider.c
@@ -19,8 +19,8 @@
#include "hw/fw-path-provider.h"
#include "qemu/module.h"
-char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
- DeviceState *dev)
+static char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
+ DeviceState *dev)
{
FWPathProviderClass *k = FW_PATH_PROVIDER_GET_CLASS(p);
diff --git a/include/hw/fw-path-provider.h b/include/hw/fw-path-provider.h
index 8e1d45651c..9ef50ebe4a 100644
--- a/include/hw/fw-path-provider.h
+++ b/include/hw/fw-path-provider.h
@@ -36,8 +36,6 @@ struct FWPathProviderClass {
char *(*get_dev_path)(FWPathProvider *p, BusState *bus, DeviceState *dev);
};
-char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
- DeviceState *dev);
char *fw_path_provider_try_get_dev_path(Object *o, BusState *bus,
DeviceState *dev);
--
2.34.1