zhang / rpms / kernel

Forked from rpms/kernel 5 years ago
Clone
e293be
--- a/mm/huge_memory.c	2017-07-06 16:37:46.000000000 -0700
e293be
+++ b/mm/huge_memory.c	2017-08-06 11:46:55.552088715 -0700
e293be
@@ -1078,7 +1078,7 @@ static int do_huge_pmd_wp_page_fallback(
e293be
 {
e293be
 	spinlock_t *ptl;
e293be
 	pgtable_t pgtable;
e293be
-	pmd_t _pmd = {0};
e293be
+	pmd_t _pmd = {{{0}}};
e293be
 	int ret = 0, i;
e293be
 	struct page **pages;
e293be
 	unsigned long mmun_start;	/* For mmu_notifiers */
e293be
@@ -1887,7 +1887,7 @@ static int __split_huge_page_map(struct
e293be
 {
e293be
 	struct mm_struct *mm = vma->vm_mm;
e293be
 	spinlock_t *ptl;
e293be
-	pmd_t *pmd, _pmd = {0};
e293be
+	pmd_t *pmd, _pmd = {{{0}}};
e293be
 	int ret = 0, i;
e293be
 	pgtable_t pgtable;
e293be
 	unsigned long haddr;