linux-bl808/arch/mips/include/asm/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
..
cvmx-address.h
cvmx-agl-defs.h
cvmx-asm.h
cvmx-asxx-defs.h
cvmx-boot-vector.h
cvmx-bootinfo.h MIPS: Octeon: add SNIC10E board 2022-05-23 11:12:59 +02:00
cvmx-bootmem.h
cvmx-ciu-defs.h
cvmx-ciu2-defs.h
cvmx-ciu3-defs.h
cvmx-cmd-queue.h
cvmx-config.h
cvmx-coremask.h
cvmx-dbg-defs.h
cvmx-dpi-defs.h
cvmx-fau.h
cvmx-fpa-defs.h
cvmx-fpa.h MIPS: Octeon: remove orphan cvmx_fpa_setup_pool() declaration 2022-09-19 16:35:23 +02:00
cvmx-gmxx-defs.h
cvmx-gpio-defs.h
cvmx-helper-board.h MIPS: Fix some typos 2022-07-05 11:12:12 +02:00
cvmx-helper-errata.h
cvmx-helper-jtag.h
cvmx-helper-loop.h
cvmx-helper-npi.h
cvmx-helper-rgmii.h
cvmx-helper-sgmii.h
cvmx-helper-spi.h
cvmx-helper-util.h
cvmx-helper-xaui.h
cvmx-helper.h
cvmx-iob-defs.h
cvmx-ipd-defs.h
cvmx-ipd.h
cvmx-l2c-defs.h
cvmx-l2c.h
cvmx-l2d-defs.h
cvmx-l2t-defs.h
cvmx-led-defs.h
cvmx-lmcx-defs.h
cvmx-mio-defs.h
cvmx-mixx-defs.h
cvmx-npei-defs.h
cvmx-npi-defs.h
cvmx-packet.h
cvmx-pci-defs.h
cvmx-pciercx-defs.h
cvmx-pcsx-defs.h
cvmx-pcsxx-defs.h
cvmx-pemx-defs.h
cvmx-pescx-defs.h
cvmx-pexp-defs.h
cvmx-pip-defs.h
cvmx-pip.h
cvmx-pko-defs.h
cvmx-pko.h
cvmx-pow-defs.h
cvmx-pow.h
cvmx-rnm-defs.h
cvmx-rst-defs.h
cvmx-scratch.h
cvmx-sli-defs.h
cvmx-spi.h
cvmx-spinlock.h
cvmx-spxx-defs.h
cvmx-sriox-defs.h
cvmx-srxx-defs.h
cvmx-stxx-defs.h
cvmx-sysinfo.h
cvmx-uctlx-defs.h
cvmx-wqe.h
cvmx.h staging: octeon: cvmx_ptr_to_phys() should return physaddr_t 2022-11-02 08:21:49 +01:00
octeon-feature.h
octeon-model.h
octeon.h MIPS: Octeon: remove orphan octeon_hal_setup_reserved32() declaration 2022-09-19 16:35:50 +02:00
pci-octeon.h MIPS: Octeon: remove orphan octeon_swiotlb declaration 2022-09-19 16:34:57 +02:00