virtio: make a function local
Make vtpci_get_status a local function as it is used in one file. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com> Acked-by: Huawei Xie <huawei.xie@intel.com>
This commit is contained in:
parent
41d7fcf5e3
commit
a8c0f835a7
@ -35,6 +35,8 @@
|
||||
#include "virtio_pci.h"
|
||||
#include "virtio_logs.h"
|
||||
|
||||
static uint8_t vtpci_get_status(struct virtio_hw *);
|
||||
|
||||
void
|
||||
vtpci_read_dev_config(struct virtio_hw *hw, uint64_t offset,
|
||||
void *dst, int length)
|
||||
@ -113,7 +115,7 @@ vtpci_reinit_complete(struct virtio_hw *hw)
|
||||
vtpci_set_status(hw, VIRTIO_CONFIG_STATUS_DRIVER_OK);
|
||||
}
|
||||
|
||||
uint8_t
|
||||
static uint8_t
|
||||
vtpci_get_status(struct virtio_hw *hw)
|
||||
{
|
||||
return VIRTIO_READ_REG_1(hw, VIRTIO_PCI_STATUS);
|
||||
|
@ -253,8 +253,6 @@ void vtpci_reset(struct virtio_hw *);
|
||||
|
||||
void vtpci_reinit_complete(struct virtio_hw *);
|
||||
|
||||
uint8_t vtpci_get_status(struct virtio_hw *);
|
||||
|
||||
void vtpci_set_status(struct virtio_hw *, uint8_t);
|
||||
|
||||
uint32_t vtpci_negotiate_features(struct virtio_hw *, uint32_t);
|
||||
|
Loading…
Reference in New Issue
Block a user