hv: remove unused flags related APIs in sbuf
There APIs are removed: - sbuf_clear_flags - sbuf_set_flags - sbuf_add_flags Tracked-On: #1842 Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
parent
aa9af27338
commit
d495732c71
|
@ -60,21 +60,6 @@ struct shared_buf {
|
|||
|
||||
#ifdef HV_DEBUG
|
||||
|
||||
static inline void sbuf_clear_flags(struct shared_buf *sbuf, uint32_t flags)
|
||||
{
|
||||
sbuf->flags &= ~flags;
|
||||
}
|
||||
|
||||
static inline void sbuf_set_flags(struct shared_buf *sbuf, uint32_t flags)
|
||||
{
|
||||
sbuf->flags = flags;
|
||||
}
|
||||
|
||||
static inline void sbuf_add_flags(struct shared_buf *sbuf, uint32_t flags)
|
||||
{
|
||||
sbuf->flags |= flags;
|
||||
}
|
||||
|
||||
/**
|
||||
*@pre sbuf != NULL
|
||||
*@pre data != NULL
|
||||
|
@ -90,24 +75,6 @@ uint32_t sbuf_next_ptr(uint32_t pos, uint32_t span, uint32_t scope);
|
|||
|
||||
#else /* HV_DEBUG */
|
||||
|
||||
static inline void sbuf_clear_flags(
|
||||
__unused struct shared_buf *sbuf,
|
||||
__unused uint32_t flags)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void sbuf_set_flags(
|
||||
__unused struct shared_buf *sbuf,
|
||||
__unused uint32_t flags)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void sbuf_add_flags(
|
||||
__unused struct shared_buf *sbuf,
|
||||
__unused uint32_t flags)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int sbuf_get(
|
||||
__unused struct shared_buf *sbuf,
|
||||
__unused uint8_t *data)
|
||||
|
|
Loading…
Reference in New Issue