sh/mm: Fix pmd_t for real
authorPeter Zijlstra <peterz@infradead.org>
Tue, 10 Jan 2023 10:44:51 +0000 (11:44 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Jan 2023 11:31:42 +0000 (05:31 -0600)
Because typing is hard...

Fixes: 0862ff059c9e ("sh/mm: Make pmd_t similar to pte_t")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/include/asm/pgtable-3level.h

index a889a3a938bab85510dc136d73386c96615bb32d..d1ce73f3bd85ef18ba1d14d017744f812b2fe3ce 100644 (file)
@@ -28,7 +28,7 @@
 #define pmd_ERROR(e) \
        printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e))
 
-typedef struct {
+typedef union {
        struct {
                unsigned long pmd_low;
                unsigned long pmd_high;