diff options
| author | Geert Uytterhoeven <[email protected]> | 2021-09-15 13:50:04 +0000 |
|---|---|---|
| committer | Rich Felker <[email protected]> | 2021-10-27 20:56:34 +0000 |
| commit | 8518e694203d0bfd202ea4a80356785b6992322e (patch) | |
| tree | 414f6389c93a6ed0695ab4517dae81f4912a4204 /drivers/fpga/socfpga-a10.c | |
| parent | sh: fix READ/WRITE redefinition warnings (diff) | |
| download | kernel-8518e694203d0bfd202ea4a80356785b6992322e.tar.gz kernel-8518e694203d0bfd202ea4a80356785b6992322e.zip | |
sh: pgtable-3level: Fix cast to pointer from integer of different size
If X2TLB=y (CPU_SHX2=y or CPU_SHX3=y, e.g. migor_defconfig), pgd_t.pgd
is "unsigned long long", causing:
In file included from arch/sh/include/asm/pgtable.h:13,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from arch/sh/kernel/asm-offsets.c:14:
arch/sh/include/asm/pgtable-3level.h: In function ‘pud_pgtable’:
arch/sh/include/asm/pgtable-3level.h:37:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
37 | return (pmd_t *)pud_val(pud);
| ^
Fix this by adding an intermediate cast to "unsigned long", which is
basically what the old code did before.
Fixes: 9cf6fa2458443118 ("mm: rename pud_page_vaddr to pud_pgtable and make it return pmd_t *")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Tested-by: Daniel Palmer <[email protected]>
Acked-by: Rob Landley <[email protected]>
Tested-by: John Paul Adrian Glaubitz <[email protected]>
Signed-off-by: Rich Felker <[email protected]>
Diffstat (limited to 'drivers/fpga/socfpga-a10.c')
0 files changed, 0 insertions, 0 deletions
