linux-stable/drivers/s390/block
Linus Walleij 2d1494fb31 s390/mm: make virt_to_pfn() a static inline
Making virt_to_pfn() a static inline taking a strongly typed
(const void *) makes the contract of a passing a pointer of that
type to the function explicit and exposes any misuse of the
macro virt_to_pfn() acting polymorphic and accepting many types
such as (void *), (unitptr_t) or (unsigned long) as arguments
without warnings.

For symmetry do the same with pfn_to_virt() reflecting the
current layout in asm-generic/page.h.

Doing this reveals a number of offenders in the arch code and
the S390-specific drivers, so just bite the bullet and fix up
all of those as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Link: https://lore.kernel.org/r/20230812-virt-to-phys-s390-v2-1-6c40f31fe36f@linaro.org
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2023-08-16 15:13:03 +02:00
..
dasd.c SCSI misc on 20230629 2023-06-30 11:57:07 -07:00
dasd_3990_erp.c s390/dasd: sort out physical vs virtual pointers usage 2023-02-09 17:05:43 -07:00
dasd_alias.c s390/dasd: sort out physical vs virtual pointers usage 2023-02-09 17:05:43 -07:00
dasd_devmap.c s390/dasd: add aq_timeouts autoquiesce trigger 2023-04-11 19:53:08 -06:00
dasd_diag.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
dasd_diag.h
dasd_eckd.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
dasd_eckd.h s390/dasd: add device ping attribute 2022-09-21 08:32:51 -06:00
dasd_eer.c s390/dasd: add autoquiesce feature 2023-04-11 19:53:08 -06:00
dasd_erp.c s390/dasd: handle request magic consistently as unsigned int 2021-10-20 08:10:41 -06:00
dasd_fba.c s390: include linux/io.h instead of asm/io.h 2023-07-03 11:19:40 +02:00
dasd_fba.h s390/dasd: fix typo in copyright statement 2019-12-20 11:52:01 -07:00
dasd_genhd.c block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
dasd_int.h block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
dasd_ioctl.c for-6.5/block-2023-06-23 2023-06-26 12:47:20 -07:00
dasd_proc.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
dcssblk.c s390/dcssblk: fix virtual vs physical address confusion 2023-07-24 12:12:23 +02:00
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
Makefile s390: remove xpram device driver 2021-09-07 13:38:42 +02:00
scm_blk.c s390/mm: make virt_to_pfn() a static inline 2023-08-16 15:13:03 +02:00
scm_blk.h block: remove genhd.h 2022-02-02 07:49:59 -07:00
scm_drv.c s390/scm: Make struct scm_driver::remove return void 2021-07-21 11:53:42 +02:00