[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230823045139.738816-1-mpe@ellerman.id.au>
Date: Wed, 23 Aug 2023 14:51:39 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: <netdev@...r.kernel.org>
Cc: <linuxppc-dev@...ts.ozlabs.org>,
nnac123@...ux.ibm.com
Subject: [PATCH] ibmveth: Use dcbf rather than dcbfl
When building for power4, newer binutils don't recognise the "dcbfl"
extended mnemonic.
dcbfl RA, RB is equivalent to dcbf RA, RB, 1.
Switch to "dcbf" to avoid the build error.
Signed-off-by: Michael Ellerman <mpe@...erman.id.au>
---
drivers/net/ethernet/ibm/ibmveth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index 113fcb3e353e..832a2ae01950 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -203,7 +203,7 @@ static inline void ibmveth_flush_buffer(void *addr, unsigned long length)
unsigned long offset;
for (offset = 0; offset < length; offset += SMP_CACHE_BYTES)
- asm("dcbfl %0,%1" :: "b" (addr), "r" (offset));
+ asm("dcbf %0,%1,1" :: "b" (addr), "r" (offset));
}
/* replenish the buffers for a pool. note that we don't need to
--
2.40.1
Powered by blists - more mailing lists