diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/huge_mm.h | 6 | ||||
-rw-r--r-- | include/linux/pstore.h | 12 |
2 files changed, 11 insertions, 7 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index 26ee56c80dc7..b60de92e2edc 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h | |||
@@ -60,9 +60,9 @@ extern pmd_t *page_check_address_pmd(struct page *page, | |||
60 | #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) | 60 | #define HPAGE_PMD_NR (1<<HPAGE_PMD_ORDER) |
61 | 61 | ||
62 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 62 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
63 | #define HPAGE_PMD_SHIFT HPAGE_SHIFT | 63 | #define HPAGE_PMD_SHIFT PMD_SHIFT |
64 | #define HPAGE_PMD_MASK HPAGE_MASK | 64 | #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT) |
65 | #define HPAGE_PMD_SIZE HPAGE_SIZE | 65 | #define HPAGE_PMD_MASK (~(HPAGE_PMD_SIZE - 1)) |
66 | 66 | ||
67 | extern bool is_vma_temporary_stack(struct vm_area_struct *vma); | 67 | extern bool is_vma_temporary_stack(struct vm_area_struct *vma); |
68 | 68 | ||
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index 75d01760c911..4aa80ba830a2 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h | |||
@@ -35,6 +35,10 @@ enum pstore_type_id { | |||
35 | PSTORE_TYPE_MCE = 1, | 35 | PSTORE_TYPE_MCE = 1, |
36 | PSTORE_TYPE_CONSOLE = 2, | 36 | PSTORE_TYPE_CONSOLE = 2, |
37 | PSTORE_TYPE_FTRACE = 3, | 37 | PSTORE_TYPE_FTRACE = 3, |
38 | /* PPC64 partition types */ | ||
39 | PSTORE_TYPE_PPC_RTAS = 4, | ||
40 | PSTORE_TYPE_PPC_OF = 5, | ||
41 | PSTORE_TYPE_PPC_COMMON = 6, | ||
38 | PSTORE_TYPE_UNKNOWN = 255 | 42 | PSTORE_TYPE_UNKNOWN = 255 |
39 | }; | 43 | }; |
40 | 44 | ||
@@ -54,12 +58,12 @@ struct pstore_info { | |||
54 | struct pstore_info *psi); | 58 | struct pstore_info *psi); |
55 | int (*write)(enum pstore_type_id type, | 59 | int (*write)(enum pstore_type_id type, |
56 | enum kmsg_dump_reason reason, u64 *id, | 60 | enum kmsg_dump_reason reason, u64 *id, |
57 | unsigned int part, int count, size_t size, | 61 | unsigned int part, int count, size_t hsize, |
58 | struct pstore_info *psi); | 62 | size_t size, struct pstore_info *psi); |
59 | int (*write_buf)(enum pstore_type_id type, | 63 | int (*write_buf)(enum pstore_type_id type, |
60 | enum kmsg_dump_reason reason, u64 *id, | 64 | enum kmsg_dump_reason reason, u64 *id, |
61 | unsigned int part, const char *buf, size_t size, | 65 | unsigned int part, const char *buf, size_t hsize, |
62 | struct pstore_info *psi); | 66 | size_t size, struct pstore_info *psi); |
63 | int (*erase)(enum pstore_type_id type, u64 id, | 67 | int (*erase)(enum pstore_type_id type, u64 id, |
64 | int count, struct timespec time, | 68 | int count, struct timespec time, |
65 | struct pstore_info *psi); | 69 | struct pstore_info *psi); |