]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
parisc: Fix encoding of swp_entry due to added SWP_EXCLUSIVE flag
authorHelge Deller <deller@gmx.de>
Sat, 13 May 2023 20:30:06 +0000 (22:30 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 14 May 2023 00:04:27 +0000 (02:04 +0200)
commit6f9e98849edaa8aefc4030ff3500e41556e83ff7
treeb6c01974bae404f65e9a5af6e749fd075eb3ad82
parentcc719a9ce7a455bef132e0211437847bcd89b4ef
parisc: Fix encoding of swp_entry due to added SWP_EXCLUSIVE flag

Fix the __swp_offset() and __swp_entry() macros due to commit 6d239fc78c0b
("parisc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE") which introduced the
SWP_EXCLUSIVE flag by reusing the _PAGE_ACCESSED flag.

Reported-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Tested-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Fixes: 6d239fc78c0b ("parisc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE")
Cc: <stable@vger.kernel.org> # v6.3+
arch/parisc/include/asm/pgtable.h