OpenCloudOS-Kernel/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
..
Kconfig Revert "staging/octeon: Mark Ethernet driver as BROKEN" 2020-02-12 13:50:33 -08:00
Makefile Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
TODO Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-defines.h staging: octeon: Indent with tabs instead of spaces 2020-07-23 20:34:34 +02:00
ethernet-mdio.c staging: octeon: remove braces from single-line block 2021-02-07 10:05:29 +01:00
ethernet-mdio.h net: phy: mdio-octeon: Cleanup module loading dependencies 2020-07-07 12:47:11 -07:00
ethernet-mem.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-mem.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-rgmii.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-rx.c staging: switch to netif_napi_add_weight() 2022-07-08 14:28:21 +02:00
ethernet-rx.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet-sgmii.c Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
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 Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
ethernet.c Staging driver update for 5.16-rc1 2021-11-04 07:56:22 -07:00
octeon-ethernet.h Revert "staging: octeon: delete driver" 2020-02-12 13:50:32 -08:00
octeon-stubs.h staging: octeon: cvmx_ptr_to_phys() should return physaddr_t 2022-11-02 08:21:49 +01:00