diff options
| author | Peter Zijlstra <[email protected]> | 2018-12-03 17:03:47 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-12-17 17:54:24 +0000 |
| commit | 98bfc9b038cde1ce108f69a50720e394fe774cb7 (patch) | |
| tree | 522346cf6cb45c13d17713314494db084537bb97 /drivers/fpga/fpga-mgr.c | |
| parent | x86/mm/cpa: Add __cpa_addr() helper (diff) | |
| download | kernel-98bfc9b038cde1ce108f69a50720e394fe774cb7.tar.gz kernel-98bfc9b038cde1ce108f69a50720e394fe774cb7.zip | |
x86/mm/cpa: Make cpa_data::vaddr invariant
Currently __change_page_attr_set_clr() will modify cpa->vaddr when
!(CPA_ARRAY | CPA_PAGES_ARRAY), whereas in the array cases it will
increment cpa->curpage.
Change __cpa_addr() such that its @idx argument also works in the
!array case and use cpa->curpage increments for all cases.
NOTE: since cpa_data::numpages is 'unsigned long' so should cpa_data::curpage be.
NOTE: after this only cpa->numpages is still modified.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
