Skip to content

Commit 838a854

Browse files
committed
Merge tag 'parisc-for-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc architecture fixes from Helge Deller: - Fix encoding of swp_entry due to added SWP_EXCLUSIVE flag - Include reboot.h to avoid gcc-12 compiler warning * tag 'parisc-for-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Fix encoding of swp_entry due to added SWP_EXCLUSIVE flag parisc: kexec: include reboot.h
2 parents 01bc932 + 6f9e988 commit 838a854

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

arch/parisc/include/asm/pgtable.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,12 @@ extern void paging_init (void);
413413
* For the 64bit version, the offset is extended by 32bit.
414414
*/
415415
#define __swp_type(x) ((x).val & 0x1f)
416-
#define __swp_offset(x) ( (((x).val >> 6) & 0x7) | \
417-
(((x).val >> 8) & ~0x7) )
416+
#define __swp_offset(x) ( (((x).val >> 5) & 0x7) | \
417+
(((x).val >> 10) << 3) )
418418
#define __swp_entry(type, offset) ((swp_entry_t) { \
419419
((type) & 0x1f) | \
420-
((offset & 0x7) << 6) | \
421-
((offset & ~0x7) << 8) })
420+
((offset & 0x7) << 5) | \
421+
((offset >> 3) << 10) })
422422
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
423423
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
424424

arch/parisc/kernel/kexec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <linux/console.h>
55
#include <linux/kexec.h>
66
#include <linux/delay.h>
7+
#include <linux/reboot.h>
8+
79
#include <asm/cacheflush.h>
810
#include <asm/sections.h>
911

0 commit comments

Comments
 (0)