Skip to content

Commit 6d8113c

Browse files
djbwtorvalds
authored andcommitted
frv: fix compiler warning from definition of __pmd()
Take into account that the pmd_t type is a array inside a struct, so it needs two levels of brackets to initialize. Otherwise, a usage of __pmd generates a warning: include/linux/mm.h:986:2: warning: missing braces around initializer [-Wmissing-braces] Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 888cdbc commit 6d8113c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/frv/include/asm/page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct page *pgtable_t;
3434
#define pgprot_val(x) ((x).pgprot)
3535

3636
#define __pte(x) ((pte_t) { (x) } )
37-
#define __pmd(x) ((pmd_t) { (x) } )
37+
#define __pmd(x) ((pmd_t) { { (x) } } )
3838
#define __pud(x) ((pud_t) { (x) } )
3939
#define __pgd(x) ((pgd_t) { (x) } )
4040
#define __pgprot(x) ((pgprot_t) { (x) } )

0 commit comments

Comments
 (0)