Skip to content

Commit a2d7a8c

Browse files
committed
Revert "mm: remove callers of pfn_t functionality"
JIRA: https://issues.redhat.com/browse/RHEL-116879 Upstream Status: RHEL only This reverts commit 21aa65b. Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
1 parent c865675 commit a2d7a8c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

drivers/gpu/drm/gma500/fbdev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
**************************************************************************/
77

88
#include <linux/fb.h>
9+
#include <linux/pfn_t.h>
910

1011
#include <drm/drm_crtc_helper.h>
1112
#include <drm/drm_drv.h>
@@ -32,7 +33,7 @@ static vm_fault_t psb_fbdev_vm_fault(struct vm_fault *vmf)
3233
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
3334

3435
for (i = 0; i < page_num; ++i) {
35-
err = vmf_insert_mixed(vma, address, pfn);
36+
err = vmf_insert_mixed(vma, address, __pfn_to_pfn_t(pfn, 0));
3637
if (unlikely(err & VM_FAULT_ERROR))
3738
break;
3839
address += PAGE_SIZE;

drivers/gpu/drm/i915/gem/i915_gem_mman.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <linux/anon_inodes.h>
77
#include <linux/mman.h>
8+
#include <linux/pfn_t.h>
89
#include <linux/sizes.h>
910

1011
#include <drm/drm_cache.h>

drivers/hwtracing/intel_th/msu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/io.h>
2020
#include <linux/workqueue.h>
2121
#include <linux/dma-mapping.h>
22+
#include <linux/pfn_t.h>
2223

2324
#ifdef CONFIG_X86
2425
#include <asm/set_memory.h>

0 commit comments

Comments
 (0)