1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/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 mips: asm: octeon: A typo fix in the file cvmx-address.h 2021-03-24 10:29:19 +01:00
cvmx-agl-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-asm.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
cvmx-asxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-boot-vector.h MIPS: Octeon: Add support for accessing the boot vector. 2017-09-04 21:19:03 +02:00
cvmx-bootinfo.h MIPS: Octeon: add SNIC10E board 2022-05-23 11:12:59 +02:00
cvmx-bootmem.h MIPS: OCTEON: cvmx-bootmem: make more functions static 2018-11-21 15:36:47 -08:00
cvmx-ciu-defs.h MIPS: Octeon: Simplify CIU register functions. 2018-07-03 16:01:36 -07:00
cvmx-ciu2-defs.h MIPS: OCTEON: cvmx-ciu2-defs.h: delete unused unions 2018-11-21 15:36:49 -08:00
cvmx-ciu3-defs.h MIPS: OCTEON: Add register definitions for cn73xx, cnf75xx and cn78xx. 2016-05-13 14:01:40 +02:00
cvmx-cmd-queue.h MIPS: Cavium: Fix typo 2016-05-28 12:35:07 +02:00
cvmx-config.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cvmx-coremask.h MIPS: OCTEON: Extend number of supported CPUs past 32 2016-05-13 14:01:39 +02:00
cvmx-dbg-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-dpi-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-fau.h MIPS: Octeon: Reverse the order of register accesses to the FAU 2015-04-01 17:22:14 +02:00
cvmx-fpa-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-fpa.h MIPS: Octeon: remove orphan cvmx_fpa_setup_pool() declaration 2022-09-19 16:35:23 +02:00
cvmx-gmxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-gpio-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-helper-board.h MIPS: Fix some typos 2022-07-05 11:12:12 +02:00
cvmx-helper-errata.h MIPS: Add Cavium OCTEON PCI support. 2009-06-17 11:06:25 +01:00
cvmx-helper-jtag.h MIPS: Add Cavium OCTEON PCI support. 2009-06-17 11:06:25 +01:00
cvmx-helper-loop.h MIPS: Octeon: Rearrange CVMX files in preperation for device tree 2011-12-07 22:03:29 +00:00
cvmx-helper-npi.h MIPS: Octeon: Rearrange CVMX files in preperation for device tree 2011-12-07 22:03:29 +00:00
cvmx-helper-rgmii.h MIPS: octeon: remove typedef declaration for cvmx_helper_link_info 2020-02-12 13:50:33 -08:00
cvmx-helper-sgmii.h MIPS: octeon: remove typedef declaration for cvmx_helper_link_info 2020-02-12 13:50:33 -08:00
cvmx-helper-spi.h MIPS: octeon: remove typedef declaration for cvmx_helper_link_info 2020-02-12 13:50:33 -08:00
cvmx-helper-util.h MIPS: octeon: remove typedef declaration for cvmx_wqe 2020-02-12 13:50:32 -08:00
cvmx-helper-xaui.h MIPS: octeon: remove typedef declaration for cvmx_helper_link_info 2020-02-12 13:50:33 -08:00
cvmx-helper.h MIPS: octeon: Remove unused functions 2021-10-24 17:15:06 +02:00
cvmx-iob-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-ipd-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-ipd.h MIPS: octeon: Include required header; fix octeon ethernet build 2019-10-02 10:08:20 -07:00
cvmx-l2c-defs.h MIPS: Octeon: Fix broken EDAC driver. 2017-08-07 11:58:48 +02:00
cvmx-l2c.h mips: octeon: cvmx-l2c.h: delete duplicated word 2020-07-26 10:15:19 +02:00
cvmx-l2d-defs.h MIPS: Octeon: Fix broken EDAC driver. 2017-08-07 11:58:48 +02:00
cvmx-l2t-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-led-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-lmcx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-mio-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-mixx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-npei-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-npi-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-packet.h MIPS: Octeon: Turn hardware bitfields and structures inside out. 2015-04-01 17:22:14 +02:00
cvmx-pci-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pciercx-defs.h MIPS: Octeon: Remove unused PCIERCX types and macros. 2017-04-10 11:56:07 +02:00
cvmx-pcsx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pcsxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pemx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pescx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pexp-defs.h MIPS: OCTEON: Update register definitions. 2012-08-31 10:46:53 -07:00
cvmx-pip-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pip.h mips: octeon: cvmx-pip.h: delete duplicated word 2020-07-26 10:15:28 +02:00
cvmx-pko-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pko.h MIPS: octeon: Remove unused functions 2021-10-24 17:15:06 +02:00
cvmx-pow-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-pow.h mips: octeon: cvmx-pow.h: fix duplicated words 2020-07-26 10:16:04 +02:00
cvmx-rnm-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-rst-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-scratch.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
cvmx-sli-defs.h MIPS: Use fallthrough for arch/mips 2020-05-07 11:55:47 +02:00
cvmx-spi.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
cvmx-spinlock.h MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
cvmx-spxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-sriox-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-srxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-stxx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-sysinfo.h MIPS: OCTEON: Extend number of supported CPUs past 32 2016-05-13 14:01:39 +02:00
cvmx-uctlx-defs.h MIPS: OCTEON: delete redundant register definitions 2018-12-04 15:57:30 -08:00
cvmx-wqe.h MIPS: octeon: remove typedef declaration for cvmx_wqe 2020-02-12 13:50:32 -08:00
cvmx.h staging: octeon: cvmx_ptr_to_phys() should return physaddr_t 2022-11-02 08:21:49 +01:00
octeon-feature.h MIPS: OCTEON: Add model checking support for cn73xx, cnf75xx and cn78xx 2016-05-13 14:01:40 +02:00
octeon-model.h MIPS: OCTEON: Add model checking support for cn73xx, cnf75xx and cn78xx 2016-05-13 14:01:40 +02:00
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