diff options
author | Borislav Petkov <bp@suse.de> | 2016-10-26 13:43:43 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-11-09 15:36:07 -0500 |
commit | 308a047c3f6b61cc4007c0051fe420197ea58f86 (patch) | |
tree | efb23de091be345aaa27b2affc3b73363232b4fd /include/asm-generic/pgtable.h | |
parent | bc33b0ca11e3df467777a4fa7639ba488c9d4911 (diff) |
x86/pat, mm: Make track_pfn_insert() return void
It only returns 0 so we can save us the testing of its retval
everywhere.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Toshi Kani <toshi.kani@hp.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: mcgrof@suse.com
Cc: dri-devel@lists.freedesktop.org
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dan.j.williams@intel.com
Cc: torvalds@linux-foundation.org
Link: http://lkml.kernel.org/r/20161026174839.rusfxkm3xt4ennhe@pd.tnic
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-generic/pgtable.h')
-rw-r--r-- | include/asm-generic/pgtable.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index c4f8fd2fd384..41b95d82a185 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
@@ -558,10 +558,9 @@ static inline int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot, | |||
558 | * track_pfn_insert is called when a _new_ single pfn is established | 558 | * track_pfn_insert is called when a _new_ single pfn is established |
559 | * by vm_insert_pfn(). | 559 | * by vm_insert_pfn(). |
560 | */ | 560 | */ |
561 | static inline int track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, | 561 | static inline void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, |
562 | pfn_t pfn) | 562 | pfn_t pfn) |
563 | { | 563 | { |
564 | return 0; | ||
565 | } | 564 | } |
566 | 565 | ||
567 | /* | 566 | /* |
@@ -593,8 +592,8 @@ static inline void untrack_pfn_moved(struct vm_area_struct *vma) | |||
593 | extern int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot, | 592 | extern int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot, |
594 | unsigned long pfn, unsigned long addr, | 593 | unsigned long pfn, unsigned long addr, |
595 | unsigned long size); | 594 | unsigned long size); |
596 | extern int track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, | 595 | extern void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, |
597 | pfn_t pfn); | 596 | pfn_t pfn); |
598 | extern int track_pfn_copy(struct vm_area_struct *vma); | 597 | extern int track_pfn_copy(struct vm_area_struct *vma); |
599 | extern void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn, | 598 | extern void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn, |
600 | unsigned long size); | 599 | unsigned long size); |