mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
tools: hv: remove unused rte_smp_mb()
rte_smp_mb() has never been used, and its "static inline __always_inline"
declares inline twice, so clang warns:
vmbus_bufring.c:61:15: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier]
vmbus_bufring.c:62:1: warning: unused function 'rte_smp_mb' [-Wunused-function]
Remove it.
Fixes: 45bab4d746 ("tools: hv: Add vmbus_bufring")
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
Reviewed-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Acked-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://patch.msgid.link/20261011223358.2327625-12-sashal@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
97a551fa49
commit
b67eeae485
|
|
@ -58,12 +58,6 @@ void vmbus_br_setup(struct vmbus_br *br, void *buf, unsigned int blen)
|
|||
br->dsize = blen - sizeof(struct vmbus_bufring);
|
||||
}
|
||||
|
||||
static inline __always_inline void
|
||||
rte_smp_mb(void)
|
||||
{
|
||||
asm volatile("lock addl $0, -128(%%rsp); " ::: "memory");
|
||||
}
|
||||
|
||||
static inline int
|
||||
rte_atomic32_cmpset(volatile uint32_t *dst, uint32_t exp, uint32_t src)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user