parisc architecture fixes for kernel v6.4-rc2:
- Fix encoding of swp_entry due to added SWP_EXCLUSIVE flag - Include reboot.h to avoid gcc-12 compiler warning -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS86RI+GtKfB8BJu973ErUQojoPXwUCZGEQcQAKCRD3ErUQojoP X9UDAQCRpuIPVJcdOmb1iIfv0+IFShNHEOb6yn2Yl8F33s3UYAD+LZyuMXDID2zj QkeZaQWEaya6/YwEPDGKb05YwEdu4gI= =L8XB -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
838a854820
|
@ -413,12 +413,12 @@ extern void paging_init (void);
|
||||||
* For the 64bit version, the offset is extended by 32bit.
|
* For the 64bit version, the offset is extended by 32bit.
|
||||||
*/
|
*/
|
||||||
#define __swp_type(x) ((x).val & 0x1f)
|
#define __swp_type(x) ((x).val & 0x1f)
|
||||||
#define __swp_offset(x) ( (((x).val >> 6) & 0x7) | \
|
#define __swp_offset(x) ( (((x).val >> 5) & 0x7) | \
|
||||||
(((x).val >> 8) & ~0x7) )
|
(((x).val >> 10) << 3) )
|
||||||
#define __swp_entry(type, offset) ((swp_entry_t) { \
|
#define __swp_entry(type, offset) ((swp_entry_t) { \
|
||||||
((type) & 0x1f) | \
|
((type) & 0x1f) | \
|
||||||
((offset & 0x7) << 6) | \
|
((offset & 0x7) << 5) | \
|
||||||
((offset & ~0x7) << 8) })
|
((offset >> 3) << 10) })
|
||||||
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
||||||
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
|
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#include <linux/console.h>
|
#include <linux/console.h>
|
||||||
#include <linux/kexec.h>
|
#include <linux/kexec.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/reboot.h>
|
||||||
|
|
||||||
#include <asm/cacheflush.h>
|
#include <asm/cacheflush.h>
|
||||||
#include <asm/sections.h>
|
#include <asm/sections.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue