]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ibmveth: Use dcbf rather than dcbfl
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2023 04:51:39 +0000 (14:51 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Aug 2023 14:35:14 +0000 (16:35 +0200)
commit bfedba3b2c7793ce127680bc8f70711e05ec7a17 upstream.

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@ellerman.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmveth.c

index e0dfec57c3025b8ea8882889b88faa1b5faa0d68..cbf2d78765a4fa6e899ff19192f3a405355b5519 100644 (file)
@@ -209,7 +209,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