linux/drivers/staging/octeon
Geert Uytterhoeven 3cbb8d0d6d staging: octeon: cvmx_ptr_to_phys() should return physaddr_t
On 32-bit without physical address extensions (e.g. sh-allmodconfig):

    drivers/staging/octeon/ethernet-mem.c: In function ‘cvm_oct_free_hw_memory’:
    ./arch/sh/include/asm/io.h:239:32: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
      239 | #define phys_to_virt(address) ((void *)(address))
	  |                                ^
    drivers/staging/octeon/ethernet-mem.c:123:18: note: in expansion of macro ‘phys_to_virt’
      123 |    fpa = (char *)phys_to_virt(cvmx_ptr_to_phys(fpa));
	  |                  ^~~~~~~~~~~~

Fix this by making cvmx_ptr_to_phys() return physaddr_t instead of
uint64_t.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20221101080111.750748-1-geert@linux-m68k.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-02 08:21:49 +01:00
..
ethernet-defines.h
ethernet-mdio.c
ethernet-mdio.h
ethernet-mem.c
ethernet-mem.h
ethernet-rgmii.c
ethernet-rx.c staging: switch to netif_napi_add_weight() 2022-07-08 14:28:21 +02:00
ethernet-rx.h
ethernet-sgmii.c
ethernet-spi.c staging: octeon: cleanup unnecessary parentheses in ethernet-spmi.c 2021-03-10 09:25:26 +01:00
ethernet-tx.c staging: octeon: remove redundant variable total_freed 2022-10-20 17:48:40 +02:00
ethernet-tx.h staging: octeon: Fix return type of cvm_oct_xmit and cvm_oct_xmit_pow 2022-09-24 13:07:31 +02:00
ethernet-util.h
ethernet.c Staging driver update for 5.16-rc1 2021-11-04 07:56:22 -07:00
Kconfig
Makefile
octeon-ethernet.h
octeon-stubs.h staging: octeon: cvmx_ptr_to_phys() should return physaddr_t 2022-11-02 08:21:49 +01:00
TODO