diff options
| author | Alistair Popple <apopple@nvidia.com> | 2025-06-19 11:58:05 +0300 | 
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-07-10 08:42:19 +0300 | 
| commit | 21aa65bf82a78c1e70447a45a85e533689b7f1a7 (patch) | |
| tree | d4b6149c701e69aa24c74086f8c9d0317904e143 /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | 984921edea68bf24bcc87e1317bfc90451ff46c6 (diff) | |
| download | linux-21aa65bf82a78c1e70447a45a85e533689b7f1a7.tar.xz | |
mm: remove callers of pfn_t functionality
All PFN_* pfn_t flags have been removed.  Therefore there is no longer a
need for the pfn_t type and all uses can be replaced with normal pfns.
Link: https://lkml.kernel.org/r/bbedfa576c9822f8032494efbe43544628698b1f.1750323463.git-series.apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Balbir Singh <balbirs@nvidia.com>
Cc: Björn Töpel <bjorn@kernel.org>
Cc: Björn Töpel <bjorn@rivosinc.com>
Cc: Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Deepak Gupta <debug@rivosinc.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Inki Dae <m.szyprowski@samsung.com>
Cc: John Groves <john@groves.net>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_gem.c | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index 9df05b2b7ba0..381552bfb409 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -8,7 +8,6 @@  #include <linux/seq_file.h>  #include <linux/shmem_fs.h>  #include <linux/spinlock.h> -#include <linux/pfn_t.h>  #include <linux/vmalloc.h>  #include <drm/drm_prime.h> @@ -371,7 +370,7 @@ static vm_fault_t omap_gem_fault_1d(struct drm_gem_object *obj,  	VERB("Inserting %p pfn %lx, pa %lx", (void *)vmf->address,  			pfn, pfn << PAGE_SHIFT); -	return vmf_insert_mixed(vma, vmf->address, __pfn_to_pfn_t(pfn, 0)); +	return vmf_insert_mixed(vma, vmf->address, pfn);  }  /* Special handling for the case of faulting in 2d tiled buffers */ @@ -466,8 +465,7 @@ static vm_fault_t omap_gem_fault_2d(struct drm_gem_object *obj,  			pfn, pfn << PAGE_SHIFT);  	for (i = n; i > 0; i--) { -		ret = vmf_insert_mixed(vma, -			vaddr, __pfn_to_pfn_t(pfn, 0)); +		ret = vmf_insert_mixed(vma, vaddr, pfn);  		if (ret & VM_FAULT_ERROR)  			break;  		pfn += priv->usergart[fmt].stride_pfn; | 
