You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
UPSTREAM: powerpc/64: Include cache.h directly in paca.h
paca.h uses ____cacheline_aligned without directly including cache.h, where it's defined. For Book3S builds that's OK because paca.h includes lppaca.h, and it does include cache.h. But Book3E builds have been getting cache.h indirectly via printk.h, which is dicey, and in fact that include was recently removed, leading to build errors such as: ld: fs/isofs/dir.o:(.bss+0x0): multiple definition of `____cacheline_aligned'; fs/isofs/namei.o:(.bss+0x0): first defined here So include cache.h directly to fix the build error. Bug: 254441685 Fixes:534aa1dc97("printk: stop including cache.h from printk.h") Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> (cherry picked from commitdcf280e6f8) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: Id94536f14e3705b90bf12f6c61f59b96de3c994a
This commit is contained in:
committed by
Lee Jones
parent
3815eca894
commit
37b3a6153f
@@ -12,6 +12,7 @@
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
|
||||
#include <linux/cache.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/types.h>
|
||||
#include <asm/lppaca.h>
|
||||
|
||||
Reference in New Issue
Block a user